JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/layout-link/json-schema/layout-link-item-image-result-schema.json",
"title": "ItemImageResult",
"x-generated": "2026-11-15",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/layout-link-openapi.json#/components/schemas/ItemImageResult",
"anyOf": [
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "photo"
},
"restaurant": {
"$ref": "#/$defs/ImageRestaurant"
},
"item": {
"description": "The item as the restaurant names it.",
"type": "string"
},
"priceMinor": {
"description": "Their listed price in minor units when last read. Not a quote.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"image": {
"$ref": "#/$defs/ItemImage"
}
},
"required": [
"status",
"restaurant",
"item",
"image"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "finding"
},
"imageId": {
"$ref": "#/$defs/ImageId"
},
"restaurant": {
"$ref": "#/$defs/ImageRestaurant"
},
"retryAfterSec": {
"description": "When to poll GET /images/items/{imageId}.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"giveUpAt": {
"description": "When the search stops (ISO 8601), 35 seconds after the request. A poll after it answers `no_photo`.",
"type": "string"
}
},
"required": [
"status",
"imageId",
"restaurant",
"retryAfterSec",
"giveUpAt"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "no_photo"
},
"restaurant": {
"$ref": "#/$defs/ImageRestaurant"
},
"item": {
"type": "string"
},
"reason": {
"description": "`not_published`: the item is on the menu with no photo, and the menu carries photos for other items. `not_found_in_time`: Layout found no photo it could trust within 35 seconds, or the menu it read carries no photos to look in. Asking again later may find one.",
"type": "string",
"enum": [
"not_published",
"not_found_in_time"
]
}
},
"required": [
"status",
"reason"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "not_on_menu"
},
"restaurant": {
"$ref": "#/$defs/ImageRestaurant"
},
"checkedItems": {
"description": "How many menu items were checked.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"status",
"restaurant"
]
},
{
"description": "`item` named no dish (only the restaurant, or a word like `food`). Ask the person which item.",
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "needs_item"
}
},
"required": [
"status"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "needs_location"
},
"candidates": {
"description": "Send one back as `placeId`. Empty: send `near` or coordinates.",
"type": "array",
"items": {
"type": "object",
"properties": {
"placeId": {
"$ref": "#/$defs/PlaceId"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"distanceMi": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"placeId",
"name",
"address",
"distanceMi"
]
}
}
},
"required": [
"status",
"candidates"
]
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "not_found"
}
},
"required": [
"status"
]
},
{
"description": "The restaurant asked Layout not to show its photos.",
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "removed"
},
"restaurant": {
"$ref": "#/$defs/ImageRestaurant"
}
},
"required": [
"status"
]
}
],
"$defs": {
"ImageId": {
"type": "string",
"pattern": "^img_[A-Za-z0-9_-]{16,2048}$"
},
"ImageRestaurant": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"address"
]
},
"ItemImage": {
"type": "object",
"properties": {
"url": {
"description": "A JPEG, up to 1000px on its long side, served from Layout's CDN. Show this URL; do not copy the file.",
"type": "string"
},
"webpUrl": {
"description": "The same photo as WebP, smaller.",
"type": "string"
},
"width": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"source": {
"description": "`menu`: from the restaurant's own menu. `product_page`: from its own page for the item.",
"type": "string",
"enum": [
"menu",
"product_page"
]
},
"checkedAt": {
"description": "When Layout last checked the photo against the restaurant's site (ISO 8601).",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"url",
"webpUrl",
"width",
"height",
"source",
"checkedAt"
]
},
"PlaceId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,255}$"
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/layout-link-item-image-result"
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.