datasets_google_map_facets
Get aggregated counts for Google Maps businesses by category, country, state, county, city, town, or website status to explore and refine datasets.
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 the matching ISO 3166-2 codes (e.g. ES-MD, FR-59) and are the stable cross-country grouping key. Rows not yet resolved carry no code and are absent from the code facets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Full-text business search query, max 256 characters | |
| 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. US-CA or FR-HDF, max 128 characters; use facet=state_code to discover values | |
| county_code | No | Exact ISO 3166-2 county/district code filter, e.g. FR-59 or IT-RM, max 128 characters; use facet=county_code to discover 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. |