Perform a search from multiple item types

GET {{baseUrl}}/itemSearch?term=<string>&item_types=<string>&fields=<string>&search_for_related_items=<boolean>&exact_match=<boolean>&include_fields=<string>&start=0&limit=<integer>

Performs a search from your choice of item types and fields.

Request Params

KeyDatatypeRequiredDescription
termstring(Required) The search term to look for. Minimum 2 characters (or 1 if using exact_match). Please note that the search term has to be URL encoded.
item_typesstringA comma-separated string array. The type of items to perform the search from. Defaults to all.
fieldsstringA comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>custom_fields, notes, title</td></tr> <tr><td>Person</td><td>custom_fields, email, name, notes, phone</td></tr> <tr><td>Organization</td><td>address, custom_fields, name, notes</td></tr> <tr><td>Product</td><td>code, custom_fields, name</td></tr> <tr><td>Lead</td><td>custom_fields, notes, email, organization_name, person_name, phone, title</td></tr> <tr><td>File</td><td>name</td></tr> <tr><td>Mail attachment</td><td>name</td></tr> <tr><td>Project</td><td> custom_fields, notes, title, description </td></tr> </table> <br> Only the following custom field types are searchable: address, varchar, text, varchar_auto, double, monetary and phone. Read more about searching by custom fields <a href="https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields" target="_blank" rel="noopener noreferrer">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use search_for_related_items.
search_for_related_itemsstringWhen enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization
exact_matchstringWhen enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
include_fieldsstringA comma-separated string array. Supports including optional fields in the results which are not provided by default.
startnumberPagination start. Note that the pagination is based on main results and does not include related items when using search_for_related_items parameter.
limitstringItems shown per page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;items&quot;:[{&quot;result_score&quot;:1.22724,&quot;item&quot;:{&quot;id&quot;:42,&quot;type&quot;:&quot;deal&quot;,&quot;title&quot;:&quot;Sample Deal&quot;,&quot;value&quot;:53883,&quot;currency&quot;:&quot;USD&quot;,&quot;status&quot;:&quot;open&quot;,&quot;visible_to&quot;:3,&quot;owner&quot;:{&quot;id&quot;:69},&quot;stage&quot;:{&quot;id&quot;:3,&quot;name&quot;:&quot;Demo Scheduled&quot;},&quot;person&quot;:{&quot;id&quot;:6,&quot;name&quot;:&quot;Sample Person&quot;},&quot;organization&quot;:{&quot;id&quot;:9,&quot;name&quot;:&quot;Sample Organization&quot;,&quot;address&quot;:&quot;Dabas, Hungary&quot;},&quot;custom_fields&quot;:[&quot;Sample text&quot;],&quot;notes&quot;:[&quot;Sample note&quot;]}},{&quot;result_score&quot;:0.31335002,&quot;item&quot;:{&quot;id&quot;:9,&quot;type&quot;:&quot;organization&quot;,&quot;name&quot;:&quot;Sample Organization&quot;,&quot;address&quot;:&quot;Dabas, Hungary&quot;,&quot;visible_to&quot;:3,&quot;owner&quot;:{&quot;id&quot;:69},&quot;custom_fields&quot;:[],&quot;notes&quot;:[]}},{&quot;result_score&quot;:0.29955,&quot;item&quot;:{&quot;id&quot;:6,&quot;type&quot;:&quot;person&quot;,&quot;name&quot;:&quot;Sample Person&quot;,&quot;phones&quot;:[&quot;555123123&quot;,&quot;+372 (55) 123468&quot;,&quot;0231632772&quot;],&quot;emails&quot;:[&quot;primary@email.com&quot;,&quot;secondary@email.com&quot;],&quot;visible_to&quot;:1,&quot;owner&quot;:{&quot;id&quot;:69},&quot;organization&quot;:{&quot;id&quot;:9,&quot;name&quot;:&quot;Sample Organization&quot;,&quot;address&quot;:&quot;Dabas, Hungary&quot;},&quot;custom_fields&quot;:[&quot;Custom Field Text&quot;],&quot;notes&quot;:[&quot;Person note&quot;]}},{&quot;result_score&quot;:0.0093,&quot;item&quot;:{&quot;id&quot;:4,&quot;type&quot;:&quot;mail_attachment&quot;,&quot;name&quot;:&quot;Sample mail attachment.txt&quot;,&quot;url&quot;:&quot;/files/4/download&quot;}},{&quot;result_score&quot;:0.0093,&quot;item&quot;:{&quot;id&quot;:3,&quot;type&quot;:&quot;file&quot;,&quot;name&quot;:&quot;Sample file attachment.txt&quot;,&quot;url&quot;:&quot;/files/3/download&quot;,&quot;deal&quot;:{&quot;id&quot;:42,&quot;title&quot;:&quot;Sample Deal&quot;},&quot;person&quot;:{&quot;id&quot;:6,&quot;name&quot;:&quot;Sample Person&quot;},&quot;organization&quot;:{&quot;id&quot;:9,&quot;name&quot;:&quot;Sample Organization&quot;,&quot;address&quot;:&quot;Dabas, Hungary&quot;}}},{&quot;result_score&quot;:0.0011999999,&quot;item&quot;:{&quot;id&quot;:1,&quot;type&quot;:&quot;product&quot;,&quot;name&quot;:&quot;Sample Product&quot;,&quot;code&quot;:&quot;product-code&quot;,&quot;visible_to&quot;:3,&quot;owner&quot;:{&quot;id&quot;:69},&quot;custom_fields&quot;:[]}}],&quot;related_items&quot;:[{&quot;result_score&quot;:0,&quot;item&quot;:{&quot;id&quot;:2,&quot;type&quot;:&quot;deal&quot;,&quot;title&quot;:&quot;Other deal&quot;,&quot;value&quot;:100,&quot;currency&quot;:&quot;USD&quot;,&quot;status&quot;:&quot;open&quot;,&quot;visible_to&quot;:3,&quot;owner&quot;:{&quot;id&quot;:1},&quot;stage&quot;:{&quot;id&quot;:1,&quot;name&quot;:&quot;Lead In&quot;},&quot;person&quot;:{&quot;id&quot;:1,&quot;name&quot;:&quot;Sample Person&quot;}}}]},&quot;additional_data&quot;:{&quot;pagination&quot;:{&quot;start&quot;:0,&quot;limit&quot;:100,&quot;more_items_in_collection&quot;:false}}}