GET

List Galleries


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a list of galleries.

Permissions
Manage Galleries
Read Galleries
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/progallery/v2/galleries

Query Params
itemLimitinteger

Maximum number of media items to return.

Min: 1
Max: 100
Default: 10


offsetinteger

Number of galleries to skip in the response.

Default: 0


limitinteger

Maximum number of galleries to return.

Min: 1
Max: 10
Default: 10

Response Object
totalGalleriesintegerformat int32

Total number of galleries in the site.


galleriesArray <Gallery>

List of galleries. Sorted by createdDate.

List galleries
Request
cURL
curl -X GET \ 'https://www.wixapis.com/progallery/v2/galleries' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "totalGalleriesCount": 1, "gallery": [ { "id": "e481d9b4-14b9-4a98-ae52-67f4170e3a63", "totalItems": 2, "items": [ { "id": "a045b201-ee7d-447c-b0c3-746cba83253c", "sortOrder": 1644317968.985, "title": "Some Title", "description": "Some Description", "type": "IMAGE", "image": { "type": "WIX_MEDIA", "imageInfo": { "id": "11062b_12703ed9a6574547bcaed22b1ce44eef~mv2.jpeg", "url": "https://static.wixstatic.com/media/11062b_12703ed9a6574547bcaed22b1ce44eef~mv2.jpeg", "height": 4298, "width": 6446, "altText": "Some Alt", "filename": "11062b_12703ed9a6574547bcaed22b1ce44eef~mv2.jpeg" } }, "createdDate": "2022-02-08T10:59:29Z", "tags": { "values": ["image"] } }, { "id": "17c786c6-5d5d-4271-995a-02d007809064", "sortOrder": 1642505672333, "title": "Video", "description": "Video description", "type": "VIDEO", "video": { "type": "YOUTUBE", "videoInfo": { "id": "", "resolutions": [ { "url": "https://www.youtube.com/watch?v=NCtzkaL2t_Y&ab_channel=TheBeatlesVEVO", "height": 0, "width": 0, "format": "Youtube", "quality": null, "filename": null } ], "url": "https://www.youtube.com/watch?v=NCtzkaL2t_Y&ab_channel=TheBeatlesVEVO", "posters": [ { "id": "468ec5_347f032da9a04e5b9c03ad2a14a07b52~mv2.jpg", "url": "https://static.wixstatic.com/media/468ec5_347f032da9a04e5b9c03ad2a14a07b52~mv2.jpg", "height": 720, "width": 1280, "altText": null, "urlExpirationDate": null, "filename": "468ec5_347f032da9a04e5b9c03ad2a14a07b52~mv2.jpg", "sizeInBytes": null } ] } }, "createdDate": "2022-01-18T11:34:34Z" }, { "id": "975a57a1-eccd-4e28-aac5-265be4dbb4f8", "sortOrder": 1646212412985, "title": "Mountainous Landscape", "description": "Mountainous Landscape Description", "type": "VIDEO", "video": { "type": "WIX_MEDIA", "videoInfo": { "id": "11062b_20125b6ebe434abd96c4d7773634d1db", "resolutions": [ { "url": "https://video.wixstatic.com/video/11062b_20125b6ebe434abd96c4d7773634d1db/480p/mp4/file.mp4", "height": 480, "width": 854, "format": "mp4", "quality": "480p" }, { "url": "https://video.wixstatic.com/video/11062b_20125b6ebe434abd96c4d7773634d1db/720p/mp4/file.mp4", "height": 720, "width": 1280, "format": "mp4", "quality": "720p" }, { "url": "https://video.wixstatic.com/video/11062b_20125b6ebe434abd96c4d7773634d1db/1080p/mp4/file.mp4", "height": 1080, "width": 1920, "format": "mp4", "quality": "1080p" } ], "filename": "11062b_20125b6ebe434abd96c4d7773634d1db", "url": "https://video.wixstatic.com/video/11062b_20125b6ebe434abd96c4d7773634d1db/1080p/mp4/file.mp4", "posters": [ { "id": "11062b_20125b6ebe434abd96c4d7773634d1dbf000.jpg", "url": "https://static.wixstatic.com/media/11062b_20125b6ebe434abd96c4d7773634d1dbf000.jpg", "height": 2160, "width": 3840, "filename": "11062b_20125b6ebe434abd96c4d7773634d1dbf000.jpg" }, { "id": "11062b_20125b6ebe434abd96c4d7773634d1dbf001.jpg", "url": "https://static.wixstatic.com/media/11062b_20125b6ebe434abd96c4d7773634d1dbf001.jpg", "height": 2160, "width": 3840, "filename": "11062b_20125b6ebe434abd96c4d7773634d1dbf001.jpg" }, { "id": "11062b_20125b6ebe434abd96c4d7773634d1dbf002.jpg", "url": "https://static.wixstatic.com/media/11062b_20125b6ebe434abd96c4d7773634d1dbf002.jpg", "height": 2160, "width": 3840, "filename": "11062b_20125b6ebe434abd96c4d7773634d1dbf002.jpg" }, { "id": "11062b_20125b6ebe434abd96c4d7773634d1dbf003.jpg", "url": "https://static.wixstatic.com/media/11062b_20125b6ebe434abd96c4d7773634d1dbf003.jpg", "height": 2160, "width": 3840, "filename": "11062b_20125b6ebe434abd96c4d7773634d1dbf003.jpg" } ] }, "duration": "20000" }, "createdDate": "2022-03-02T09:13:33Z" } ], "createdDate": "2020-08-04T10:01:50Z" } ] }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?