OpenSearch

Opensearch Count

Exact match count for one of the whitelisted mashup indices.

Same index + filters shape as /opensearch/search but returns only the count via the native OpenSearch _count API, so it is NOT capped at the 10000 track_total_hits ceiling that /search's total saturates at. This is the right call for TAM cell-sizing.

Note: mashup_companies and mashup_contacts are the same physical, contact-grained index — a count over mashup_companies counts contact rows, not unique companies. For a unique-company total use /opensearch/aggregate with uniqExact on COMPANY_ID. Mashup counts automatically apply the organization's deliverability policy.

post/opensearch/count

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/opensearch/count
  • Auth: HTTP bearer

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Request body

index'mashup_contacts' | 'mashup_companies' | 'hem2contact' | 'ip2company' required

Logical index to count. Maps to a whitelisted physical alias.

filtersobject

Field equality filters, identical semantics to /opensearch/search. Scalar -> term, list -> terms (OR). RAW UPPERCASE field names (e.g. COMPANY_INDUSTRY, COMPANY_NAICS, COMPANY_COUNTRY).

Response

Successful Response

Changes

No recorded changes to this operation across all 2 revisions of this API.