{"openapi":"3.0.0","info":{"title":"GrabFood Menus and GrabMart Catalog","version":"1.0.0","description":"GrabFood restaurants, menus and GrabMart grocery products across eight Southeast Asian markets, one row per entity."},"servers":[{"url":"https://ah-grab-com.opendata.best/s/grab-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search GrabFood merchants by keyword, cuisine or chain","description":"GrabFood merchant and category rows across eight Southeast Asian markets.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","search","cuisine","chain","recommended","discoverCategories","directory"],"description":"Mode. Leave on Auto: the mode is picked from the field you fill (Start URLs, Restaurant URL, Merchant ID, Mart item ID, Chain name, Cuisine slug or Keyword). Pick a mode to run feeds that need no target (recommended, discoverCategories, directory, mart_items, mart_merchants).","default":"auto","example":"auto"},"countryCode":{"type":"string","enum":["sg","my","ph","th","vn","id","kh","mm"],"description":"Country. Grab market country code","default":"ph","example":"ph"},"keyword":{"type":"string","description":"Keyword. What to search for, for example pizza or milk tea. With mode Auto a keyword runs a restaurant search; mart mode uses it for groceries; cuisine mode uses it when Cuisine slug is empty.","example":"pizza"},"cuisineSlug":{"type":"string","description":"Cuisine slug. For mode=cuisine — e.g. pizza, chicken, mart-delivery"},"cuisineId":{"type":"string","description":"Cuisine ID. Optional cuisine numeric/string id for /cuisines/{slug}/{id}"},"chainName":{"type":"string","description":"Chain name. For mode=chain — brand / chain keyword or slug"},"city":{"type":"string","description":"City slug. Optional delivery city slug (e.g. makati, cebu, chiang-mai, hanoi, bali). Leave empty to use the market's main city. Ignored when latlng is set; restaurant/startUrls URLs from another market use their own market's location."},"latlng":{"type":"string","description":"Lat,Lng. Optional delivery pin as \"latitude,longitude\" (e.g. 14.5547,121.0244). Overrides city."},"businessType":{"type":"string","enum":["ALL","FOOD","MART"],"description":"Business type. Filter search/recommended results","default":"ALL","example":"ALL"},"lang":{"type":"string","description":"Language path. Path locale (en/th/vi/id/ms/zh/km depending on market)","default":"en","example":"en"},"pageSize":{"type":"integer","minimum":1,"maximum":32,"description":"Merchants per page. Number of merchants requested per page, from 1 to 32. Continuing with a cursor retains its saved page size.","default":32,"example":32},"includeMenuItems":{"type":"boolean","description":"Include menu items (restaurant pages). For restaurant mode and restaurant links in startUrls, add menu items as separate billed rows within maxResults. Listing modes return merchants without menu items.","default":false,"example":false},"maxMenuItemsPerRestaurant":{"type":"integer","minimum":1,"maximum":200,"description":"Menu items per restaurant. Per-restaurant cap. Menu items still count within that input's maxResults budget.","default":25,"example":25},"expandBranches":{"type":"boolean","description":"Expand branch merchants. Include additional branch merchants when available. Each branch is a separately billed row within maxResults.","default":false,"example":false},"emitCuisines":{"type":"boolean","description":"Emit cuisine categories. Include available cuisine tags as separate category rows. Each category row is billed and counts toward maxResults.","default":false,"example":false},"emitPromoLabels":{"type":"boolean","description":"Emit promo / labels. Include available promotions and labels as separate rows. Each row is billed and counts toward maxResults.","default":false,"example":false},"enrichDetails":{"type":"boolean","description":"Enrich directory details. In directory mode, check up to maxEnrich merchant pages for public details. Pages without confirmed merchant data remain directoryOnly=true.","default":false},"maxEnrich":{"type":"integer","minimum":0,"maximum":50,"description":"Max directory detail pages. Directory mode with enrichDetails: maximum public merchant pages to inspect.","default":5,"example":5},"rowShape":{"type":"string","enum":["flat","nested"],"description":"Row shape. Flat writes every value as its own column (address, coordinates, prices, opening hours ...), which suits CSV and spreadsheets. Nested keeps the legacy sub-objects (address, geo, priceV2, phones ...).","default":"flat","example":"flat"},"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":{"countryCode":"ph","keyword":"pizza","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/restaurants":{"post":{"operationId":"restaurants","summary":"GrabFood restaurant profile and menu items","description":"Merchant details and menu item rows for a GrabFood restaurant URL, merchant ID or startUrls.","tags":["restaurants"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["restaurant","startUrls"],"description":"Mode. Leave on Auto: the mode is picked from the field you fill (Start URLs, Restaurant URL, Merchant ID, Mart item ID, Chain name, Cuisine slug or Keyword). Pick a mode to run feeds that need no target (recommended, discoverCategories, directory, mart_items, mart_merchants).","default":"restaurant","example":"auto"},"countryCode":{"type":"string","enum":["sg","my","ph","th","vn","id","kh","mm"],"description":"Country. Grab market country code","default":"ph","example":"ph"},"restaurantUrl":{"type":"string","description":"Restaurant URL. Paste a full GrabFood restaurant link, or a complete GrabMart product link with mode mart_item. Keep the item and merchant identifiers and URL text in the link."},"merchantId":{"type":"string","description":"Merchant ID. Grab merchant identifier. In Auto mode, this selects restaurant details."},"merchantSlug":{"type":"string","description":"Merchant slug. URL slug for restaurant or mart merchant detail"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. food.grab.com / mart.grab.com links (restaurants, cuisine pages, mart pages). One target per line."},"lang":{"type":"string","description":"Language path. Path locale (en/th/vi/id/ms/zh/km depending on market)","default":"en","example":"en"},"includeMenuItems":{"type":"boolean","description":"Include menu items (restaurant pages). For restaurant mode and restaurant links in startUrls, add menu items as separate billed rows within maxResults. Listing modes return merchants without menu items.","default":false,"example":false},"maxMenuItemsPerRestaurant":{"type":"integer","minimum":1,"maximum":200,"description":"Menu items per restaurant. Per-restaurant cap. Menu items still count within that input's maxResults budget.","default":25,"example":25},"expandBranches":{"type":"boolean","description":"Expand branch merchants. Include additional branch merchants when available. Each branch is a separately billed row within maxResults.","default":false,"example":false},"emitPromoLabels":{"type":"boolean","description":"Emit promo / labels. Include available promotions and labels as separate rows. Each row is billed and counts toward maxResults.","default":false,"example":false},"rowShape":{"type":"string","enum":["flat","nested"],"description":"Row shape. Flat writes every value as its own column (address, coordinates, prices, opening hours ...), which suits CSV and spreadsheets. Nested keeps the legacy sub-objects (address, geo, priceV2, phones ...).","default":"flat","example":"flat"},"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":{"countryCode":"ph","merchantId":"2-C7V1TZJDPECFRE","includeMenuItems":true,"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/mart":{"post":{"operationId":"mart","summary":"GrabMart grocery products and merchants","description":"GrabMart product, item detail and merchant rows across Southeast Asian markets.","tags":["mart"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["mart","mart_items","mart_item","mart_merchants"],"description":"Mode. Leave on Auto: the mode is picked from the field you fill (Start URLs, Restaurant URL, Merchant ID, Mart item ID, Chain name, Cuisine slug or Keyword). Pick a mode to run feeds that need no target (recommended, discoverCategories, directory, mart_items, mart_merchants).","default":"mart","example":"auto"},"countryCode":{"type":"string","enum":["sg","my","ph","th","vn","id","kh","mm"],"description":"Country. Grab market country code","default":"ph","example":"ph"},"keyword":{"type":"string","description":"Keyword. What to search for, for example pizza or milk tea. With mode Auto a keyword runs a restaurant search; mart mode uses it for groceries; cuisine mode uses it when Cuisine slug is empty.","example":"pizza"},"itemId":{"type":"string","description":"Mart item ID. GrabMart product identifier for mart_item mode. Also supply itemSlug, or use a complete product link in restaurantUrl."},"itemSlug":{"type":"string","description":"Mart item slug. For mode=mart_item — product slug in the item URL path"},"restaurantUrl":{"type":"string","description":"Restaurant URL. Paste a full GrabFood restaurant link, or a complete GrabMart product link with mode mart_item. Keep the item and merchant identifiers and URL text in the link."},"city":{"type":"string","description":"City slug. Optional delivery city slug (e.g. makati, cebu, chiang-mai, hanoi, bali). Leave empty to use the market's main city. Ignored when latlng is set; restaurant/startUrls URLs from another market use their own market's location."},"latlng":{"type":"string","description":"Lat,Lng. Optional delivery pin as \"latitude,longitude\" (e.g. 14.5547,121.0244). Overrides city."},"lang":{"type":"string","description":"Language path. Path locale (en/th/vi/id/ms/zh/km depending on market)","default":"en","example":"en"},"pageSize":{"type":"integer","minimum":1,"maximum":32,"description":"Merchants per page. Number of merchants requested per page, from 1 to 32. Continuing with a cursor retains its saved page size.","default":32,"example":32},"rowShape":{"type":"string","enum":["flat","nested"],"description":"Row shape. Flat writes every value as its own column (address, coordinates, prices, opening hours ...), which suits CSV and spreadsheets. Nested keeps the legacy sub-objects (address, geo, priceV2, phones ...).","default":"flat","example":"flat"},"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":{"countryCode":"sg","mode":"mart","keyword":"milk","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":{"rowType":{"nullable":true,"type":"string","description":"Entity type: restaurant, menuItem, martItem, mart_item_detail, category, promo, or label."},"itemType":{"nullable":true,"type":"string","description":"Legacy compatibility field"},"businessType":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"countryCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"merchantId":{"nullable":true,"type":"string"},"restaurantId":{"nullable":true,"type":"string"},"restaurantName":{"nullable":true,"type":"string"},"restaurantUrl":{"nullable":true,"type":"string"},"restaurantCity":{"nullable":true,"type":"string","description":"City from the restaurant's own address. Empty when the source supplies no city; the delivery city and district are not substitutes."},"merchantSlug":{"nullable":true,"type":"string"},"itemId":{"nullable":true,"type":"string"},"itemSlug":{"nullable":true,"type":"string"},"slug":{"nullable":true,"type":"string"},"merchantName":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"priceV2":{"nullable":true,"type":"object"},"discountedPriceV2":{"nullable":true,"type":"object"},"currency":{"nullable":true,"type":"string"},"barcode":{"nullable":true,"type":"string"},"itemClassID":{"nullable":true,"type":"string"},"available":{"nullable":true,"type":"boolean"},"weight":{"nullable":true,"type":"string"},"soldByWeight":{"nullable":true,"type":"boolean"},"images":{"nullable":true,"type":"array","items":{}},"nameSource":{"nullable":true,"type":"string","description":"url_slug or jsonld for directory mode"},"sitemapUrl":{"nullable":true,"type":"string"},"lastmod":{"nullable":true,"type":"string"},"lang":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string","description":"Requested delivery city, or the selected market's default city. This is not necessarily the restaurant's location; see restaurantCity."},"directoryOnly":{"nullable":true,"type":"boolean"},"detailStatus":{"nullable":true,"type":"string"},"id":{"nullable":true},"title":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"rating":{"nullable":true},"section":{"nullable":true,"type":"string"},"productId":{"nullable":true},"price":{"nullable":true},"deliveryFee":{"nullable":true},"eta":{"nullable":true},"cuisine":{"nullable":true},"promoText":{"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}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"type":"array","items":{}}}},"leadSource":{"nullable":true,"type":"string","enum":["search","detail","entity","contact","reveal-xhr"]},"leadReveal":{"nullable":true,"type":"string","enum":["visible","click","xhr","gated","image","absent"]},"leadAbsences":{"type":"object","additionalProperties":{"nullable":true,"type":"string"}},"addressCheck":{"nullable":true,"description":"Check of the address against the requested market (nested rows)."},"addressRaw":{"nullable":true,"description":"Address text as the source wrote it (nested rows)."},"branchName":{"nullable":true,"type":"string"},"campaignName":{"nullable":true,"type":"string"},"campaignID":{"nullable":true},"campaigns":{"nullable":true,"description":"Campaigns on the merchant (nested rows: array)."},"chainID":{"nullable":true,"type":"string"},"chainName":{"nullable":true,"type":"string"},"cuisines":{"nullable":true,"description":"Cuisine list (nested rows)."},"deliverOptions":{"nullable":true,"description":"Delivery options; flat rows join them into text."},"deliveryFeeCurrency":{"nullable":true,"description":"Delivery fee currency (nested rows)."},"deliveryFeePrice":{"nullable":true},"discountAmountV2":{"nullable":true,"description":"Discount amount (nested rows)."},"discountPercentage":{"nullable":true},"discountPrice":{"nullable":true},"distanceInKm":{"nullable":true},"estimatedDeliveryTime":{"nullable":true},"estimatedDeliveryTimeRange":{"nullable":true,"description":"Delivery time range; flat rows hold it as text."},"etaColor":{"nullable":true,"type":"string"},"etaIconName":{"nullable":true,"type":"string"},"externalData":{"nullable":true,"description":"Extra source data (nested rows)."},"hasDiscountedFee":{"nullable":true,"type":"boolean"},"iconUrl":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"isBranch":{"nullable":true,"type":"boolean"},"labelID":{"nullable":true},"labelType":{"nullable":true,"type":"string"},"labels":{"nullable":true,"description":"Labels (nested rows: array)."},"menuTruncated":{"nullable":true,"type":"boolean","description":"True when the menu was cut at maxMenuItemsPerRestaurant or the row budget."},"openHours":{"nullable":true,"description":"Opening hours (nested rows)."},"photoHref":{"nullable":true,"type":"string"},"preloadTruncated":{"nullable":true,"type":"boolean"},"preloadedItems":{"nullable":true,"description":"Preloaded menu items; flat rows hold a count or text."},"priceDisplay":{"nullable":true,"type":"string"},"priceInMinorUnit":{"nullable":true},"priceRange":{"nullable":true},"priceTag":{"nullable":true},"promo":{"nullable":true,"description":"Promotion (nested rows)."},"roofTopBanner":{"nullable":true,"description":"Banner shown on top of the store (nested rows)."},"servesCuisine":{"nullable":true,"description":"Cuisines served; flat rows join them with commas."},"SKU":{"nullable":true},"sofConfiguration":{"nullable":true,"description":"Small-order fee settings (nested rows)."},"takeawayPriceInMin":{"nullable":true},"voteCount":{"nullable":true},"cuisineId":{"nullable":true},"cuisineSlug":{"nullable":true,"type":"string"},"addressFull":{"nullable":true,"type":"string","description":"Full address (flat rows; from address.full)."},"addressStreet":{"nullable":true,"type":"string"},"addressUnit":{"nullable":true,"type":"string"},"addressLocality":{"nullable":true,"type":"string"},"addressRegion":{"nullable":true,"type":"string"},"addressPostalCode":{"nullable":true,"type":"string"},"addressCountry":{"nullable":true,"type":"string"},"addressCheckStatus":{"nullable":true,"type":"string"},"addressCheckCountry":{"nullable":true,"type":"string"},"latitude":{"nullable":true,"description":"Latitude (flat rows; from geo.lat)."},"longitude":{"nullable":true,"description":"Longitude (flat rows; from geo.lng)."},"deliveryFeeCurrencyCode":{"nullable":true,"type":"string"},"deliveryFeeCurrencySymbol":{"nullable":true,"type":"string"},"deliveryFeeCurrencyExponent":{"nullable":true},"openHoursOpen":{"nullable":true},"openHoursDisplayed":{"nullable":true,"type":"string"},"openHoursMon":{"nullable":true,"type":"string"},"openHoursTue":{"nullable":true,"type":"string"},"openHoursWed":{"nullable":true,"type":"string"},"openHoursThu":{"nullable":true,"type":"string"},"openHoursFri":{"nullable":true,"type":"string"},"openHoursSat":{"nullable":true,"type":"string"},"openHoursSun":{"nullable":true,"type":"string"},"hasPromo":{"nullable":true,"type":"boolean"},"orgName":{"nullable":true,"type":"string"},"orgId":{"nullable":true},"personName":{"nullable":true,"type":"string"},"personRole":{"nullable":true,"type":"string"},"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"string"},"leadAbsencesSummary":{"nullable":true,"type":"string"},"priceMinor":{"nullable":true},"discountedPriceMinor":{"nullable":true},"discountedPriceDisplay":{"nullable":true,"type":"string"},"discountAmountMinor":{"nullable":true},"discountAmountDisplay":{"nullable":true,"type":"string"},"sofEnabled":{"nullable":true,"type":"boolean"},"sofThresholdInMin":{"nullable":true},"sofThresholdDisplay":{"nullable":true,"type":"string"},"sofFixFeeInMin":{"nullable":true},"sofFixFeeDisplay":{"nullable":true,"type":"string"},"sofCalculationMode":{"nullable":true,"type":"string"},"sofTips":{"nullable":true,"type":"string"},"roofTopBannerType":{"nullable":true,"type":"string"},"roofTopBannerTitle":{"nullable":true,"type":"string"},"roofTopBannerMessage":{"nullable":true,"type":"string"},"roofTopBannerScheduledTime":{"nullable":true},"externalDataJson":{"nullable":true,"type":"string"},"labelTexts":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"phonesCount":{"nullable":true,"type":"integer"},"email":{"nullable":true,"type":"string"},"emailsCount":{"nullable":true,"type":"integer"},"primaryImageUrl":{"nullable":true,"type":"string"},"imagesCount":{"nullable":true,"type":"integer"},"campaignsSummary":{"nullable":true,"type":"string"},"campaignsCount":{"nullable":true,"type":"integer"},"raw":{"nullable":true,"type":"object","description":"Only with rowShape=flat and includeRaw=true: the original nested sub-objects.","additionalProperties":true}},"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=category: id, name; rowType=coverage: id, countryCode|country, merchantCount|estimatedRows; rowType=label: id, text|name; rowType=martItem: id, slug, url, merchantId; rowType=mart_item_detail: id, name, price, merchantId; rowType=menuItem: id, name, price, restaurantId|merchantId; rowType=promo: id, title|name; rowType=restaurant: id, name, restaurantUrl|url."},"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"}}}}}}