API reference

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.

Endpoints

MethodPathWhat it doesAuth
GET/api/v1/storag/searchSearch, judged by an LLM (see meta.judged)API key
GET/api/v1/storag/search/textFull-text searchAPI key
GET/api/v1/storag/productsList productsAPI key
GET/api/v1/storag/products/{product_id}Get a productAPI key
GET/api/v1/storag/usageYour key's usageAPI key
GET/api/v1/storag/demo/searchDemo search, no keyNone
GET/api/v1/storag/demo/search/textDemo full-text search, no keyNone
GET/api/v1/storag/demo/productsDemo product list, no keyNone
GET/api/v1/storag/demo/products/{product_id}Get a demo product, no keyNone
GET/api/v1/storag/healthService healthNone

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.

Authentication

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.

Rate limits and quotas

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.

Search parameters

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).

How /search answers

/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.

What the judge reads

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.

What total means

The 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.

Answertotal
Judged, and the judge kept fewer products than it was asked forExactly 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 forThe 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.

Paging judged results

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.

Price sorts

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 judged

fallbackWhyWhat you get
nullJudged, or you sent judge=false or a query naming one productThe judged results, or unjudged ones when meta.judged is false
textThe search route was unreachable, failed or took over 2 sFull-text results
busyThe search route was at its capacityFull-text results
timeoutThe judge's 1.5 s deadline passedWhat it had not judged comes back unjudged, complete: false
budgetA judge spend ceiling was reachedUnjudged candidates (full-text results on the demo)
quotaA Free project at or over its monthly quota, or a Starter or Scale project past 2 times itUnjudged candidates until the 1st (UTC)
no-languageThe search had no language, so nothing was judgedUnjudged candidates
errorThe judge could not runUnjudged candidates
relaxed, partialFew or no products matched every word: most of the words, or only the most specific oneFull-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.

Time and cost

  • Judging adds time; past the 1.5 s deadline you get what was judged so far (fallback: "timeout"), not a slower answer.
  • Each project has a daily number of judged searches set by its plan; past it, searches answer unjudged with fallback: "budget" until the next UTC day. Unpaid projects also share a free daily ceiling.
  • A judged price sort judges the whole first batch of candidates, not only the first page, so it takes longer and uses more judge work than a relevance page of 20 results or fewer.
  • judge=false skips the judge: no judge time, and the search does not count towards the judge ceilings.
  • Every search counts as one query on your plan, judged or not.

Errors

  • 400 bad parameter, 401 no or wrong key, 403 no access, 404 not found, 429 over the key's per-minute rate limit (or the demo's 30 a minute / 500 a day per IP), 502 search backend unavailable. Error bodies are JSON.

Over the rate limit, wait for the Retry-After header before you call again.

Plans

Pricing (USD per month; yearly billing price, monthly billing price in brackets):

  • Free: $0, 5,000 queries a month, up to 5,000 products, no credit card
  • Starter: $39 ($49), 10,000 queries a month, up to 10,000 products
  • Grow: $99 ($149), 20,000 queries a month, up to 20,000 products
  • Pro: $219 ($299), 50,000 queries a month, up to 30,000 products
  • Scale: $359 ($499), 100,000 queries a month, up to 50,000 products
  • Enterprise: custom price, unlimited queries and products, dedicated support & SLA; contact us
  • Prices exclude VAT. CZ: +21 % VAT. EU businesses: reverse charge with a valid VAT ID. Outside the EU: no VAT.
  • One search is one query. If a feed has more products than the plan allows, the first ones in feed order are indexed.
  • Paid plans are bought in the dashboard after sign-up (Stripe checkout). Full table: https://storag.ai/pricing