GET/photos/{id}
Get photo by ID
Retrieve a single photo. Supports ETag conditional requests via `If-None-Match`.
Parameters 4
| Name | Type | Description |
|---|---|---|
_fields | query · string | Sparse fieldset — comma-separated fields to return. Leave blank for the full object. |
_expand | query · string | Expand parent relations inline. Applies only when the resource has a matching parent (e.g. `user` on posts). |
_embed | query · string | Embed child collections. Applies only when the resource has a matching child (e.g. `comments` on posts). |
ReturnsPhoto
Bearer token required
Response examples
200The photo
{
"id": 1,
"albumId": 1,
"title": "Photo 1",
"url": "https://picsum.photos/seed/1/800/960",
"thumbnailUrl": "https://picsum.photos/seed/1/150/150",
"width": 800,
"height": 960,
"size": 4803273,
"format": "jpeg",
"createdAt": "2026-07-24T20:47:13.121Z"
}404404 — resource not found
{
"error": {
"status": 404,
"message": "users #999 not found"
}
}