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 × limitabove 500 answers400withcode: "SEARCH_TOO_DEEP". Narrow the query ortypesinstead. threshold(0 to 1) drops weaker matches; the default suits most queries./hydratedtakeslang(Languages) and gives each recordname,shortDescription,imageand, by type,city,artistType,dateStartUtcandlocationName, pluslang, the language ofnameandshortDescription;Content-Languagenames 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 thanlimitrecords whilehasMoreistrue: keep paging untilhasMoreisfalse./similaranswers curated matches first (source: "judged", with areason); a record without them gets the closest records by meaning (source: "vector-fallback")./semanticand/similarreturn ids only; read the records with the endpoints of One event in full.