Latest photo of an aircraft by registration.
GET/photos/reg/{reg}
- Takes: Name
- Passive: the target is not contacted
Returns the latest photo (by date taken) for the registration. The photos array is empty when none are found; an error property is present when the call failed.
Path parameters
regAircraft registration, for example D-ABCD
Response fields · 11ShowHide
photos[]
Photo objects; empty when no photo was found
id
Photo identifier
src
URL of the regular thumbnail (200 px wide in landscape)
width
Thumbnail width in pixels
height
Thumbnail height in pixels
src
URL of the large thumbnail (280 px high)
width
Large thumbnail width in pixels
height
Large thumbnail height in pixels
link
URL of the photo page on Planespotters.net; the thumbnail must link here
photographer
Photographer's name, to be credited next to the photo
error
Error message, present only when the call failed
curl 'https://api.planespotters.net/pub/photos/reg/D-ABCD'{
"photos": [
{
"id": "000001",
"thumbnail": {
"src": "https://cdn.example.com/photo_t.jpg",
"size": {
"width": 200,
"height": 133
}
},
"thumbnail_large": {
"src": "https://cdn.example.com/photo_280.jpg",
"size": {
"width": 420,
"height": 280
}
},
"link": "https://www.example.com/photo/000001/example",
"photographer": "Example Photographer"
}
]
}