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

Parameters: list_gallery_photos
NameTypeDescription
gallery_id string required string Gallery ID from list_galleries.
cursor string string Next page cursor from the previous call.

Request

cURL
curl "https://cotlet.dev/api/v1/smugmug/gallery-photos?gallery_id=gallery_8c41d2" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("smugmug", "list_gallery_photos", {"gallery_id":"gallery_8c41d2"})
Node.js
const result = await cotlet.call('smugmug', 'list_gallery_photos', {"gallery_id":"gallery_8c41d2"});
CLI
cotlet call smugmug list_gallery_photos --data '{"gallery_id":"gallery_8c41d2"}'

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.