Retrieve photos for a specific album
Retrieves the photos in an album. A photo can be an image, live photo, or video.
Query parameters
-
ID of the album to retrieve preview photos for
-
Filter photos by a specific public label (case-sensitive, exact match)
Minimum length is
1
, maximum length is40
. -
Filter photos by a specific restricted label (case-sensitive, exact match). Requires admin access to the album.
Minimum length is
1
, maximum length is40
.
GET
/album/getPhotos
curl \
--request GET 'https://public-api.joinswsh.com/album/getPhotos?albumId=22222222-2222-2222-2222-222222222222' \
--header "x-api-key: $API_KEY"
Response examples (200)
{
"data": [
{
"photoId": "string",
"width": 42,
"height": 42,
"originalUrl": "string",
"stableUrl": "string",
"videoUrl": "string",
"downloadUrl": "string",
"labels": [
"string"
],
"restrictedLabels": [
"string"
]
}
],
"warnings": [
"Example warning"
]
}