{"openapi":"3.1.0","info":{"title":"Instacart Grocery Products and Retailers (x402 & MCP)","version":"0.1.0","description":"Instacart grocery products, retailers, storefront collections, guest prices and delivery estimates in the US and Canada, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/instacart-com/v1/search":{"post":{"operationId":"instacart_com_search","summary":"Instacart Grocery Products and Retailers: Search Instacart products, retailers, collections and delivery ETA","description":"Grocery products, retailers, storefront collections and ETA rows in the US and Canada. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["instacart-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto: the mode follows the fields you fill (start URLs, a product, a category, a hub, a collection, a search query, a retailer or a location). Pick a mode only to force it.","default":"auto","enum":["auto","search","nearMe","discoverRetailers","storefront","collection","discoverCollections","hub","category","eta"]},"country":{"type":"string","description":"Shopping market: us for the United States or ca for Canada.","default":"us","enum":["us","ca"]},"query":{"type":"string","description":"Search phrase for search mode. Add retailerSlug to search within one retailer."},"retailerSlug":{"type":"string","description":"Retailer identifier from a store link, such as costco or sprouts. Required for product and enrich modes unless the product link identifies the retailer."},"collectionSlug":{"type":"string","description":"Collection identifier from a collection link, such as produce. Use with retailerSlug in collection mode."},"hubSlug":{"type":"string","description":"Hub identifier, such as alcohol, convenience, pharmacy, pet, baby, or deals_tab. Required for hub mode."},"categoryId":{"type":"string","description":"Numeric category identifier from a link such as /categories/1234-snacks. Required for category mode.","pattern":"^\\s*[0-9]+\\s*$"},"categorySlug":{"type":"string","description":"Optional category name after the numeric identifier in a category link."},"postalCode":{"type":"string","description":"Delivery ZIP or Canadian postal code used to select nearby stores. If omitted, the selected city or market supplies the location."},"city":{"type":"string","description":"City preset (sf, nyc, la, chicago, seattle, austin, miami, denver, toronto, vancouver, montreal, calgary, ottawa) or US/Canadian city name such as Cleveland, OH. If the city cannot be found, provide postalCode."},"shopId":{"type":"string","description":"Optional known shop identifier. Resolved from the selected retailer when needed and not provided."},"zoneId":{"type":"string","description":"Optional delivery zone identifier for the selected location."},"latitude":{"type":"number","description":"Optional latitude for the shopping location. Use with longitude."},"longitude":{"type":"number","description":"Optional longitude for the shopping location. Use with latitude."},"language":{"type":"string","description":"Optional language value. Leave empty for normal use; translated output is not guaranteed."},"enrichDetails":{"type":"boolean","description":"Add available ratings to existing product rows in listing modes, up to enrichLimit. Enabled by default; enrichment may increase run time.","default":true},"enrichLimit":{"type":"integer","description":"Maximum product rows to enrich with ratings, from 0 to 50; 0 skips rating enrichment in listing modes. In enrich mode, a positive value caps the product list, while 0 uses maxResults.","default":10,"minimum":0,"maximum":50},"includeEta":{"type":"boolean","description":"Include available delivery estimates in nearby-retailer searches. Separate ETA rows share the row limit and are billed like other rows.","default":false},"maxPages":{"type":"integer","description":"Maximum collection pages to read, from 1 to 50. The row limit can stop collection earlier.","default":10,"minimum":1,"maximum":50},"maxResults":{"type":"integer","description":"Most Dataset rows for each start URL or batch product ID; scalar modes such as one search, collection, storefront, or location count as one input. Default 70; larger values are collected in parts of 70. All row types count together for that input. The run stops at your maximum total charge. Free platform plan: 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"country":"us","city":"nyc","query":"milk","enrichDetails":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_instacart_com"},"example":{"jobId":"job_instacar_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"itemType":"example_itemType","name":"example_name","retailerSlug":"example_retailerSlug","productId":"example_productId","priceString":"example_priceString","price":"example_price"}],"meta":{"site":"instacart-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/instacart-com/v1/products":{"post":{"operationId":"instacart_com_products","summary":"Instacart Grocery Products and Retailers: Instacart product details and batch lookup","description":"Product details and guest pricing rows from a product URL, ID, productIds list or startUrls. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["instacart-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto: the mode follows the fields you fill (start URLs, a product, a category, a hub, a collection, a search query, a retailer or a location). Pick a mode only to force it.","default":"product","enum":["product","enrich","startUrls"]},"country":{"type":"string","description":"Shopping market: us for the United States or ca for Canada.","default":"us","enum":["us","ca"]},"productUrl":{"type":"string","description":"Instacart product page link. Also set retailerSlug unless the link identifies its retailer.","pattern":"^https?://([A-Za-z0-9-]+\\.)*instacart\\.(com|ca)/.+"},"productId":{"type":"string","description":"Instacart product identifier for product or enrich mode. Also supply retailerSlug.","pattern":"^\\s*[0-9A-Za-z_-]+\\s*$"},"productIds":{"type":"array","items":{"type":"string"},"description":"Product identifiers for enrich mode. Supply retailerSlug; each identifier counts as a separate input."},"retailerSlug":{"type":"string","description":"Retailer identifier from a store link, such as costco or sprouts. Required for product and enrich modes unless the product link identifies the retailer."},"shopId":{"type":"string","description":"Optional known shop identifier. Resolved from the selected retailer when needed and not provided."},"postalCode":{"type":"string","description":"Delivery ZIP or Canadian postal code used to select nearby stores. If omitted, the selected city or market supplies the location."},"city":{"type":"string","description":"City preset (sf, nyc, la, chicago, seattle, austin, miami, denver, toronto, vancouver, montreal, calgary, ottawa) or US/Canadian city name such as Cleveland, OH. If the city cannot be found, provide postalCode."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Instacart storefront, collection, hub, category, product, or search page links on instacart.com or instacart.ca. Each link is a separate input."},"enrichDetails":{"type":"boolean","description":"Add available ratings to existing product rows in listing modes, up to enrichLimit. Enabled by default; enrichment may increase run time.","default":true},"enrichLimit":{"type":"integer","description":"Maximum product rows to enrich with ratings, from 0 to 50; 0 skips rating enrichment in listing modes. In enrich mode, a positive value caps the product list, while 0 uses maxResults.","default":10,"minimum":0,"maximum":50},"includeEta":{"type":"boolean","description":"Include available delivery estimates in nearby-retailer searches. Separate ETA rows share the row limit and are billed like other rows.","default":false},"maxResults":{"type":"integer","description":"Most Dataset rows for each start URL or batch product ID; scalar modes such as one search, collection, storefront, or location count as one input. Default 70; larger values are collected in parts of 70. All row types count together for that input. The run stops at your maximum total charge. Free platform plan: 200 rows per run.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"country":"us","city":"nyc","productUrl":"https://www.instacart.com/products/123456-bananas?retailerSlug=costco","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_instacart_com"},"example":{"jobId":"job_instacar_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"itemType":"example_itemType","name":"example_name","retailerSlug":"example_retailerSlug","productId":"example_productId","priceString":"example_priceString","price":"example_price"}],"meta":{"site":"instacart-com","endpoint":"products","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/instacart-com/v1/health":{"get":{"operationId":"instacart_com_health","summary":"Instacart Grocery Products and Retailers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["instacart-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_instacart_com":{"type":"object","properties":{"itemType":{"type":["string","null"],"title":"Type"},"name":{"type":["string","null"],"title":"Name"},"retailerSlug":{"type":["string","null"],"title":"Retailer"},"productId":{"type":["string","null"],"title":"Product ID"},"priceString":{"type":["string","null"],"title":"Price"},"price":{"type":["string","null"],"title":"Price (numeric)"},"unitPrice":{"type":["string","null"],"title":"Unit price"},"isOnSale":{"type":["string","null"],"title":"On sale"},"rating":{"type":["string","null"],"title":"Rating"},"stockLevel":{"type":["string","null"],"title":"Stock"},"etaDisplay":{"type":["string","null"],"title":"ETA"},"collectionSlug":{"type":["string","null"],"title":"Collection"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"country":{"type":["string","null"],"title":"Country"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"geo":{"type":["string","null"],"title":"Coordinates"},"person":{"type":["string","null"],"title":"Contact"},"org":{"type":["string","null"],"title":"Retailer"},"web":{"type":["string","null"],"title":"Website / Socials"},"leadSource":{"type":["string","null"],"title":"Lead Source"},"leadReveal":{"type":["string","null"],"title":"Lead Reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead Absences"}},"additionalProperties":true},"Response_instacart_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_instacart_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}