Developers
Put sourced city data inside your tools.
WhereToHQ exposes a deterministic screener over roughly 3,000 US cities. Values come from public datasets and documented estimates. Directional metrics include national percentile context where supported. The same data powers the comparison site.
list_facets
The metrics you can filter and optimize on, with valid keys.
screen_cities
Structured criteria in, a ranked shortlist out with national context.
get_city
One city's full facet sheet with available national context.
This endpoint implements a bounded subset of MCP 2025-06-18 methods over JSON-RPC HTTP POST for compatible custom clients. It does not implement full MCP Streamable HTTP transport.
https://wheretohq.com/api/mcpFor higher limits, send an issued API key as a bearer token. Confirm method and transport compatibility in your client before relying on this endpoint.
In a custom GPT, add an Action and import the OpenAPI schema:
https://wheretohq.com/api/v1/openapi.jsonSet authentication to API Key, Bearer, with an issued key for the higher quota.
Anonymous callers get a small daily quota; an issued API key raises it. Read-only, open CORS.
# Discover facets
curl https://wheretohq.com/api/v1/facets
# Screen cities (structured criteria)
curl -X POST https://wheretohq.com/api/v1/screen \
-H 'content-type: application/json' \
-H 'authorization: Bearer wtq_your_key' \
-d '{
"filters": [{"key": "corpTaxRate", "op": "max", "value": 5}],
"weights": {"pctBachelors": 5, "elecCommercialCents": 3},
"states": ["TX"],
"limit": 5
}'
# One city, full sheet
curl https://wheretohq.com/api/v1/cities/frisco-txCreate an issued key on your account page. Successful data payloads include WhereToHQ attribution. Values come from public sources and documented estimates; granularity and percentile availability vary by field. Verify primary sources before decisions or republication.