Start
Base URL https://locumetry.com/api/v1. Every request is a GET, every response is JSON, and every request except /health carries your key in the X-API-Key header.
curl -s https://locumetry.com/api/v1/districts/TR_06_1747 \
-H "X-API-Key: $LOCUMETRY_API_KEY"
import requests
api = requests.Session()
api.headers["X-API-Key"] = "your key"
BASE = "https://locumetry.com/api/v1"
sincan = api.get(f"{BASE}/districts/TR_06_1747").json()
print(sincan["geo"]["name"], sincan["scores"]["affluence_score"]["percentile"])
const res = await fetch("https://locumetry.com/api/v1/districts/TR_06_1747", {
headers: { "X-API-Key": process.env.LOCUMETRY_API_KEY },
});
const sincan = await res.json();
console.log(sincan.geo.name, sincan.labels.map(l => l.label));
Keys are issued per organisation under an agreement, with a technical trial arranged as part of it; see the partners page and the plans page. Runnable versions of everything on this page are in the examples folder.
Authentication
The key goes in the header only. A key in the URL would end up in access logs, so query-string keys are not accepted. A missing or unknown key answers 401; more requests per minute than your plan allows answers 429 with a Retry-After header saying how many seconds to wait. Each key is metered per day and route, and you can read your own meter at /usage. The embeddable district card is the one place a page needs access of its own: it carries a token from /embed-token, never the key.
Identifiers
Places are addressed by stable identifiers, never by name. Names change spelling and case between sources; identifiers do not.
TR_06- a province, by plate code (Ankara)
TR_06_1747- a district, by TÜİK district code (Sincan)
TR_06_1747_1838- a neighbourhood inside that district
TR5- a NUTS1 region, used by the
regionfilter (TR1 İstanbul, TR2 West Marmara, TR3 Aegean, TR4 East Marmara, TR5 West Anatolia, TR6 Mediterranean, TR7 Central Anatolia, TR8 West Black Sea, TR9 East Black Sea, TRA Northeast Anatolia, TRB Central East Anatolia, TRC Southeast Anatolia)
To find an identifier, list a province's districts with /districts?province=TR_06 or search by name with /districts?q=sincan. Every geography object also carries region_code, nuts3_code, a centroid and its area.
Reading the numbers
Scores are percentiles
percentile is the district's standing among all districts (or among provinces for the two province-level scores): 90 means higher than 90 percent of them. score_value is the underlying 0–100 value, rank_national and rank_region the positions.
Features carry a period
Every feature value comes with the year it describes; observations carry the exact period_date (first day of the year, quarter or month) and the source_id.
Estimates are flagged
is_estimated: true marks a value that was allocated from a provincial or national figure rather than measured for that district. Treat it as context, not as a fact about the district.
Everything is categorised
Every feature and every source metric carries a category id, one of the 16 listed at /catalog/categories (population, age, education, housing, places, banking and the rest). The site groups its figures by the same categories, so a row on a district page and a field in the API mean the same thing.
Change is ranked too
Every score carries change_1y, its move in national percentile points since last year, and /trends gives each measured series with its change over one, five and ten years and where that change stands among all districts.
Endpoints
Parameters are query parameters. A parameter shown as a list may be repeated: ?score=a&score=b.
The current districts, as geography objects.
province- restrict to one province:
TR_06or06 q- name prefix, matched Turkish-aware (
sincan,SİNCANandSincanare the same) limit,offset- paging; limit defaults to 1000, at most 2000
GET /districts?province=TR_06&limit=2
[{"geo_id": "TR_06_1130", "geo_level": "district", "name": "Altındağ", "province_code": "06",
"district_code": "1130", "parent_geo_id": "TR_06", "region_code": "TR5", "nuts3_code": "TR510",
"centroid_lat": 39.9987, "centroid_lon": 32.9805, "area_km2": 161.44},
{"geo_id": "TR_06_1157", "name": "Ayaş", ...}]
One district in full: the geography, the latest value of every feature with its year and category, every score with its inputs and its move since last year, and the labels with the evidence that fired them. Province-level scores are inherited from the district's province and marked "level": "province".
GET /districts/TR_06_1747
{"geo": {"geo_id": "TR_06_1747", "name": "Sincan", "parent_geo_id": "TR_06", "region_code": "TR5", ...},
"features": {
"population": {"value": 605366.0, "year": 2025, "is_estimated": false, "category": "population"},
"age_0_14_share": {"value": 0.206, "year": 2025, "is_estimated": false, "category": "age"},
... 302 features ...},
"scores": {
"affluence_score": {"score_value": 66.4, "percentile": 75.6, "rank_national": 238, "rank_region": 17,
"period_date": "2026-01-01", "level": "district", "change_1y": -14.7,
"components": {"avg_daily_earning": 0.975, "cars_per_1000": 0.988, "higher_education_share": 0.781, ...}},
... 15 scores ...},
"labels": [
{"label": "commuter_town",
"description": "Dense, growing residential district with little local employment",
"evidence": {"population_density": 701.562, "workplaces_per_1000": 18.524, "population_growth_3y": 0.019, ...}},
...],
"summary": {"en": "Sincan is a district in Ankara with a population of 605,366. ...",
"tr": "Sincan, Ankara'da 605.366 nüfuslu bir ilçedir. ...",
"data_as_of": "2026-10-30", "generated_at": "2026-10-31T13:58:02Z"}}
summary is a generated summary, three to five sentences in English and Turkish, written by a language model from this place's own numbers only. Every number and place name in it is checked against the data before it is stored, and it is rewritten only when the numbers behind it change; data_as_of is the date of the data it describes. It is null when no reading has passed the checks yet. Province detail carries the same field.
change_1y is the score's move in national percentile points since last year's scores (null for a score that did not exist a year ago). components gives the standing of each input on a 0 to 1 scale, so you can see what carried a score. The weights that combine them are not published; the methodology explains what each score is for and how to read it. An input that is a province statistic allocated to the district (an estimate) counts a quarter of a measured one.
Every feature's values by year, for trajectories and charts. For the change itself, with its national rank, use /trends.
feature- list; restrict to these feature ids. Without it, all of them are returned (303 at the time of writing).
GET /districts/TR_06_1747/history?feature=population
{"population": [..., {"year": 2023, "value": 571889.0, "is_estimated": false},
{"year": 2024, "value": 590309.0, "is_estimated": false},
{"year": 2025, "value": 605366.0, "is_estimated": false}]}
Change over time, ranked. For a district: each series measured for the district itself (population, age structure, education, housing sales, night-time lights, built-up share, births, marriages and the rest) with its latest value, the change over one, five and ten years, and change_5y_percentile: where the five-year change stands among all 973 districts, so 90 means the series moved up faster than in 90 percent of them. For a province: its own series (deposits, loans, earnings, GDP, employment, housing, vehicles, payment stress, age structure), ranked among the 81 provinces, with TRY amounts restated in latest-year prices before the change is measured.
feature- list; restrict to these feature ids
GET /districts/TR_06_1747/trends?feature=population&feature=illiteracy_rate
[{"feature_id": "population", "display_name": "Population", "category": "population", "unit": "persons", "change_unit": "%",
"latest": {"year": 2025, "value": 605366.0}, "first_year": 2008,
"change_1y": 2.55, "change_5y": 10.25, "change_10y": 19.41, "change_5y_percentile": 89.5,
"points": [{"year": 2008, "value": 393463.0}, ..., {"year": 2025, "value": 605366.0}]},
{"feature_id": "illiteracy_rate", "display_name": "Illiteracy rate", "category": "education", "unit": "share (0-1)", "change_unit": "pp",
"latest": {"year": 2025, "value": 0.0109}, "first_year": 2008,
"change_1y": -0.07, "change_5y": -0.36, "change_10y": -0.93, "change_5y_percentile": 79.5,
"points": [...]}]
change_unit says how to read the changes: pp (percentage points) for shares and rates, % for everything else. A change is measured from the latest point at or before the window, so a series observed every five years still gets a five-year change. Estimates allocated from a province figure are left out of district trends: they would hand every district of the province the same change. The same figures appear on the district and province pages, in each indicator's row under its category.
The raw observations behind the features, as published: exact period, period type, unit and source. Use this when you need the publisher's own number rather than a derived feature.
metric- list; restrict to these metric ids (see
/metrics)
GET /districts/TR_06_1747/observations?metric=population
[..., {"metric_id": "population", "period_date": "2025-01-01", "period_type": "year",
"value": 605366.0, "unit": "persons", "source_id": "tuik"}]
The districts that look most like this one across all features, with the features where each differs most and the labels they share. The usual question: "where else would what works here work?"
limit- 1 to 25, default 10
exclude_provincetrueto look outside the district's own province
GET /districts/TR_06_1747/similar?limit=2
[{"rank": 1, "geo_id": "TR_06_1746", "name": "Mamak", "province": "Ankara", "distance": 0.994,
"differences": [{"feature": "Home sales to foreigners per 10k residents", "direction": "higher"},
{"feature": "Active organised industrial zones", "direction": "lower"},
{"feature": "Population growth, 3 years (annualised)", "direction": "lower"}],
"shared_labels": ["commuter_town", "growth_hotspot", "high_growth_underserved", "industrial_hub", "residential_zone"]},
{"rank": 2, "geo_id": "TR_06_2034", "name": "Pursaklar", ...}]
The 81 provinces as geography objects; one province with its own features, the province-level scores (each with change_1y) and the list of its districts. Its series over time are at /provinces/{geo_id}/trends.
GET /provinces/TR_06
{"geo": {"geo_id": "TR_06", "name": "Ankara", ...},
"features": {...},
"scores": {"business_activity_growth_score": {"score_value": 71.4, "percentile": 100.0, "rank_national": 1, ...},
"credit_stress_score": {...}},
"districts": [{"geo_id": "TR_06_1872", "name": "Akyurt"}, {"geo_id": "TR_06_1130", "name": "Altındağ"}, ... 25 ...]}
The site-selection query. Districts that carry every label, none of without_label, and stand at or above / below the given national percentiles, inside an optional province, region or population band, sorted by a score.
min_score- list of
score_id:percentile, e.g.affluence_score:75; district-level scores only max_score- list of
score_id:percentile, e.g.commercial_saturation_score:50 label,without_label- lists of label ids the district must carry / must not carry
province,regionTR_35;TR3min_population,max_population- latest population bounds
sort- a district-level score, default
commercial_opportunity_score limit- 1 to 1000, default 100
GET /screen?min_score=affluence_score:75&min_score=economic_momentum_score:60
&max_score=commercial_saturation_score:60&sort=commercial_opportunity_score
[{"geo_id": "TR_06_1747", "name": "Sincan", "province": "Ankara", "population": 605366.0,
"labels": ["commuter_town", "growth_hotspot", "high_growth_underserved", "industrial_hub", "residential_zone"],
"scores": {"commercial_opportunity_score": {"value": 82.7, "percentile": 99.7, "rank": 4},
"affluence_score": {"value": 66.4, "percentile": 75.6, "rank": 238},
"economic_momentum_score": {"value": 68.4, "percentile": 94.8, "rank": 52},
"commercial_saturation_score": {"value": 46.7, "percentile": 46.1, "rank": 525}}},
{"geo_id": "TR_34_2014", "name": "Sultanbeyli", "province": "İstanbul", "population": 378908.0, ...},
{"geo_id": "TR_34_2048", "name": "Arnavutköy", "province": "İstanbul", "population": 358469.0, ...},
... 9 districts in all ...]
Only the scores named in the request plus the sort score are returned per row, so the result stays small. An empty list is a valid answer: the thresholds were too strict for that region.
The current ranking on one score, nationally or within a province or region. Province-level scores rank provinces.
score- default
commercial_opportunity_score province,region- restrict the list; ranks stay national
ascendingtruefor the bottom of the listlimit- default 50, at most 1000
GET /rankings?score=commercial_opportunity_score®ion=TR3&limit=3
[{"geo_id": "TR_35_1521", "name": "Menemen", "level": "district", "province": "İzmir",
"score_value": 79.17, "percentile": 98.0, "rank_national": 20, "rank_region": 1, "components": {...}},
{"geo_id": "TR_35_1682", "name": "Torbalı", ..., "rank_national": 30, "rank_region": 2},
{"geo_id": "TR_35_1128", "name": "Aliağa", ..., "rank_national": 33, "rank_region": 3}]
Districts ranked on one measured feature rather than a score: the largest populations, the fastest three-year growth, the most residents per pharmacy.
feature- required; a feature id from
/catalog/features year- a past year instead of the latest
ascending,limit- as for rankings
GET /features?feature=population_growth_3y&year=2024&limit=2
[{"geo_id": "TR_33_1366", "name": "Gülnar", "province": "Mersin", "value": 0.134, "period_date": "2024-01-01", "is_estimated": false},
{"geo_id": "TR_54_1925", "name": "Ferizli", "province": "Sakarya", "value": 0.083, ...}]
A district's (or province's) scores by year, with percentile and ranks, for "is it rising or falling" questions.
geo_id- required
score- list; restrict to these scores
GET /scores/history?geo_id=TR_06_1747&score=affluence_score
{"affluence_score": [..., {"year": 2025, "score_value": 82.73, "percentile": 90.3, "rank_national": 95, "rank_region": 12},
{"year": 2026, "score_value": 66.4, "percentile": 75.6, "rank_national": 238, "rank_region": 17}]}
Every label with its meaning and how many districts carry it; and the districts carrying one label, with the inputs that fired the rule.
province- on
/labels/{label}: restrict to one province
GET /labels
[{"label": "growth_hotspot", "description": "Top-quartile overall growth proxy", "districts": 244},
{"label": "high_growth_underserved", "description": "Fast growth with below-median commercial saturation", "districts": 69},
... 48 labels ...]
GET /labels/high_growth_underserved?province=TR_06
[{"geo_id": "TR_06_1187", "name": "Beypazarı", "province": "Ankara",
"evidence": {"growth_proxy_score": 75.609, "commercial_saturation_score": 46.11}},
{"geo_id": "TR_06_1260", "name": "Çubuk", "province": "Ankara",
"evidence": {"growth_proxy_score": 87.963, "commercial_saturation_score": 39.211}}, ...]
The catalogues. The 16 categories that every feature and metric belongs to, with their titles and what they hold; what each of the 302 features is, in which unit, which direction is better and how far back it goes; which inputs each of the 15 scores uses; and the 173 raw metrics with their publisher and native code. Features and metrics come back in category order; category= restricts either list to one.
GET /catalog/categories
[{"category": "population", "title": "Population and households",
"description": "Residents, their growth and movement, households, births, marriages and divorces from the TÜİK address-based registry.",
"features": 11, "metrics": 8},
{"category": "age", "title": "Age structure", "description": "Shares of residents by age band and how fast those shares move.",
"features": 8, "metrics": 5},
{"category": "education", ...}, {"category": "housing", ...}, {"category": "places", ...}, {"category": "place_change", ...},
{"category": "built_environment", ...}, {"category": "night_lights", ...}, {"category": "access", ...},
{"category": "banking", ...}, {"category": "banking_growth", ...}, {"category": "credit_stress", ...},
{"category": "economy", ...}, {"category": "business", ...}, {"category": "vehicles", ...},
{"category": "macro", "title": "National series", ..., "features": 0, "metrics": 9}]
GET /catalog/features?category=age
[{"feature_id": "age_0_14_share", "display_name": "Children (0-14) share", "category": "age",
"unit": "share (0-1)", "higher_is": "neutral",
"description": "Share of residents aged 0-14. TÜİK registry by age band for every district (MEDAS, 2007 on); ...",
"rows": 18809, "first_period": "2008-01-01", "last_period": "2025-01-01", "has_estimates": false}, ...]
GET /scores
[{"score_id": "affluence_score", "level": "district",
"components": ["avg_daily_earning", "cars_per_1000", "deposits_per_capita", "gdp_per_capita_usd", "housing_unit_price", ...]}, ...]
GET /metrics
[{"metric_id": "births", "display_name": "Live births", "category": "population", "unit": "persons",
"frequency": "yearly", "source_id": "tuik", "geo_level_min": "district", ...}, ...]
The neighbourhoods of a district with their latest population, largest first.
district- required
limit- default 2000, at most 5000
GET /neighborhoods?district=TR_06_1747&limit=2
[{"geo_id": "TR_06_1747_1838", "name": "Mustafa Kemal", "neighborhood_code": "1838", "kind": "uavt:mahalle", "population": 45079.0, "year": 2025},
{"geo_id": "TR_06_1747_1812", "name": "Pınarbaşı", ..., "population": 43428.0, "year": 2025}]
A district as a grid of H3 hexagons (resolution 7, about 5 km²), each with its estimated population and distances to the nearest bank, fuel station, hospital, pharmacy, school, supermarket, rail station and motorway junction. For maps and catchment work inside a district.
district- required
feature- list; restrict to these cell features
GET /h3?district=TR_06_1747
{"872d33020ffffff": {"population_estimate": 2472.4, "bank_distance_km": 21.02, "fuel_distance_km": 13.32,
"hospital_distance_km": 23.40, "pharmacy_distance_km": 14.74, "supermarket_distance_km": 15.23,
"school_distance_km": 14.82, "rail_station_distance_km": 16.52, "motorway_junction_distance_km": 9.58,
"major_road_km": 0.0},
... 155 cells ...}
A token for the embeddable district card. An iframe cannot send a header and your key must never appear in a page, so your server asks for a token here and the page carries only that. The token opens the card and nothing else; each card view is rate limited and metered against your key like an API call, and revoking or rotating the key ends every token minted with it.
district- ties the token to one district; omit it for any district and put the district id in the address yourself
origin- your site's origin, such as
https://www.example.com; the card then renders only inside a frame on that site and is refused when opened directly ttl- lifetime in seconds, default 3,600; at most 86,400 without an origin, up to 366 days with one
GET /embed-token?district=TR_34_1421&origin=https://www.example.com
{"token": "emb_eyJjIjoi….q0Zr…", "expires_at": "2026-11-15T19:40:12+00:00", "district": "TR_34_1421",
"origin": "https://www.example.com",
"embed_url": "https://locumetry.com/widget/TR_34_1421?token=emb_eyJjIjoi….q0Zr…"}
<iframe src="https://locumetry.com/widget/TR_34_1421?token=emb_eyJjIjoi….q0Zr…"
width="360" height="420" style="border:0" loading="lazy"></iframe>
Your own request counts per day and route (days, default 30); and the service's state, open without a key: whether last night's build finished and the data quality checks passed.
GET /usage?days=3
[{"client_id": "…", "day": "2026-10-30", "path": "/screen", "requests": 1, "errors": 0},
{"client_id": "…", "day": "2026-10-30", "path": "/districts/{geo_id}", "requests": 1, "errors": 0}, ...]
GET /health
{"status": "ok", "pipeline": "fresh", "data_quality": {"pass": 697, "warn": 1},
"last_nightly": {"status": "ok", "finished_at": "2026-10-30T01:54:19Z", "stale": false}}
Recipes
A site-selection screen
"Affluent, gaining momentum, not yet commercially saturated, with at least 100,000 residents." Thresholds are national percentiles; start loose and tighten.
hits = api.get(f"{BASE}/screen", params={
"min_score": ["affluence_score:75", "economic_momentum_score:60"],
"max_score": ["commercial_saturation_score:60"],
"min_population": 100000,
"sort": "commercial_opportunity_score",
"limit": 25,
}).json()
for d in hits:
s = d["scores"]
print(f'{d["name"]:<14} {d["province"]:<10} opp {s["commercial_opportunity_score"]["percentile"]:5.1f}'
f' afflu {s["affluence_score"]["percentile"]:5.1f} satur {s["commercial_saturation_score"]["percentile"]:5.1f}')
Labels make the same question shorter: label=high_growth_underserved&min_population=100000 returns the districts that are growing fast with below-median saturation, 23 of them at the time of writing, Sincan first.
Compare a shortlist
ids = ["TR_06_1747", "TR_35_1521", "TR_41_2061"]
rows = [api.get(f"{BASE}/districts/{g}").json() for g in ids]
for r in rows:
pct = {k: round(v["percentile"]) for k, v in r["scores"].items() if v["level"] == "district"}
pop = r["features"]["population"]
print(r["geo"]["name"], pop["value"], pop["year"], pct["affluence_score"], pct["economic_momentum_score"],
[l["label"] for l in r["labels"]])
Track a district over time
hist = api.get(f"{BASE}/districts/TR_06_1747/history",
params={"feature": ["population", "workplaces_per_1000", "commercial_poi_density"]}).json()
for feature, series in hist.items():
print(feature, [(p["year"], round(p["value"], 3)) for p in series[-5:]])
scores = api.get(f"{BASE}/scores/history", params={"geo_id": "TR_06_1747", "score": "affluence_score"}).json()
print([(p["year"], round(p["percentile"])) for p in scores["affluence_score"]])
# the change itself, ranked: which of the district's own series moved fastest against the rest of the country
for t in api.get(f"{BASE}/districts/TR_06_1747/trends").json():
print(f'{t["display_name"]:<36} 5y {t["change_5y"]:+7.2f}{t["change_unit"]} pct {t["change_5y_percentile"]}')
Find lookalikes
You have one district that works. Ask for the ten most similar ones outside its own province, and read the differences before you believe the match.
twins = api.get(f"{BASE}/districts/TR_06_1747/similar", params={"limit": 10, "exclude_province": "true"}).json()
for t in twins:
print(t["rank"], t["name"], t["province"], round(t["distance"], 2),
"; ".join(f'{d["feature"]} {d["direction"]}' for d in t["differences"]))
Export to CSV
import csv
rows = api.get(f"{BASE}/rankings", params={"score": "economic_vitality_score", "limit": 1000}).json()
with open("economic_vitality.csv", "w", newline="") as f:
w = csv.writer(f)
w.writerow(["geo_id", "district", "province", "score", "percentile", "rank_national", "rank_region"])
for r in rows:
w.writerow([r["geo_id"], r["name"], r["province"], round(r["score_value"], 1), round(r["percentile"], 1),
r["rank_national"], r["rank_region"]])
The examples folder has these as complete scripts, including a shell version with curl.
Scores and labels
Scores
| Score | Level | Reads as |
|---|---|---|
| economic_vitality_score | district | how much economic activity and formation there is: company births, employment, deposits and loans, population growth, cheque discipline |
| affluence_score | district | purchasing power: the district's higher-education share and upscale venue density, with earnings, deposits, cars, housing prices and consumer credit as province context |
| commercial_saturation_score | district | how crowded the commercial fabric already is relative to residents and area, including the satellite-measured built-up share; high means less room |
| economic_momentum_score | district | one-year change across population, employment, credit, deposits, car registrations, the district's own housing sales and its night-time light over the months reported so far, plus the five-year shift of its age structure towards or away from 25 to 44 |
| industrial_opportunity_score | district | industrial zones, employment, earnings, and access to motorway, rail and port |
| household_demand_growth_score | district | real growth of household deposits, loans, cards and population, from province series allocated to the district |
| growth_proxy_score | district | a summary of growth from the two growth scores, population change, three-year night-time light growth and five-year built-up growth |
| financial_services_opportunity_score | district | demand for branches and services against current branch coverage |
| commercial_opportunity_score | district | underserved demand, the headline volume measure: many, dense and growing residents, affluence and vitality, against the shops already there; not spending power on its own, so read it next to affluence |
| gym_opportunity_score, pharmacy_opportunity_score, supermarket_opportunity_score, ev_charger_opportunity_score | district | category versions of the same idea, each with the demand drivers that matter for that category |
| business_activity_growth_score | province | growth of company formation, commercial credit and deposits, merchants and POS terminals |
| credit_stress_score | province | non-performing loans, protested bills, returned cheques and company churn; high means more stress |
/scores lists the inputs of each score; components on a district shows the standing of each input for that district. For the full description of each score, see the methodology.
Labels
Labels are rules over the same features. Each label's description is returned by /labels; the district count is at the time of writing.
| Label | Meaning | Districts |
|---|---|---|
| growth_hotspot | Top-quartile overall growth proxy | 244 |
| declining_area | Shrinking population and bottom-quartile growth | 212 |
| affluent_saturated | Wealthy and commercially crowded | 193 |
| industrial_hub | Active industrial zones or strong industrial concentration | 179 |
| agri_center | Agricultural credit specialisation in a low-density district | 167 |
| tourism_hotspot | Dense hotels/attractions or strong foreign buyer demand | 115 |
| logistics_corridor | Dense motorway access with freight infrastructure nearby | 100 |
| high_growth_underserved | Fast growth with below-median commercial saturation | 69 |
| auto_dealer_cluster | Car dealerships concentrated by count and per resident | 53 |
| youth_bulge | Very young age structure with a high birth rate | 53 |
| transit_connected | Dense urban district with top-tier public transport stop coverage | 49 |
| foreign_buyer_magnet | Top decile of housing sales to foreigners per resident, in a sizeable district | 48 |
| banking_underserved | Bottom fifth of bank branches per resident, in a district of 50,000 or more | 47 |
| hotel_resort_town | Hotels far denser and more specialised than the national mix | 45 |
| new_venue_wave | Top 5% of commercial openings per resident over the last year | 45 |
| shopping_destination | Several malls plus dense fashion retail | 44 |
| fitness_and_beauty | Gyms and beauty services both in the national top decile per resident | 44 |
| migration_magnet | Top 5% net in-migration rate, in a sizeable district | 43 |
| high_turnover_retail | Top decile commercial churn (openings plus closures) in a commercially active district | 41 |
| boomtown | Sizeable district in the top decile of population growth with new venues opening | 40 |
| quiet_rural | Small, sparse, non-growing district with little commerce | 39 |
| seaside_beach_activity | On the coast with beach or resort activity | 37 |
| entertainment_hub | Cinemas and theatres concentrated by count and per resident, with restaurants to match | 37 |
| residential_zone | Dense population, thin commercial fabric | 36 |
| commuter_town | Dense, growing residential district with little local employment | 36 |
| warehouse_zone | Several warehouses with top-decile warehouse density | 36 |
| housing_boom | Top decile housing sales growth (a province series) with district population growth | 36 |
| banking_center | Bank branches concentrated by count and per resident | 35 |
| entrepreneur_hub | Company formation (province) plus dense offices and new venues opening | 32 |
| furniture_cluster | Furniture retail concentrated by count and per resident | 32 |
| retirement_coast | Coastal district with an old age structure | 31 |
| pharmacy_gap | Top 5% residents per pharmacy, in a district of 30,000 or more | 31 |
| metro_core | Top 3% population density with dense commerce and transit | 30 |
| university_town | Universities plus a young-adult population bulge | 29 |
| electronics_bazaar | Electronics and phone retail concentrated by count and per resident | 29 |
| ev_ready | EV charging points concentrated by count and per resident | 28 |
| healthcare_desert | Sizeable district in the bottom decile of hospital access | 28 |
| healthcare_hub | Hospital cluster with dense, specialised outpatient care | 27 |
| foodie_hotspot | Restaurant scene strong by volume, density and specialisation | 26 |
| aging_district | Top 5% share of residents aged 65 and over | 25 |
| nightlife_district | Bar and nightlife concentration | 22 |
| business_district | Office concentration well above the national mix, with a working-day economy | 22 |
| border_trade_hub | Near a border crossing with above-median business formation | 20 |
| young_families | Kindergartens dense, births and population growth above the median | 20 |
| cafe_culture | Cafe density and specialisation far above national norms | 19 |
| highway_stopover | Fuel stations dense along motorway kilometres in a thinly populated district | 12 |
| education_cluster | Dense education places with many schools | 9 |
| coffee_shop_paradise | Top-tier cafe scene by volume, density and specialisation | 4 |
Errors and limits
| Status | When | Body |
|---|---|---|
| 400 | a parameter is wrong: unknown score or label, a province-level score in min_score, a percentile outside 0 to 100 | {"detail": "min_score: unknown or province-level score 'foo'"} |
| 401 | missing or unknown key | {"detail": "invalid or missing API key"} |
| 404 | unknown identifier, or a province id given to a district endpoint | {"detail": "unknown district_id"} |
| 422 | a value of the wrong type, such as limit=abc | FastAPI's validation detail |
| 429 | more requests this minute than your plan allows, or a key past the daily volume in its agreement | {"detail": "rate limit exceeded"} with a Retry-After header in seconds; {"detail": "daily cap of ... requests reached ..."} for the daily volume |
Data is rebuilt nightly; responses may be cached for a short time at the edge. Identifiers and field names are stable within v1; new fields may be added, existing ones are not renamed or removed without a new version.
Locumetry is information, not advice. The API is built to make a shortlist defensible and traceable, not to replace a visit.