Try the demo app
demo-store is a public app anyone can search, with no account and no signup.
It holds a small store in Arabic and English: shoes, watches, phones, laptops,
home appliances, perfume and dates, with some blog posts and pages. Use it to
see what the API returns before you create an app of your own.
| Application ID | demo-store |
| Search key | shf_pub_demostorepublicsearchkey0000000000 |
| API | https://api.shoofai.com/v1/apps/demo-store |
The key is published on purpose. It’s a search key, so it can search, answer and recommend, but never change the index.
Search
Section titled “Search”export SHOOF_API=https://api.shoofai.com/v1/apps/demo-storeexport SHOOF_SEARCH_KEY=shf_pub_demostorepublicsearchkey0000000000
curl -s "$SHOOF_API/search" \ -H "x-shoof-api-key: $SHOOF_SEARCH_KEY" \ -H "content-type: application/json" \ -d '{"q":"running shoes","facets":["brand","price"]}'import { ShoofClient } from "@shoof/js-client";
const client = new ShoofClient({ appId: "demo-store", apiKey: "shf_pub_demostorepublicsearchkey0000000000" });const res = await client.search({ q: "running shoes", facets: ["brand", "price"] });console.log(res.hits.map((h) => h.title));Arabic
Section titled “Arabic”# Arabic, with or without the hamza: أحذية and احذية find the same shoescurl -s "$SHOOF_API/search?q=احذية%20جري" -H "x-shoof-api-key: $SHOOF_SEARCH_KEY"An AI answer
Section titled “An AI answer”Answers stream as server-sent events: sources first,
then the text in delta events, then done.
curl -sN "$SHOOF_API/answer" \ -H "x-shoof-api-key: $SHOOF_SEARCH_KEY" \ -H "content-type: application/json" \ -d '{"q":"which watch is best for marathon training?"}'Related items
Section titled “Related items”curl -s "$SHOOF_API/records/p1-en/related?limit=4" -H "x-shoof-api-key: $SHOOF_SEARCH_KEY"Limits
Section titled “Limits”The demo is shared, so it has limits of its own:
- 60 requests a minute and 2,000 a day from each visitor;
- 3 AI answers a minute and 20 a day from each visitor, and a daily total for everyone;
- no analytics: events are accepted (
202) and dropped, so code that reports clicks works the same when you switch to your own app.
Past a limit you get a 429 with rate_limited, like any app’s limit. See
Errors.