location_search
Resolve city and place names to exact location formats for local SEO tools, returning codes, types, and parent data; disambiguate duplicate municipalities with a state filter.
Instructions
Use when resolving city names to the exact format needed by other tools. Call this when a tool returns no results for a location or when the format is ambiguous. Returns name, code, type (location taxonomy: City, County, State, DMA Region, ...), state, country, and parent_code, plus total_count and a truncated flag. IMPORTANT for multi-location ambiguity: many municipalities exist twice (e.g. "Hamilton" AND "Hamilton Township" in NJ — different entities with very different search volumes); pass a bare place name plus the state param to see all of them. Free (0 credits).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Place name (e.g. "Cherry Hill" or "Austin, TX"). Prefer a bare name + state param over baking the state into q. | |
| limit | No | Max results. Default: 10 | |
| state | No | State/province filter, name or abbreviation (e.g. "NJ"). Scopes matching without hiding suffixed entities like townships. | |
| country | No | Country filter (e.g. "United States" or "US") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locations | Yes | ||
| truncated | No | ||
| total_count | No |