Search Companies
| ⚠️ This endpoint is currently in BETA |
|---|
Search for Companies matching the given criteria.
Accepts an optional combination of filters, sorts, and a search term. Omitting the body is equivalent to GET /v2/companies with default pagination.
Requires the “Export All Organizations directory” permission.
Field IDs
Field IDs used in filters, sorts, and search.fieldIds follow the formats described in Working with Field Data. Use GET /v2/companies/fields to discover the available fields and their valueType.
attributeId
Some fields require an attributeId to specify which aspect to filter or sort on. The following relationship intelligence fields all use attributeId: "date-of-activity": last-email, first-email, last-contact, last-event, first-event, next-event.
Use GET /v2/companies/fields to confirm which fields require an attributeId.
Limits
-
Items per filter group (filters or nested groups): 50
-
Values per filter (e.g. options in
is-any-of): 100 -
Sort criteria: 5
-
Search term minimum length: 3 characters
-
Results per page: 100
Pagination
Uses cursor-based pagination.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Specific field IDs for which to return field data on each Company. Cannot be used together with fieldTypes; use one or the other. Use GET /v2/companies/fields to discover available field IDs.
A category of fields for which to return field data on each Company. Cannot be used together with fieldIds; use one or the other.
enriched, global, relationship-intelligence Cursor for the next or previous page.
Maximum number of Companies to return per page.
1 <= x <= 100When true, includes the total count of matching Companies in the pagination response. Adds additional query cost; use only when needed.
Body
Search criteria for filtering, sorting, and searching. All fields are optional — omitting the body returns all results with default pagination.
A tree of filter conditions to apply. Supports nested AND/OR grouping. Use the relevant fields endpoint for your resource type to discover available fields, their valueType, and supported operators.
One or more sort criteria, applied in order. Supports up to 5 sort items. Use the relevant fields endpoint for your resource type to discover sortable fields.
1 - 5 elementsAn optional keyword to match against field values. Results must satisfy both the search term AND any provided filters (intersection). Only one search object may be provided. When fieldIds is omitted, the term is matched against the entity name, primary domain (companies), primary email address (persons), or opportunity name.