API Reference

Filters and pagination

How the filters combine, how to choose returned fields, and how to page through results.

Categories

  • Category IDs are lowercase letters, digits and underscores, such as cafe or coffee_shop. Find them with the Category lookup.
  • categories matches any listed ID (Any/OR over a place's category_ids); primary_categories matches the primary category only.
  • Count takes exactly one category_id, matched against category_ids.

Areas

  • state (Region, Admin1) and city (Local area, Admin2) are exact names; country is required with either, and Count needs state with city. Use the Geography lookup for the names.
  • Count also takes one H3 resolution 8 cell, h3_cell, instead of a Region or Local area.
  • Search and Count take one area per request. Several Regions, Local areas or map cells in one selection exist only for dataset purchases in the Explorer, not in the API.

Radius and sorting

  • lat, lng and radius_m go together; radius_m is in meters and greater than 0.
  • sort=distance needs the radius center. Without sort, results are by relevance with q, otherwise by review_count.
  • min_rating must not be above max_rating.

Field projection

  • fields limits the returned fields; place_key is always included. user_reviews is returned only when listed.
  • On Enriched Search, fields can also name the groups web, visitor and polygon; a group it leaves out is neither returned nor counted. Unset, it returns every Core field plus Web and Visitor; include_polygon=true adds the matched polygon.
  • Details returns Core by default; include=enrichment adds Web and Visitor, include=polygon the polygon.

Pagination

  • Search, Enriched Search, the area breakdown and the Geography lookup return up to limit items and an opaque next_cursor. Send it as cursor with the same other parameters for the next page; null means the last page.
  • Every page of a paid operation is a separate, separately charged request.
  • The Category lookup pages differently: send the last category_id of a page as after for the next one (IDs are in ascending order). It returns no next_cursor.
  • Counts are exact against the published aggregates of the dataset version being served, not real-time totals.