Esc
ZeroIndex
GuidesAPI referenceSDKsChangelogOverviewBuy ZeroIndex

One request, ranked results

Send a query, typos and all, and get the best matches back with the matching words highlighted. The same call works from cURL and every SDK.

How search works
curl https://api.zeroindex.test/v1/indexes/products/search \
  -H "Authorization: Bearer $ZEROINDEX_KEY" \
  -d '{ "q": "wireless hedphones", "limit": 5 }'
import { ZeroIndex } from "@zeroindex/client";

const client = new ZeroIndex(process.env.ZEROINDEX_KEY);
const { hits } = await client.index("products").search("wireless hedphones", { limit: 5 });
import os
from zeroindex import ZeroIndex

client = ZeroIndex(os.environ["ZEROINDEX_KEY"])
hits = client.index("products").search("wireless hedphones", limit=5).hits