Skip to content

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.

Terminal window
export SHOOF_API=https://api.shoofai.com/v1/apps/demo-store
export 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"]}'
Terminal window
# Arabic, with or without the hamza: أحذية and احذية find the same shoes
curl -s "$SHOOF_API/search?q=احذية%20جري" -H "x-shoof-api-key: $SHOOF_SEARCH_KEY"

Answers stream as server-sent events: sources first, then the text in delta events, then done.

Terminal window
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?"}'
Terminal window
curl -s "$SHOOF_API/records/p1-en/related?limit=4" -H "x-shoof-api-key: $SHOOF_SEARCH_KEY"

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.