API
STATLAS exposes source-attributed city, country, metric, ranking, comparison, and map data through JSON endpoints under /api/v1.
Cache
s-maxage=3600
Limit
100/hour/IP
Bypass
Bearer token
Endpoints
Paginated city summaries, optionally filtered by country ISO2.
Full city object with country context and all metric data points.
Full country object with cities and all metric data points.
One city or country metric lookup.
Two to four city or country slugs with aligned metric values.
City coordinates and active metric values for map layers.
Try it
{
"data": "Run a request to view the response."
}Examples
GET /api/v1/cities/lisbon
{
"data": {
"type": "city",
"slug": "lisbon",
"name": "Lisbon",
"country": { "slug": "portugal", "name": "Portugal" },
"dataPoints": [
{ "metric": { "slug": "cost-of-living" }, "value": 54.2 }
]
}
}HTTP/1.1 429 Too Many Requests
Retry-After: 3600
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
{
"error": {
"code": "rate_limit_exceeded"
}
}