JSONPlaceholder · Schema

Photo

A sample photo belonging to an album in the JSONPlaceholder dataset.

DevelopmentTestingPrototypingFake APIOpen SourceREST

Properties

Name Type Description
id integer Unique photo identifier (1-5000).
albumId integer Identifier of the album this photo belongs to.
title string Photo title / caption.
url string Full-size image URL (placeholder service).
thumbnailUrl string Thumbnail image URL (placeholder service).
View JSON Schema on GitHub

JSON Schema

jsonplaceholder-photo-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-schema/jsonplaceholder-photo-schema.json",
  "title": "Photo",
  "description": "A sample photo belonging to an album in the JSONPlaceholder dataset.",
  "type": "object",
  "required": ["id", "albumId", "title", "url", "thumbnailUrl"],
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique photo identifier (1-5000).",
      "example": 1
    },
    "albumId": {
      "type": "integer",
      "description": "Identifier of the album this photo belongs to.",
      "example": 1
    },
    "title": {
      "type": "string",
      "description": "Photo title / caption.",
      "example": "accusamus beatae ad facilis cum similique qui sunt"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Full-size image URL (placeholder service).",
      "example": "https://via.placeholder.com/600/92c952"
    },
    "thumbnailUrl": {
      "type": "string",
      "format": "uri",
      "description": "Thumbnail image URL (placeholder service).",
      "example": "https://via.placeholder.com/150/92c952"
    }
  }
}