Skip to Content

Search

Search by meaning, with display fields, and similar records.

/search/semantic finds records by meaning (q=open-air jazz for families), /search/hydrated does the same and returns display fields, and /search/{type}/{id}/similar lists records similar to one record. They cost 5, 10 and 5 credits (Credits).

Your key's area and genres (Scope: what a key may read) are applied inside the search, before paging: a page is full whenever more matches exist in your scope. Results are ordered by similarity (highest first), equal values by id, so pages neither repeat nor skip a record.

All three page with page (from 1) and limit (/semantic and /hydrated: 1 to 50, default 10; /similar: 1 to 50, default 5) and answer the list envelope:

curl -s "https://api.cixtra.app/api/v1/search/semantic?q=open-air%20jazz&types=event_series,festival&limit=10&page=2" \
  -H "X-API-Key: sk_org_your_key"
{
  "data": [
    { "entityId": "3a2b1c0d-2222-4e5f-8a9b-0c1d2e3f4a5b", "entityType": "event_series", "similarity": 0.83 },
    { "entityId": "9c8d7e6f-3333-4a5b-8c9d-1e2f3a4b5c6d", "entityType": "festival", "similarity": 0.81 }
  ],
  "pagination": { "limit": 10, "page": 2, "hasMore": true }
}
  • A search reaches down to its 500th result: page × limit above 500 answers 400 with code: "SEARCH_TOO_DEEP". Narrow the query or types instead.
  • threshold (0 to 1) drops weaker matches; the default suits most queries.
  • /hydrated takes lang (Languages) and gives each record name, shortDescription, image and, by type, city, artistType, dateStartUtc and locationName, plus lang, the language of name and shortDescription; Content-Language names the languages of the page. An event series without upcoming dates in your area is left out of /hydrated, so a page there can hold fewer than limit records while hasMore is true: keep paging until hasMore is false.
  • /similar answers curated matches first (source: "judged", with a reason); a record without them gets the closest records by meaning (source: "vector-fallback").
  • /semantic and /similar return ids only; read the records with the endpoints of One event in full.