Perform a search using a specific field from an item type

GET {{baseUrl}}/itemSearch/field?term=<string>&entity_type=<string>&match=exact&field=<string>&limit=<integer>&cursor=<string>

Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).

Request Params

KeyDatatypeRequiredDescription
termstring(Required) The search term to look for. Minimum 2 characters (or 1 if match is exact). Please note that the search term has to be URL encoded.
entity_typestring(Required) The type of the field to perform the search from
matchstringThe type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value monkey, <ul> <li>with exact match, you will only find it if term is monkey</li> <li>with beginning match, you will only find it if the term matches the beginning or the whole string, e.g. monk and monkey</li> <li>with middle match, you will find the it if the term matches any substring of the value, e.g. onk and ke</li> </ul>.
fieldstring(Required) The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.). 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>.
limitstringFor pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
cursorstringFor pagination, the marker (an opaque string value) representing the first item on the next page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;name&quot;:&quot;Jane Doe&quot;},{&quot;id&quot;:2,&quot;name&quot;:&quot;John Doe&quot;}],&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ&quot;}}