datasets_google_map_facets
Returns aggregation counts for Google Maps business facets such as category, geography, and website status, enabling filtering and exploration of stored business records.
Instructions
Facet stored Google Maps businesses. Returns terms aggregation counts for Google Maps businesses. Facet enum: category, country, state, state_code, county, county_code, city, town, website_status. Category facet values are exact locale-specific Google Maps labels and can be localized, non-ASCII, or contain punctuation; pass a returned value unchanged to the category filter. state and county keep each country's own administrative vocabulary (e.g. Provincia de Madrid, Département du Nord); state_code and county_code are ISO 3166-2 codes populated today only for Canadian provinces and territories (e.g. CA-ON) and Irish counties (e.g. IE-D); every other record, including all US rows, carries no code and is absent from the code facets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Full-text business search query, max 256 characters; every term must match the name, address, headline or category (filler words such as in, near and the are ignored) | |
| lat | No | Latitude for radius filtering | |
| lon | No | Longitude for radius filtering | |
| city | No | Exact city filter, max 128 characters | |
| sort | No | Sort enum: relevance, updated_at_desc, rating_desc, review_count_desc, distance_asc | |
| town | No | Exact town filter, max 128 characters | |
| facet | Yes | Facet enum: category, country, state, state_code, county, county_code, city, town, website_status | |
| state | No | Exact state filter, max 128 characters | |
| county | No | Exact county filter, max 128 characters | |
| country | No | Country filter. Accepts the full English name (\ | |
| has_geo | No | Filter by location presence: true keeps only mappable businesses with coordinates; false isolates locationless service-area businesses that have no map location | |
| category | No | Exact locale-specific Google Maps category label; use the category facet to discover values, max 128 characters | |
| radius_m | No | Radius in meters, 1 through 50000; requires lat and lon when supplied | |
| has_phone | No | Filter by phone presence | |
| min_rating | No | Minimum rating, 0 through 5. Businesses with no aggregate Google rating are returned with rating null, so any min_rating above 0 excludes them. | |
| state_code | No | Exact ISO 3166-2 state/region code filter, e.g. CA-ON, max 128 characters. Only Canadian provinces and territories carry a code today, so US codes such as US-NV return no rows; filter other countries by state, county or city. Use facet=state_code to list values | |
| county_code | No | Exact ISO 3166-2 county/district code filter, e.g. IE-D, max 128 characters. Only Irish counties carry a code today; filter other countries by county or city. Use facet=county_code to list values | |
| has_website | No | Filter by website presence | |
| min_review_count | No | Minimum review count | |
| permanently_closed | No | Closure filter. true keeps only businesses Google marks Permanently closed; false excludes them, keeping every business not known to be closed. Most rows have never been status-checked and are returned with permanently_closed null, which means unknown, not open. |