POST
/
meta
/
get_ig_page_media
Get Instagram Page Media
curl --request POST \
  --url https://public.plai.io/meta/get_ig_page_media \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "pagination": "<string>"
}'
{
  "success": true,
  "results": {
    "success": true,
    "media": [
      {
        "id": "<string>",
        "caption": "<string>",
        "media_type": "<string>",
        "media_url": "<string>",
        "permalink": "<string>",
        "timestamp": "<string>",
        "ig_id": "<string>",
        "boost_eligibility_info": {
          "eligible_to_boost": true
        },
        "media_product_type": "<string>"
      }
    ],
    "error": "<string>"
  }
}

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
pagination
string
default:""
If the number of results exceeds the page limit, the response will include pagination links (next and previous) to help you navigate through the result set

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object