Search organizations
GET {{baseUrl}}/organizations/search?term=<string>&fields=<string>&exact_match=<boolean>&start=0&limit=<integer>
Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
term | string | (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. | |
fields | string | A 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_match | string | When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | |
start | number | Pagination start. Note that the pagination is based on main results and does not include related items when using search_for_related_items parameter. | |
limit | string | Items shown per page |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"items":[{"result_score":0.316,"item":{"id":1,"type":"organization","name":"Organization name","address":"Mustamäe tee 3a, 10615 Tallinn","visible_to":3,"owner":{"id":1},"custom_fields":[],"notes":[]}}]},"additional_data":{"pagination":{"start":0,"limit":100,"more_items_in_collection":false}}}