{"openapi":"3.0.3","info":{"title":"ASDA API (ReefAPI)","version":"1.0.0","description":"ASDA API — UK grocery search and CIN product detail Call POST /asda/v1/{action} with an x-api-key header; every response is the { ok, data, meta, error } envelope.","contact":{"name":"ReefAPI","url":"https://reefapi.com/asda-api","email":"support@reefapi.com"},"license":{"name":"ReefAPI Terms","url":"https://reefapi.com/terms"},"termsOfService":"https://reefapi.com/terms"},"externalDocs":{"description":"ASDA API documentation","url":"https://reefapi.com/docs/asda"},"servers":[{"url":"https://api.reefapi.com"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"asda","description":"ASDA API — UK grocery search and CIN product detail"}],"paths":{"/asda/v1/search":{"post":{"operationId":"asda_search","summary":"Search the published grocery catalog by keyword and zero-based page.","description":"Search the published grocery catalog by keyword and zero-based page.","tags":["asda"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","example":"milk","description":"Product search text."},"page":{"type":"integer","minimum":0,"maximum":50,"default":0,"description":"Zero-based source page. Supported bounded range 0–50; accessible_pages is source-reported."},"count":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Requested records, subject to source results."},"zone":{"type":"string","enum":["EN","SC","WA","NI"],"default":"EN","description":"Published price zone; EN England, SC Scotland, WA Wales, NI Northern Ireland."},"store_id":{"type":"string","default":"4565","description":"ASDA store identifier used for the published stock flag. Defaults to source store 4565; no delivery-slot guarantee."}},"required":["query"]},"example":{"query":"milk","count":20}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":3}},"/asda/v1/product/detail":{"post":{"operationId":"asda_product_detail","summary":"Resolve the search CIN to the published product object: identity, regional price, unit/pack, media, store availability and published catalog attributes.","description":"Resolve the search CIN to the published product object: identity, regional price, unit/pack, media, store availability and published catalog attributes.","tags":["asda"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"538241","description":"CIN returned by search, not GTIN or image id."},"zone":{"type":"string","enum":["EN","SC","WA","NI"],"default":"EN","description":"Published price zone; EN England, SC Scotland, WA Wales, NI Northern Ireland."},"store_id":{"type":"string","default":"4565","description":"ASDA store identifier used for the published stock flag. Defaults to source store 4565; no delivery-slot guarantee."}},"required":["id"]},"example":{"id":"538241"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/asda/v1/catalog/product":{"post":{"operationId":"asda_catalog_product","summary":"Compatibility route for the same meaningful published CIN product detail.","description":"Compatibility route for the same meaningful published CIN product detail.","tags":["asda"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"538241","description":"CIN returned by search; not an EAN or image identifier."},"zone":{"type":"string","enum":["EN","SC","WA","NI"],"default":"EN","description":"Published price zone; EN England, SC Scotland, WA Wales, NI Northern Ireland."},"store_id":{"type":"string","default":"4565","description":"ASDA store identifier used for the published stock flag. Defaults to source store 4565; no delivery-slot guarantee."}},"required":["id"]},"example":{"id":"538241"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"Envelope":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"data":{"description":"Action result (shape varies per action)"},"meta":{"type":"object","description":"api, endpoint, mode, latency_ms, record_count, completeness_pct"},"error":{"type":"object","nullable":true,"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"}}}}}}}}