{"openapi":"3.0.0","info":{"title":"Instacart Grocery Products and Retailers","version":"1.0.0","description":"Instacart grocery products, retailers, storefront collections, guest prices and delivery estimates in the US and Canada, one row per entity."},"servers":[{"url":"https://ah-instacart-com.opendata.best/s/instacart-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Instacart products, retailers, collections and delivery ETA","description":"Grocery products, retailers, storefront collections and ETA rows in the US and Canada.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","search","nearMe","discoverRetailers","storefront","collection","discoverCollections","hub","category","eta"],"description":"Mode. 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"},"country":{"type":"string","enum":["us","ca"],"description":"Country. Shopping market: us for the United States or ca for Canada.","default":"us"},"query":{"type":"string","description":"Search query. Search phrase for search mode. Add retailerSlug to search within one retailer.","example":"milk"},"retailerSlug":{"type":"string","description":"Retailer slug. 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 slug. Collection identifier from a collection link, such as produce. Use with retailerSlug in collection mode."},"hubSlug":{"type":"string","description":"Hub slug. Hub identifier, such as alcohol, convenience, pharmacy, pet, baby, or deals_tab. Required for hub mode."},"categoryId":{"type":"string","description":"SEO category ID. Numeric category identifier from a link such as /categories/1234-snacks. Required for category mode."},"categorySlug":{"type":"string","description":"SEO category slug. Optional category name after the numeric identifier in a category link."},"postalCode":{"type":"string","description":"Postal / ZIP. 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. 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.","example":"nyc"},"shopId":{"type":"string","description":"Shop ID. Optional known shop identifier. Resolved from the selected retailer when needed and not provided."},"zoneId":{"type":"string","description":"Zone ID. Optional delivery zone identifier for the selected location."},"latitude":{"type":"number","description":"Latitude. Optional latitude for the shopping location. Use with longitude."},"longitude":{"type":"number","description":"Longitude. Optional longitude for the shopping location. Use with latitude."},"language":{"type":"string","description":"Language. Optional language value. Leave empty for normal use; translated output is not guaranteed."},"enrichDetails":{"type":"boolean","description":"Enrich product details. Add available ratings to existing product rows in listing modes, up to enrichLimit. Enabled by default; enrichment may increase run time.","default":true,"example":false},"enrichLimit":{"type":"integer","minimum":0,"maximum":50,"description":"Enrich limit. 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,"example":0},"includeEta":{"type":"boolean","description":"Include ETA. 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","minimum":1,"maximum":50,"description":"Max collection pages. Maximum collection pages to read, from 1 to 50. The row limit can stop collection earlier.","default":10,"example":1},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"country":"us","city":"nyc","query":"milk","enrichDetails":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products":{"post":{"operationId":"products","summary":"Instacart product details and batch lookup","description":"Product details and guest pricing rows from a product URL, ID, productIds list or startUrls.","tags":["products"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["product","enrich","startUrls"],"description":"Mode. 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"},"country":{"type":"string","enum":["us","ca"],"description":"Country. Shopping market: us for the United States or ca for Canada.","default":"us"},"productUrl":{"type":"string","description":"Product URL. Instacart product page link. Also set retailerSlug unless the link identifies its retailer."},"productId":{"type":"string","description":"Product ID. Instacart product identifier for product or enrich mode. Also supply retailerSlug."},"productIds":{"type":"array","items":{"type":"string"},"description":"Product IDs (batch enrich). Product identifiers for enrich mode. Supply retailerSlug; each identifier counts as a separate input."},"retailerSlug":{"type":"string","description":"Retailer slug. 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":"Shop ID. Optional known shop identifier. Resolved from the selected retailer when needed and not provided."},"postalCode":{"type":"string","description":"Postal / ZIP. 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. 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.","example":"nyc"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. 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":"Enrich product details. Add available ratings to existing product rows in listing modes, up to enrichLimit. Enabled by default; enrichment may increase run time.","default":true,"example":false},"enrichLimit":{"type":"integer","minimum":0,"maximum":50,"description":"Enrich limit. 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,"example":0},"includeEta":{"type":"boolean","description":"Include ETA. 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","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"country":"us","city":"nyc","productUrl":"https://www.instacart.com/products/2728761-product?retailerSlug=ralphs","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"itemType":{"nullable":true,"type":"string","description":"Row discriminator. One of: shop, product, suggestion, collection, eta. Hub mode returns shop rows; category mode returns product rows."},"shopId":{"nullable":true,"type":"string"},"retailerId":{"nullable":true,"type":"string"},"retailerLocationId":{"nullable":true,"type":"string"},"retailerSlug":{"nullable":true,"type":"string"},"productId":{"nullable":true,"type":"string"},"retailerProductId":{"nullable":true,"type":"string","description":"Combined retailer and product identifier returned by searches across retailers."},"name":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"size":{"nullable":true,"type":"string"},"brandName":{"nullable":true,"type":"string"},"brandId":{"nullable":true,"type":"string"},"priceString":{"nullable":true,"type":"string"},"priceAriaLabel":{"nullable":true,"type":"string"},"available":{"nullable":true,"type":"boolean"},"rating":{"nullable":true,"type":"number","description":"Average product rating on a 0-5 scale. Omitted when no ratings are available."},"ratingsCount":{"nullable":true,"type":"integer","description":"Number of ratings behind `rating`. Absent when the product has no ratings."},"imageUrl":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"zoneId":{"nullable":true,"type":"string"},"serviceType":{"nullable":true,"type":"string"},"fulfillmentProviderId":{"nullable":true,"type":"string"},"logo":{"nullable":true,"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"homeCategories":{"type":"array","items":{"type":"string"}},"searchTerm":{"nullable":true,"type":"string"},"isNatural":{"nullable":true,"type":"boolean"},"collectionSlug":{"nullable":true,"type":"string"},"hubSlug":{"nullable":true,"type":"string"},"categoryId":{"nullable":true,"type":"string"},"categorySlug":{"nullable":true,"type":"string"},"etaMinutes":{"nullable":true},"etaDisplay":{"nullable":true,"type":"string"},"query":{"nullable":true,"type":"string"},"acquisition":{"nullable":true,"type":"string","description":"Source tag describing where the row was collected."},"source":{"nullable":true,"type":"string"},"scrapedAt":{"nullable":true,"type":"string"},"phones":{"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}}}},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true},"lng":{"nullable":true}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object"},"id":{"nullable":true,"type":"string"},"retailerName":{"nullable":true,"type":"string"},"capturedAt":{"nullable":true,"type":"string"},"legacyId":{"nullable":true,"type":"string"},"productCategoryName":{"nullable":true,"type":"string"},"stockLevel":{"nullable":true,"type":"string"},"soldBy":{"nullable":true,"type":"string"},"maxPerOrder":{"nullable":true},"dietary":{"type":"array","items":{"type":"string"}},"isStoreBrand":{"nullable":true,"type":"boolean"},"price":{"nullable":true,"type":"number","description":"Numeric product price."},"priceCents":{"nullable":true,"type":"integer","description":"Numeric product price in integer cents."},"priceSource":{"nullable":true,"type":"string"},"fullPriceString":{"nullable":true,"type":"string"},"regularPrice":{"nullable":true,"type":"number","description":"Numeric regular price before discount when on sale."},"regularPriceCents":{"nullable":true,"type":"integer"},"unitPrice":{"nullable":true,"type":"number"},"unitPriceUnit":{"nullable":true,"type":"string"},"pricingUnit":{"nullable":true,"type":"string"},"isOnSale":{"nullable":true,"type":"boolean"},"discountPercent":{"nullable":true,"type":"number"},"promotions":{"type":"array","items":{"type":"object"}},"nutritionalAttributes":{"type":"array","items":{"type":"object"}},"nutrition":{"nullable":true,"type":"object"},"reviews":{"type":"array","items":{"type":"object"}},"reviewsTotal":{"nullable":true,"type":"integer"},"loyaltyProgram":{"nullable":true,"type":"string"},"loyaltyPrice":{"nullable":true,"type":"number"}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=product: productId|id, name, url, priceString; rowType=shop: shopId|id, retailerSlug, name|retailerName; rowType=collection: collectionSlug, url; rowType=eta: shopId|retailerId, etaMinutes|etaDisplay; rowType=suggestion: searchTerm."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"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"}}}}}}