Company search available fields
Discover the filters accepted by the Company Search endpoint at runtime, with every allowed value of closed lists such as industries and country codes.
Credits
Free.
Introduction
This endpoint returns metadata describing every filter accepted by Company search and Company search count, plus the cursor and perPage pagination parameters of Company search. Integrations such as Clay use it to discover the available inputs instead of hardcoding the filter list: a filter we add appears in the response as soon as we release it.
For closed-vocabulary filters, the allowedValues array lists every accepted value: the industries of industry, and the ISO country codes of location.countryCode and the zone ids of location.area under properties. The area entry also describes every zone in areaCatalog: its id, category, name and member countries (see Area values).
Like Usage, this route uses GET, takes no request body, and costs 0 credits.
For people filters, see People search available fields.
Endpoint
| Method | URL | Describes |
|---|---|---|
GET | /v2/search/organizations/available-fields | Company Search |
Authorization
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | Yes | Your API key from the developer dashboard. Pass it via Authorization: Bearer YOUR_API_KEY header. |
Response structure
| Field | Type | Description |
|---|---|---|
success | boolean | true if the request was processed successfully |
error | null | Always null on success |
dataobjectContainer for the discovered fields
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
object | string | Always "search_fields" |
entity | string | Always "organization" for this endpoint |
fields | Field[] | List of accepted filters and pagination parameters (see field shape below) |
fieldsobjectOne accepted search filter or pagination parameter
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
name | string | Field name, used as a key in the search request body |
type | string | string, number, range, location, date-time, or string | string[] |
required | boolean | Whether the field is mandatory on its own (always false: each filter is optional, but a search needs at least one) |
description | string | Human-readable explanation of the field |
example | unknown | Example value, when helpful (optional) |
allowedValues | unknown[] | Closed set of accepted values, when applicable, such as the industry list (optional) |
properties | object | Sub-field shapes for range and location filters (optional) |
Code examples
Code Examples
curl https://api.reversecontact.com/v2/search/organizations/available-fields \
-H "Authorization: Bearer YOUR_API_KEY"import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const result = await client.search.organizationsFields();
console.log(result.data.fields?.map((field) => field.name));import os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
result = client.search.organizations_fields()
fields = result.data.fields if result.data and result.data.fields else []
print([field.name for field in fields if field is not None])Example response
The response below is truncated to three fields: the catalog describes every filter accepted by Company search, then cursor and perPage.
Example Response
{
"success": true,
"data": {
"object": "search_fields",
"entity": "organization",
"fields": [
{
"name": "specialities",
"type": "string | string[]",
"required": false,
"description": "Speciality listed on the company profile, or an array of specialities (OR matching)",
"example": ["SaaS", "Machine Learning"]
},
{
"name": "foundedYear",
"type": "range",
"required": false,
"description": "Filter by founding year. Both bounds are optional and inclusive (range 0 - 2100).",
"example": { "min": 2015, "max": 2020 },
"properties": {
"min": { "type": "number", "description": "Minimum value, inclusive" },
"max": { "type": "number", "description": "Maximum value, inclusive" }
}
},
{
"name": "maxDataAgeDate",
"type": "date-time",
"required": false,
"description": "Only return companies refreshed after this ISO 8601 datetime. Needs at least one other filter."
}
]
},
"error": null,
"quotas": {
"creditsConsumed": 0,
"workspace": {
"id": "ws_abc123",
"credits": { "total": 10000, "used": 4521, "left": 5479 }
}
},
"metadata": {
"requestId": "df926b52-ee19-47ac-a0c6-02ce6b39f675",
"executionTimeMs": 3
}
}Last verified