Search deals

GET {{baseUrl}}/deals/search?term=<string>&fields=<string>&exact_match=<boolean>&person_id=<integer>&organization_id=<integer>&status=<string>&include_fields=<string>&limit=<integer>&cursor=<string>

Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.

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.
fieldsstringA comma-separated string array. The fields to perform the search from. Defaults to all of them. 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>.
exact_matchstringWhen enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
person_idstringWill filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
organization_idstringWill filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
statusstringWill filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000.
include_fieldsstringSupports including optional fields in the results which are not provided by default
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;items&quot;:[{&quot;result_score&quot;:1.22,&quot;item&quot;:{&quot;id&quot;:1,&quot;type&quot;:&quot;deal&quot;,&quot;title&quot;:&quot;Jane Doe 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;Jane Doe&quot;},&quot;organization&quot;:null,&quot;custom_fields&quot;:[],&quot;notes&quot;:[]}}]},&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ&quot;}}