datasets_google_map_facets
Retrieve aggregated counts of Google Maps businesses by facet such as category, location, or website status. Filter by full-text search, geography, rating, and more.
Instructions
Facet stored Google Maps businesses. Returns terms aggregation counts for Google Maps businesses. Facet enum: category, country, state, county, city, town, website_status. category values (as a facet or filter) are Google Maps type tokens in lower-case snake_case (e.g. dentist, bus_stop, atm).
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, county, city, town, website_status | |
| state | No | Exact state filter, max 128 characters | |
| county | No | Exact county filter, max 128 characters | |
| country | No | Exact country filter, max 128 characters | |
| 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 category filter: a Google Maps type token in lower-case snake_case (e.g. dentist, bus_stop), 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. | |
| has_website | No | Filter by website presence | |
| min_review_count | No | Minimum review count |