Look up locations
Returns locations from PeakMetrics’ normalized location taxonomy. Use this endpoint
to discover the numeric location id values you pass to the locations.<level>
filters on the mentions, timeline, and distribution endpoints.
The taxonomy has six levels, from coarsest to finest: region, subregion,
country, state, county, and city. state and county are United States
only — mentions outside the US resolve to a country and, where the source is
specific enough, a city.
Location ids are unique only within a level. Each level is its own id space, so
region 1, country 1, and city 1 are three different places. That is why
parent_id must always be sent together with parent_level, and why mentions are
filtered with a per-level parameter (locations.country, locations.city, and so
on) rather than one combined parameter.
At least one of level, query, or parent_id is required. Combine them to
narrow the results — for example ?parent_id=10&parent_level=country&query=cal
returns the direct children of the United States whose names start with “cal”.
Pagination — every response is paged. limit defaults to 100 and may be up
to 500; offset skips results. The pagination object reports total for the
whole query and hasMore, so you can enumerate a level completely — all ~3,100
US counties, or the full city list — by walking offset forward. Results are
ordered coarsest level first, then cities by population descending, and that
order is stable, so a result cannot move between pages.
Coverage — location resolution is best effort and coverage varies by channel. It is strong for news and partial for social. Location is available on mentions published on or after July 1, 2026; mentions published before that date carry no normalized location at all. No boundary or geometry data is returned.
Authorizations
Query Parameters
Response
A JSON object containing the matching locations.