airbnb · Schema

Address

Properties

Name Type Description
street string The street address of the property.
city string The city where the property is located.
state string The state or province where the property is located.
zip_code string The postal or ZIP code.
country string The ISO 3166-1 alpha-2 country code.
latitude number The latitude coordinate of the property.
longitude number The longitude coordinate of the property.
View JSON Schema on GitHub

JSON Schema

airbnb-address-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/airbnb/refs/heads/main/json-schema/airbnb-address-schema.json",
  "title": "Address",
  "type": "object",
  "properties": {
    "street": {
      "type": "string",
      "description": "The street address of the property."
    },
    "city": {
      "type": "string",
      "description": "The city where the property is located."
    },
    "state": {
      "type": "string",
      "description": "The state or province where the property is located."
    },
    "zip_code": {
      "type": "string",
      "description": "The postal or ZIP code."
    },
    "country": {
      "type": "string",
      "description": "The ISO 3166-1 alpha-2 country code.",
      "pattern": "^[A-Z]{2}$"
    },
    "latitude": {
      "type": "number",
      "format": "double",
      "description": "The latitude coordinate of the property.",
      "minimum": -90,
      "maximum": 90
    },
    "longitude": {
      "type": "number",
      "format": "double",
      "description": "The longitude coordinate of the property.",
      "minimum": -180,
      "maximum": 180
    }
  },
  "required": [
    "street",
    "city",
    "country"
  ]
}