Product search for your e-commerce catalog, over REST or as an MCP server. Full-text candidates judged for fit by an LLM, best match first; price, stock and sort phrases in the query work as filters.
| Method | Path | What it does | Auth |
|---|---|---|---|
| GET | /api/v1/storag/search | Search, judged by an LLM (see meta.judged) | API key |
| GET | /api/v1/storag/search/text | Full-text search | API key |
| GET | /api/v1/storag/products | List products | API key |
| GET | /api/v1/storag/products/{product_id} | Get a product | API key |
| GET | /api/v1/storag/usage | Your key's usage | API key |
| GET | /api/v1/storag/demo/search | Demo search, no key | None |
| GET | /api/v1/storag/demo/search/text | Demo full-text search, no key | None |
| GET | /api/v1/storag/demo/products | Demo product list, no key | None |
| GET | /api/v1/storag/demo/products/{product_id} | Get a demo product, no key | None |
| GET | /api/v1/storag/health | Service health | None |
Full reference: openapi.json (OpenAPI 3.1). Text version of the docs: docs.md (Markdown).
Get your API keyGuides and full referenceQuickstartMCP server
Product search over your own catalog. Send your API key as Authorization: Bearer <key> (or X-API-Key). Every key searches only its own project. Each key has a per-minute rate limit; over it the API answers 429. The limit is kept by each API instance on its own (two at most today), so a burst can pass up to twice it before the 429; plan for the stated limit. Each plan includes a number of queries a month, counted per project from the 1st (UTC); every search answer shows the count in the X-Storag-Quota-Limit, -Used and -Reset headers. Search never stops at your quota on a paid plan. Free and Trial searches over the quota skip the LLM judge until the 1st (meta.fallback "quota"); Starter and Scale searches past 2 times their quota skip it the same way. Trial is a plan we assign; it is not on the pricing page and has 2,000 queries a month.
How /search answers: a full-text search finds up to 120 candidates inside the query's price, stock and word limits, products that match by meaning are added, and an LLM judge keeps the ones that fit the query, best match first (meta.judged true). Price, stock and sort phrases in the query ("under 150 EUR", "in stock", "cheapest") are applied as filters and taken out of the text the judge reads; every limit of the query holds on judged and unjudged answers alike. If the judge is down, slow or over a limit, the search still answers and meta.fallback says why. /search/text is never judged. /api/v1/storag/health checks.judge says whether the judge is up.
Try it without a key: the /api/v1/storag/demo/* routes search a fictional demo catalog with the same response shapes, and /api/v1/storag/demo/mcp (public URL https://mcp.storag.ai/demo/mcp) is the same as an MCP server. 30 requests a minute and 500 a day per IP.
All API requests need your project's API key (it starts with pk_). Send it in the Authorization header:
Authorization: Bearer pk_your_api_key
X-API-Key: pk_your_api_key also works. The same key works for the REST API and the MCP server. Get your API key from the Storag.ai Dashboard.
Important: Keep your API key secure and never expose it in client-side code.
Each key has a per-minute rate limit, shown in the X-RateLimit-* headers; over it the API answers 429.
Each plan includes a number of queries a month, counted per project from the 1st (UTC). Every /search and /search/text answer shows the count in the X-Storag-Quota-Limit, X-Storag-Quota-Used and X-Storag-Quota-Reset headers; other routes do not send them. Search never stops at your quota on a paid plan. Free searches over the quota, and Starter and Scale searches past 2 times it, skip the LLM judge until the 1st (meta.fallback: "quota"): full results, unjudged.
GET /search, GET /search/text and the demo search routes take the same query parameters, and so do the MCP tools search_products and text_search_products:
q (required, 1 to 200 characters): the query in shopper language. Phrases such as "under 150", "in stock" and "cheapest" become filters and sort.page (from 1, default 1) and page_size (1 to 100, default 20). Aliases: pageSize, limit. A number above the cap (100 for both with a key, page 10 and page size 20 on the demo) is capped, never rejected: the answer's page and pageSize say what was used. Below 1 or not a whole number is 400.min_price, max_price (numbers). Aliases: minPrice, maxPrice.availability: in stock returns only products in stock; any applies no stock filter, even when q says "in stock". Leave it out to let q decide. Any other value (for example out of stock) is 400.sort: relevance (default), price_asc (cheapest first), price_desc (dearest first)./search, /demo/search and the MCP tool search_products answer in two steps. A full-text search finds up to 120 candidates inside the query's price, stock and word limits; the search route adds products that match by meaning, and an LLM judge keeps the ones that fit the query, best match first. meta.judged: true says the judge ranked the answer. If the judge is down, slow or over a limit, the search still answers and meta.fallback says why. /search/text is never judged.
Price, stock and sort phrases in q ("under 50 EUR", "in stock", "cheapest") are taken out of the text the judge reads and applied as filters instead: the product facts the judge sees carry no price or stock, so it cannot check them. Every price, stock and size limit of the query holds on judged and unjudged answers alike. A size ("size 42") stays in the judge's text, as product facts name it. A query that names one product exactly (its ID or EAN) is answered from full-text at once, never judged.
total meansThe judge answers at most page × page_size products (at least 20 when q names a size, or a price in a currency), and never more than 100.
| Answer | total |
|---|---|
| Judged, and the judge kept fewer products than it was asked for | Exactly the products kept, inside every limit of the query. A total under page_size is exactly the results shown. |
| Judged, and the judge kept as many as it was asked for | The full-text match count (more may fit), at most 100. |
Not judged (meta.judged: false) | The full-text match count; a lower bound when meta.timedOut is true. |
A judged answer holds at most 100 products: a /search page past the 100th product comes back empty. Each page is judged again for the larger window, so total can change from page to page, for example from the full-text count on page 1 to the exact kept count on page 3. Page until a page returns fewer results than page_size, not by total alone. To walk every keyword match, use /search/text.
sort=price_asc or price_desc (or "cheapest" / "most expensive" in q) is judged like any search, so a loose match does not lead a cheapest-first list. The judge keeps the products that fit, and those come back in price order: cheapest or dearest first, in stock or not (filter stock with availability), products without a price last. A judged price sort covers at most the 100 products the judge kept, and total is as in the table above. When the judge is skipped (judge=false, a ceiling, or the judge could not answer), you get every full-text match in price order with meta.judged: false, and meta.fallback says why (null for judge=false).
meta.fallback: why an answer is not judgedfallback | Why | What you get |
|---|---|---|
null | Judged, or you sent judge=false or a query naming one product | The judged results, or unjudged ones when meta.judged is false |
text | The search route was unreachable, failed or took over 2 s | Full-text results |
busy | The search route was at its capacity | Full-text results |
timeout | The judge's 1.5 s deadline passed | What it had not judged comes back unjudged, complete: false |
budget | A judge spend ceiling was reached | Unjudged candidates (full-text results on the demo) |
quota | A Free project at or over its monthly quota, or a Starter or Scale project past 2 times it | Unjudged candidates until the 1st (UTC) |
no-language | The search had no language, so nothing was judged | Unjudged candidates |
error | The judge could not run | Unjudged candidates |
relaxed, partial | Few or no products matched every word: most of the words, or only the most specific one | Full-text's relaxed match, complete: false |
meta.complete: false also means not every candidate was judged in time. meta.alternatives: true means nothing fitted and these are the closest products.
fallback: "timeout"), not a slower answer.fallback: "budget" until the next UTC day. Unpaid projects also share a free daily ceiling.judge=false skips the judge: no judge time, and the search does not count towards the judge ceilings.Over the rate limit, wait for the Retry-After header before you call again.
Pricing (USD per month; yearly billing price, monthly billing price in brackets):