Get started
Create a store, get your keys, send products and run your first search.
What you need
- A SeekGist account. Sign up in the dashboard at /app. Every new store starts with a free trial.
- Your store's products, from a store platform (OpenCart, WooCommerce, Shopify, Salla, Zid, Magento) or from your own system.
The dashboard has an onboarding wizard: pick your platform, install the connector, build the first index, run the first search. If you use a platform, follow its quick start instead of the steps below. The steps below are for your own code.
1. Get your keys
Open API keys in the dashboard. You get two kinds of keys:
| Key | Starts with | Use it for | Where it may live |
|---|---|---|---|
| Public key | sg_pub_ | suggest, search, recommend, clicks, events; assistant chat only when you tick Also allow the shopping assistant (chat widget) when you make the key | the browser, your theme, the widget |
| Secret key | sg_sec_ | products, synonyms, rules, translation, analytics, webhooks | your server only |
2. Send your products
Send products in batches of up to 1,000 with your secret key. Text fields are maps of language to text, so one product can carry English and Arabic names.
curl -X POST https://api.seekgist.com/v1/products/batch \
-H "Authorization: Bearer $SEEKGIST_SECRET_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: first-import-001" \
-d '{
"upsert": [{
"id": "42",
"name": {"en": "Lenovo IdeaPad 3 15.6\" i5 16GB 512GB", "ar": "لينوفو آيدياباد 3"},
"brand": "Lenovo",
"price": "549.000",
"currency": "JOD",
"in_stock": true,
"url": "https://shop.example/p/42",
"categories": [{"id": "20", "path": [{"en": "Computers"}, {"en": "Laptops", "ar": "لابتوبات"}]}],
"attributes": {"RAM": "16GB", "Storage": "512GB SSD"}
}]
}'The example product is made up. The answer tells you how many products were added, unchanged or deleted. Sending the same product again with no change does nothing and costs nothing.
3. Search
Use your public key. Suggestions while typing come from /v1/suggest. They are never billed.
curl "https://api.seekgist.com/v1/suggest?q=lab" \
-H "Authorization: Bearer $SEEKGIST_PUBLIC_KEY"A full search (when the shopper presses Enter) comes from /v1/search:
curl --get "https://api.seekgist.com/v1/search" \
--data-urlencode "q=لابتوب لطالب هندسة تحت 600 دينار" \
-H "Authorization: Bearer $SEEKGIST_PUBLIC_KEY"The answer has ids (product ids in rank order), hits (product cards), facets, and query, which shows what SeekGist understood: for this request, a laptop, a price limit of 600 and a minimum of 16 GB RAM for engineering work.
4. Send clicks
When a shopper clicks a result, send the search_id from the search answer back. Clicks power analytics and better ranking.
curl -X POST https://api.seekgist.com/v1/click \
-H "Authorization: Bearer $SEEKGIST_PUBLIC_KEY" \
-H "Content-Type: application/json" \
-d '{"search_id": "<from the search answer>", "product_id": "42", "position": 1}'Next steps
- API basics: errors, safe retries, usage and limits.
- Arabic search guide: what SeekGist understands.
- API reference: every endpoint.