Skip to main content
Advanced search is in beta. It supports criteria from Clay’s field catalog as well as cross-entity filters and nested Boolean logic. Advanced queries return either people or companies. Count queries and job searches are not available through the Public API.

Get the query reference

Fetch the query reference before writing a query. It describes the available fields and grammar.
This pattern returns current software engineers whose employer is in the Software Development industry.

Use cross-entity query patterns

Choose the record type you want returned, then query through its relationships.

Find people based on their employer

Use experiences.any(...) to return people whose current employer meets your criteria.

Find companies based on their employees

Use people.exists(...) to return companies that employ people matching your criteria.

Combine criteria with Boolean logic

Group related criteria with parentheses to express alternatives while keeping the company requirement.

Fetch more results

The run endpoint is a stateful iterator. Its response contains data, has_more, and source_type, and can include exhaustion_reason. If has_more is true, call POST /search/query-mode/{search_id}/run again to fetch the next page. People results include a structured location and an array of experiences that matched the query. matched_experiences is always an array; it is empty when no specific experience matched.
Company results use their own projection, including clay_company_id, name, size, type, domain, country, industry, location, description, linkedin_url, annual_revenue, and total_funding_amount_range_usd.

Next steps

Structured filters

Use the older JSON filters format.