TravelType · Schema

CityDetail

CompanyTravelDataOpen Data

Properties

Name Type Description
slug string
name string
name_en stringnull
country_iso2 string
lat number
lng number
poi_count integer
wikidata_qid stringnull
top_tags array
top_categories array
sample_pois array
View JSON Schema on GitHub

JSON Schema

traveltype-app-city-detail-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/traveltype-app/json-schema/traveltype-app-city-detail-schema.json",
  "title": "CityDetail",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/traveltype-app-openapi.json#/components/schemas/CityDetail",
  "allOf": [
    {
      "$ref": "#/$defs/CitySummary"
    },
    {
      "type": "object",
      "properties": {
        "top_tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "top_categories": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "slug",
              "label"
            ],
            "properties": {
              "slug": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            }
          }
        },
        "sample_pois": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Poi"
          }
        }
      }
    }
  ],
  "$defs": {
    "CitySummary": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "country_iso2",
        "lat",
        "lng",
        "poi_count"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "name_en": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_iso2": {
          "type": "string"
        },
        "lat": {
          "type": "number",
          "format": "double"
        },
        "lng": {
          "type": "number",
          "format": "double"
        },
        "poi_count": {
          "type": "integer"
        },
        "wikidata_qid": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Poi": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "name",
        "lat",
        "lng",
        "tags"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "city_slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_iso2": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": "number",
          "format": "double"
        },
        "lng": {
          "type": "number",
          "format": "double"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 8,
          "description": "Up to 8 most distinctive approved tag slugs (sensitive categories excluded)."
        },
        "categories": {
          "type": "array",
          "description": "Coarse groupings the POI belongs to, with localized label.",
          "items": {
            "type": "object",
            "required": [
              "slug",
              "label"
            ],
            "properties": {
              "slug": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            }
          }
        },
        "wikidata_qid": {
          "type": [
            "string",
            "null"
          ]
        },
        "osm_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "OSM reference in `type/id` form."
        },
        "google_place_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Absolute URL to the locally-hosted hero image."
        },
        "image_source": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "wikimedia",
            "google",
            "user",
            null
          ]
        },
        "url": {
          "type": "string"
        }
      }
    }
  }
}

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/traveltype-app-city-detail"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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