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
cafeorcoffee_shop. Find them with the Category lookup. categoriesmatches any listed ID (Any/OR over a place'scategory_ids);primary_categoriesmatches the primary category only.- Count takes exactly one
category_id, matched againstcategory_ids.
Areas
state(Region, Admin1) andcity(Local area, Admin2) are exact names;countryis required with either, and Count needsstatewithcity. 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,lngandradius_mgo together;radius_mis in meters and greater than 0.sort=distanceneeds the radius center. Withoutsort, results are by relevance withq, otherwise byreview_count.min_ratingmust not be abovemax_rating.
Field projection
fieldslimits the returned fields;place_keyis always included.user_reviewsis returned only when listed.- On Enriched Search,
fieldscan also name the groupsweb,visitorandpolygon; a group it leaves out is neither returned nor counted. Unset, it returns every Core field plus Web and Visitor;include_polygon=trueadds the matched polygon. - Details returns Core by default;
include=enrichmentadds Web and Visitor,include=polygonthe polygon.
Pagination
- Search, Enriched Search, the area breakdown and the Geography lookup return up to
limititems and an opaquenext_cursor. Send it ascursorwith the same other parameters for the next page;nullmeans the last page. - Every page of a paid operation is a separate, separately charged request.
- The Category lookup pages differently: send the last
category_idof a page asafterfor the next one (IDs are in ascending order). It returns nonext_cursor. - Counts are exact against the published aggregates of the dataset version being served, not real-time totals.