TestingAPIs is still being built. If something breaks, email support@testingapis.com.

List the photos in an album

GEThttps://api.testingapis.com/api/Albums/{id}/photosSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)Album ID.

Responses

200
Photos whose albumId is this ID (an empty array if none).
404
The album does not exist.

Example

Request
curl -X GET "https://api.testingapis.com/api/Albums/1/photos" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
[
  {
    "id": 1,
    "albumId": 1,
    "title": "Summer in Lisbon - sunrise #1",
    "url": "https://picsum.photos/seed/photo1/600/600",
    "thumbnailUrl": "https://picsum.photos/seed/photo1/150/150"
  },
  {
    "id": 2,
    "albumId": 1,
    "title": "Summer in Lisbon - close-up #2",
    "url": "https://picsum.photos/seed/photo2/600/600",
    "thumbnailUrl": "https://picsum.photos/seed/photo2/150/150"
… (3 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.