AirLabs City

Single city record returned by the AirLabs Cities Database API.

CitiesDataGeographyLocationsReference DataTravel

Properties

Name Type Description
name string English name of the city.
city_code string IATA metropolitan area code.
un_code string UN/LOCODE for the city.
slug string SEO-friendly slug.
country_code string ISO 3166-1 alpha-2 country code.
lat number Latitude in decimal degrees.
lng number Longitude in decimal degrees.
elevation integer Elevation in meters.
timezone string IANA timezone identifier.
population integer Population count.
wikipedia string Wikipedia article URL.
names object Multilingual city names keyed by ISO 639-1 language code.
View JSON Schema on GitHub

JSON Schema

cities-database-api-city-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cities-database-api/main/json-schema/cities-database-api-city-schema.json",
  "title": "AirLabs City",
  "description": "Single city record returned by the AirLabs Cities Database API.",
  "type": "object",
  "required": ["name", "city_code", "country_code", "lat", "lng"],
  "properties": {
    "name": {
      "type": "string",
      "description": "English name of the city."
    },
    "city_code": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "IATA metropolitan area code."
    },
    "un_code": {
      "type": "string",
      "description": "UN/LOCODE for the city."
    },
    "slug": {
      "type": "string",
      "description": "SEO-friendly slug."
    },
    "country_code": {
      "type": "string",
      "pattern": "^[A-Z]{2}$",
      "description": "ISO 3166-1 alpha-2 country code."
    },
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Latitude in decimal degrees."
    },
    "lng": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Longitude in decimal degrees."
    },
    "elevation": {
      "type": "integer",
      "description": "Elevation in meters."
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone identifier."
    },
    "population": {
      "type": "integer",
      "minimum": 0,
      "description": "Population count."
    },
    "wikipedia": {
      "type": "string",
      "format": "uri",
      "description": "Wikipedia article URL."
    },
    "names": {
      "type": "object",
      "additionalProperties": {"type": "string"},
      "description": "Multilingual city names keyed by ISO 639-1 language code."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cities-database-api-city"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.