get-event-gallery-photos

Use this API to retrieve a collection of photos from a specific event, including associated album metadata and references within the image collection.

Use this API to get the collection of all photos from an event with album references

POST https://api.memzo.ai/v1/get-event-gallery-photos/

Headers

Name
Type
Description

Authorization *

YOUR_SECRET_KEY

x-api-key*

String

YOUR_API_KEY

Request Body

Name
Type
Description

event_id*

String

A unique identifier for the event (e.g., "27"). This is a required field.

page_size

Integer

Specifies the number of records to return per request. The maximum value is 200, and the default is 50. If a value greater than 200 is provided, the API will return only 200 records.

index_id

Integer

Used for pagination to retrieve the next set of images. Include the index_id from the previous API response to fetch the subsequent batch.

{
  "error": false,
  "message": "Success",
  "index_id": 1,
  "data": [
    {
      "event_id": "2287",
      "event_name": "testPradInter904",
      "event_title": "test pradeep",
      "event_image_url": "https://live.memzo.ai/adminapp/user_data/event_images/2287al0_IMG_5624.jpg",
      "datetime_created": "2022-08-16 09:52:21",
      "event_horizontal_logo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/event_cover_images/testPradInter904_horizontal.jpg",
      "event_vertical_logo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/event_cover_images/testPradInter904_vertical.jpg",
      "event_link": "https://photos.9letters.com/testPradInter904/2287",
      "photos_count": "100"
    }
  ],
  "album_metadata": [
    {
      "album_id": "4220",
      "album_name": "two",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al4220IMG_5624.jpg",
      "album_photos_count": "3"
    },
    {
      "album_id": "7773",
      "album_name": "three",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al7773_al6117_IMG_5580.jpg",
      "album_photos_count": "0"
    },
    {
      "album_id": "7774",
      "album_name": "speed",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al7774_20210123_185216.jpg",
      "album_photos_count": "0"
    },
    {
      "album_id": "9097",
      "album_name": "newphotos",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9097_IMG_5572.jpg",
      "album_photos_count": "0"
    },
    {
      "album_id": "9098",
      "album_name": "newphoto2",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_IMG_5625.jpg",
      "album_photos_count": "9"
    },
    {
      "album_id": "9547",
      "album_name": "test10",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9547_IMG_5635.jpg",
      "album_photos_count": "1"
    },
    {
      "album_id": "9742",
      "album_name": "photosalbum",
      "cover_image": "https://snapwrap.io/default.png",
      "album_photos_count": "0"
    },
    {
      "album_id": "9958",
      "album_name": "high",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9098_IMG_5639.jpg",
      "album_photos_count": "1"
    },
    {
      "album_id": "9959",
      "album_name": "high_others",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al0_20210123_180543.jpg",
      "album_photos_count": "0"
    },
    {
      "album_id": "10680",
      "album_name": "",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al10680_A20220312_163356.jpg",
      "album_photos_count": "2"
    },
    {
      "album_id": "10681",
      "album_name": "lock2",
      "cover_image": "https://snapwrap.io/default.png",
      "album_photos_count": "0"
    },
    {
      "album_id": "10811",
      "album_name": "test album3",
      "cover_image": "https://snapwrap.io/default.png",
      "album_photos_count": "0"
    },
    {
      "album_id": "11444",
      "album_name": "onemore",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al11444_al0_20210817_124308.jpg",
      "album_photos_count": "7"
    },
    {
      "album_id": "11633",
      "album_name": "test new flow",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al11633_al0_20210817_124136.jpg",
      "album_photos_count": "26"
    },
    {
      "album_id": "12282",
      "album_name": "testupload",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al12282_IMG_5638.jpg",
      "album_photos_count": "17"
    },
    {
      "album_id": "12283",
      "album_name": "testaa",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al12283_IMG_5680.jpg",
      "album_photos_count": "17"
    },
    {
      "album_id": "14612",
      "album_name": "Gallery",
      "cover_image": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al0_IMG_5680.jpg",
      "album_photos_count": "17"
    }
  ],
  "collection_count": 5,
  "collection_object": [
    {
      "album_id": "11444",
      "image_url": "testPradInter904/al11444_al0_20210817_124308.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al11444_al0_20210817_124308.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al11444_al0_20210817_124308.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al11444_al0_20210817_124308.jpg"
    },
    {
      "album_id": "4220",
      "image_url": "testPradInter904/al4220_20210817_124155.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al4220_20210817_124155.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al4220_20210817_124155.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al4220_20210817_124155.jpg"
    },
    {
      "album_id": "4220",
      "image_url": "testPradInter904/al4220_al0_20210817_124136.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al4220_al0_20210817_124136.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al4220_al0_20210817_124136.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al4220_al0_20210817_124136.jpg"
    },
    {
      "album_id": "4220",
      "image_url": "testPradInter904/al4220_al0_20210817_124143.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al4220_al0_20210817_124143.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al4220_al0_20210817_124143.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al4220_al0_20210817_124143.jpg"
    },
    {
      "album_id": "9958",
      "image_url": "testPradInter904/al9958_al0_20210817_124308.jpg",
      "thumbnail_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/thumbnail/testPradInter904/al9958_al0_20210817_124308.jpg",
      "large_photo": "https://snapwrap.s3.ap-south-1.amazonaws.com/testPradInter904/al9958_al0_20210817_124308.jpg",
      "highres_photo": "https://snapwrap-data.s3.ap-south-1.amazonaws.com/highres/testPradInter904/al9958_al0_20210817_124308.jpg"
    }
  ]
}
Sample Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.memzo.ai/v1/get-event-gallery-photos',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('event_id' => '2287','index_id' => '0','page_size' => '5'),
  CURLOPT_HTTPHEADER => array(
    'Authorization: YOUR_SECRET_KEY',
    'x-api-key: YOUR_API_KEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

For more detailed information, please refer to the full Postman documentation here.

Last updated