{"openapi":"3.0.0","info":{"title":"Google Maps US Places and Reviews Data","version":"1.0.0","description":"US Google Maps business listings, addresses, phone numbers, websites, coordinates, ratings and optional reviews, one row per entity."},"servers":[{"url":"https://ah-gmaps.opendata.best/s/google-maps-scraper"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search US Google Maps places and optional reviews","description":"Search US businesses and places on Google Maps with addresses, phone numbers, coordinates, ratings and optional reviews. Fixed for this endpoint: runMode=\"real\".","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"searchQuery":{"type":"string","description":"Search query. One Google Maps search in the United States, such as coffee in Chicago. An empty input runs that example with a limit of 3 rows; normal charges apply.","example":"coffee in Chicago"},"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},"includeReviews":{"type":"boolean","description":"Include reviews. Collect reviews as separate rows, requested newest first. Off by default; each review is billed at the same price as a place and counts toward maxResults.","default":false,"example":false},"maxReviewsPerPlace":{"type":"integer","minimum":0,"maximum":5000,"description":"Max reviews per place. Maximum reviews for each place when includeReviews is true. Zero means up to 500 available reviews per place; all reviews still share the maxResults limit with places.","default":0,"example":0},"language":{"type":"string","description":"Language. Google language code, such as en, es, es-419 or zh-TW. It does not change the US market or guarantee translated review text.","default":"en","example":"en"},"country":{"type":"string","enum":["US"],"description":"Market country. Supported market: United States only. Leave this set to US.","default":"US","example":"US"},"gridBbox":{"type":"string","description":"Grid bounding box (optional). Optional US rectangle as min_lat,min_lng,max_lat,max_lng. Searches up to 100 cells and returns only places inside the rectangle; use a category without a city in searchQuery.","default":""},"gridCellSizeKm":{"type":"number","minimum":0.1,"maximum":10.0,"description":"Grid cell size (km). Requested grid cell size in kilometers, used only with gridBbox. It increases automatically if needed to keep the rectangle within 100 cells.","default":1.0},"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":{"searchQuery":"coffee in Chicago","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":{"type":"string","description":"Row type; each place and each review is its own billed row.","enum":["place","review"]},"id":{"type":"string","description":"Stable row id. Place row: the hex place ID. Review row: <place_id>:<review_id>."},"place_id":{"type":"string","description":"Google Maps hexadecimal place identifier, shared by a place and its review rows."},"name":{"type":"string","description":"Place row: business name. Review row: name of the reviewed place."},"category":{"type":"string","description":"Business category (e.g. Restaurant, Hotel)"},"address":{"type":"string","description":"Full address"},"phone":{"type":"string","description":"Phone number"},"website":{"type":"string","description":"Website URL"},"has_phone":{"type":"boolean","description":"Whether a phone number was found for this place."},"has_website":{"type":"boolean","description":"Whether a website URL was found for this place."},"is_contactable":{"type":"boolean","description":"True when at least one direct contact channel (phone or website) is present."},"missing_fields":{"type":"array","description":"Names of missing business fields: phone, website or opening_hours.","items":{"type":"string"}},"needs_enrichment":{"type":"boolean","description":"True when a phone, website or opening hours is missing."},"latitude":{"nullable":true,"type":"number","description":"Latitude of the place (also on review rows); null when Maps shows no coordinates."},"longitude":{"nullable":true,"type":"number","description":"Longitude of the place (also on review rows); null when Maps shows no coordinates."},"rating":{"nullable":true,"type":"number","description":"Place row: average rating, 1-5. Review row: the reviewer's star rating, 1-5. Null when Google shows none (never 0)."},"rating_bucket":{"type":"string","description":"Simple rating band: unknown (no rating), low, solid, strong, or top."},"is_low_rating":{"type":"boolean","description":"True when the place rating is below 4.0; false when the rating is unknown."},"review_count":{"nullable":true,"type":"integer","description":"Place row: total review count on Google; null when the place shows no count."},"review_id":{"type":"string","description":"Review row: Google's review ID (a stable hash when Google gives none)."},"reviewer_name":{"type":"string","description":"Review row: reviewer's display name."},"reviewer_avatar":{"type":"string","description":"Review row: reviewer's avatar URL; empty when not shown."},"reviewer_profile":{"type":"string","description":"Review row: reviewer's Google Maps profile URL; empty when not shown."},"relative_date":{"type":"string","description":"Review row: when the review was posted, as Google shows it (\"3 days ago\")."},"text":{"type":"string","description":"Review row: review text; empty for a rating without text."},"language":{"nullable":true,"type":"string","description":"Review row: two-letter language of the review text; null when Google does not say."},"photo_count":{"type":"integer","description":"Review row: number of photos attached to the review (up to 10 kept)."},"food_rating":{"nullable":true,"type":"integer","description":"Review row: food score 1-5; null when the reviewer gave none."},"service_rating":{"nullable":true,"type":"integer","description":"Review row: service score 1-5; null when the reviewer gave none."},"atmosphere_rating":{"nullable":true,"type":"integer","description":"Review row: atmosphere score 1-5; null when the reviewer gave none."},"place_rating":{"nullable":true,"type":"number","description":"Review row: the reviewed place's average rating; null when Google shows none."},"place_review_count":{"nullable":true,"type":"integer","description":"Review row: the reviewed place's total review count; null when not shown."},"price_level":{"type":"string","description":"Price level indicator ($, $$, $$$, $$$$) derived from the price-range votes when the place lists one; empty when the place publishes none."},"price_range":{"nullable":true,"type":"object","description":"Null when the place has no price block."},"popular_times":{"nullable":true,"type":"object","description":"Busy-hours summary and weekly histogram when the place lists them."},"guided_attributes":{"type":"array","description":"Google review-question codes for topics such as dining, parking and noise, when available.","items":{"type":"string"}},"guided_attribute_details":{"type":"array","description":"Place row: available review questions and answers, with scores and vote counts when shown. Up to 50 questions, sorted by key; empty when unavailable.","items":{"type":"object","properties":{"key":{"type":"string","description":"GUIDED_* questionnaire key, same values as guided_attributes."},"question":{"type":"string","description":"Question shown to reviewers."},"label":{"type":"string","description":"Short label of the question."},"score":{"type":"integer","description":"Aspect rating 1–5 when the question is a food/service/atmosphere score."},"options":{"type":"array","description":"Answers reviewers picked.","items":{"type":"object","properties":{"enum":{"type":"string","description":"Answer code, e.g. E:DINE_IN."},"display":{"type":"string","description":"Answer text as shown on Google Maps."},"votes":{"type":"integer","description":"Number of reviewers who picked this answer."},"label":{"type":"string","description":"Longer answer label when Google gives one."}}}}}}},"opening_hours":{"type":"array","description":"Opening hours by day","items":{"type":"string"}},"photos":{"type":"array","description":"Place row: place photo URLs. Review row: photos attached to the review (up to 10).","items":{"type":"string"}},"photos_detailed":{"type":"array","description":"Place row: the same place photos as photos (up to 10), each with its Google photo id and upload date (YYYY-MM-DD) when known. Empty when the place has no photos.","items":{"type":"object","properties":{"url":{"type":"string","description":"Photo URL."},"photo_id":{"type":"string","description":"Google photo id."},"uploaded_at":{"type":"string","description":"Upload date YYYY-MM-DD."}}}},"google_maps_url":{"type":"string","description":"Direct Google Maps URL"},"has_recent_reviews":{"type":"boolean","description":"True when scraped reviews include activity from the last days or weeks."},"monitoring_flags":{"type":"array","description":"Place row flags: low_rating (below 4.0), recent_review_activity, no_reviews (Google shows 0 reviews).","items":{"type":"string"}},"review_count_scraped":{"nullable":true,"type":"integer","description":"Always null on place rows; count the review rows with the same place_id instead."},"phones":{"nullable":true,"type":"array","description":"Published place phone numbers with value, type and e164 fields. Type is unknown; an empty list means no public number was found.","items":{"type":"object"}},"emails":{"nullable":true,"type":"array","description":"Always empty on Google Maps; see leadAbsences.emails.","items":{"type":"object"}},"addressParts":{"nullable":true,"type":"object","description":"Structured address from Google's components; unit is the suite/unit on the street line.","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","description":"lat/lng in addition to street address","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","description":"Owner or business-contact information is not collected. Name and role stay null.","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","description":"Place name and hex feature id","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","description":"Independent website and social-page URLs, separated into website and socials.","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string","description":"search when the place came from a search result, detail when it was read by place ID or URL."},"leadReveal":{"nullable":true,"type":"string","description":"Visible when a phone number or address is present; absent otherwise."},"leadAbsences":{"nullable":true,"type":"object","description":"Why a lead field is empty, in plain English."},"plusCode":{"nullable":true,"type":"string","description":"Plus Code derived from place coordinates; null when coordinates are absent."},"locatedIn":{"nullable":true,"type":"string"},"google_place_id":{"nullable":true,"type":"string","description":"Google place ID (ChIJ...)"},"categories":{"type":"array","description":"All categories Google lists for the place","items":{}},"plus_code":{"nullable":true,"type":"string","description":"Plus Code derived from place coordinates; empty when coordinates are absent."},"located_in":{"nullable":true,"type":"string","description":"Always empty; kept for compatibility (see locatedIn)."}},"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=place: id, name, google_maps_url, address, latitude, longitude, category."},"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"}}}}}}