Skip to content

Schemas

This page summarizes the shared v2 response envelopes and resource schemas. Field-level details for settlement resources are also documented on their dedicated reference pages.

Response Envelopes

Data Response

Single-resource endpoints return:

json
{
  "data": {},
  "meta": {
    "datasetVersion": "2025",
    "lastUpdated": "2026-05-10"
  }
}

List Response

List endpoints return:

json
{
  "data": [],
  "meta": {
    "count": 0,
    "total": 0,
    "limit": 100,
    "offset": 0,
    "datasetVersion": "2025",
    "lastUpdated": "2026-05-10"
  }
}
FieldTypeDescription
meta.countintegerNumber of records in the current response
meta.totalintegerNumber of records matching the filters
meta.limitintegerRequested page size
meta.offsetintegerRequested offset
meta.datasetVersionstringDataset version used by the response
meta.lastUpdatedstringDataset update date

Resource Schemas

SchemaDescriptionReference
ProvinceProvince record with geography, region, coordinates, and aggregate countsProvinces
DistrictDistrict record with parent province, area, population, and aggregate countsDistricts
MunicipalityMunicipality record with type, parent IDs, population, and neighborhood countMunicipalities
NeighborhoodNeighborhood record with parent IDs, population, and postal codeNeighborhoods
VillageVillage record with parent IDs, population, and postal codeVillages

Shared Field Types

Field patternTypeNotes
idintegerPositive resource ID
namestringHuman-readable Turkish name
slugstringURL-safe resource name
populationintegerNon-negative population
area.valuenumberArea value
area.unitstringAlways km2
altitude.valuenumberAltitude value
altitude.unitstringAlways m
postalCodestring | nullPostal code can be null for some records
stats.*CountintegerNon-negative aggregate count

Municipality Types

ValueMeaning
province_centerProvince center municipality
district_centerDistrict center municipality
townTown municipality

Meta Schema

GET /v2/meta returns:

FieldTypeDescription
apiVersionstringAPI version
datasetVersionstringDataset version
lastUpdatedstringDataset update date
sourcesarrayDataset source list
counts.provincesintegerProvince count
counts.districtsintegerDistrict count
counts.municipalitiesintegerMunicipality count
counts.neighborhoodsintegerNeighborhood count
counts.villagesintegerVillage count

Error Schema

Error responses use:

json
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Error message.",
    "status": 400
  }
}

See Errors for error codes and examples.