Skip to main content
GET
List Instagram media
Use this endpoint to discover the posts or stories of one Instagram account. Pass the account UUID in the path and surface in the query string. Your API key needs the automations:read scope and access to that account. surface is required and accepts posts or stories. Each item carries id, surface, media_type, caption, thumbnail_url, instagram_url, published_at, like_count, and comments_count. Every field except id and surface can be null when Instagram does not return a value for it.

Reference a publication in a trigger

A comment trigger can bind to one post. Use a returned id as the reference value:
A comment trigger also accepts a public post address. Send url as the reference type and the address as value. A story reply or story reaction trigger accepts only the id reference type, so this endpoint is the way to bind one. Read Update an automation for the complete trigger shape.

Paginate the results

Set limit to an integer from 1 through 50. When next_cursor is a string, pass it back unchanged as cursor to request the next page. A null next_cursor means you reached the end of the list. This read does not change any automation, so it is safe to retry. When Instagram cannot be reached, the API returns 503 with api_instagram_media_unavailable. That response is temporary and does not mean the account is unreachable.

Example request

Authorizations

Authorization
string
header
required

Levios API key sent as a Bearer token.

Path Parameters

accountId
string<uuid>
required

Query Parameters

cursor
string
limit
string
surface
enum<string>
required
Available options:
posts,
stories

Response

Successful response.