airbnb · Schema
Photo
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The unique identifier of the photo. |
| url | string | The URL where the photo is hosted. |
| caption | string | A caption describing the photo. |
| sort_order | integer | The display position of the photo in the listing gallery. |
| width | integer | The width of the photo in pixels. |
| height | integer | The height of the photo in pixels. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/airbnb/refs/heads/main/json-schema/airbnb-photo-schema.json",
"title": "Photo",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the photo."
},
"url": {
"type": "string",
"format": "uri",
"description": "The URL where the photo is hosted."
},
"caption": {
"type": "string",
"description": "A caption describing the photo."
},
"sort_order": {
"type": "integer",
"description": "The display position of the photo in the listing gallery."
},
"width": {
"type": "integer",
"description": "The width of the photo in pixels."
},
"height": {
"type": "integer",
"description": "The height of the photo in pixels."
}
}
}