List photos in a gallery
List the photos and videos in a gallery with title, caption, keywords and a thumbnail link.
GET https://cotlet.dev/api/v1/smugmug/gallery-photos
read
Returns each file in the order the gallery shows it, with its photo ID, filename, title, caption, keywords, thumbnail link and page link. Pages are cut by the cursor. Filenames are shown as stored; SmugMug does not let you edit them.
Parameters
| Name | Type | Description |
|---|---|---|
| gallery_id string required | string | Gallery ID from list_galleries. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl "https://cotlet.dev/api/v1/smugmug/gallery-photos?gallery_id=gallery_8c41d2" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("smugmug", "list_gallery_photos", {"gallery_id":"gallery_8c41d2"}) const result = await cotlet.call('smugmug', 'list_gallery_photos', {"gallery_id":"gallery_8c41d2"}); cotlet call smugmug list_gallery_photos --data '{"gallery_id":"gallery_8c41d2"}' Example response
{
"gallery_id": "Xk4RtP",
"photos": [
{
"photo_id": "Qm7xKd",
"filename": "DSC_3025.jpg",
"title": "",
"caption": "",
"keywords": [],
"thumbnail_url": "https://photos.smugmug.com/photos/i-Qm7xKd/0/Th/i-Qm7xKd-Th.jpg"
},
{
"photo_id": "Rt2nWc",
"filename": "DSC_3026.jpg",
"title": "",
"caption": "First dance",
"keywords": [
"wedding"
],
"thumbnail_url": "https://photos.smugmug.com/photos/i-Rt2nWc/0/Th/i-Rt2nWc-Th.jpg"
}
],
"next_cursor": null
}