GET
/{ig-container-id}?fields=status_code
— check media container
publishing eligibility and
status.
GET
/{ig-user-id}/content_publishing_limit
— check app user's current
publishing rate limit
usage.
POST /{ig-user-id}/media
endpoint to create the container like
this, using HTML URL-encoding for the
hashtag (#) character in the
caption.
17889455560051444
), which you would then publish using
the POST /{ig-user-id}/media_publish
endpoint, like this:
user_tags
parameter and an array of objects
indicating the Instagram users in the
photo as well as their x
/y
coordinates within the photo
itself.
POST /{ig-user-id}/media
endpoint to create the container like
this:
POST /{ig-user-id}/media_publish
endpoint to publish the photo.
user_tags
value must be an array of
objects formatted with
JSON.
username
, x
, and y
) for each user.
x
and y
values must be float
numbers that originate from the
top-left of the image, with a
range of 0.0
–1.0
.
location
field in your query and verify that the
Page you want to use has location data
that include latitude and longitude.
Attempting to create a container using a
Page that has no location data will fail
with coded exception INSTAGRAM_PLATFORM_API__INVALID_LOCATION_ID
.
location_id
parameter to pass us the Page ID when
creating your media object
container.
POST /{ig-user-id}/media_publish
endpoint to publish the photo.
POST /{ig-user-id}/media
edge, applying HTML URL-encoding to the
hashtag character in the caption to
create the container like this:
17889455560051447
), which you would then use with the POST /{ig-user-id}/media_publish
endpoint to publish the video, like
this:
POST
/{ig-user-id}/media_publish
endpoint does not return the published
media ID, you can get the
container's publishing status by
querying the GET
/{ig-container-id}?fields=status_code
endpoint. This endpoint will return one
of the following:
EXPIRED
— The container was not
published within 24 hours and
has expired.
ERROR
— The container failed to
complete the publishing
process.
FINISHED
— The container and its media
object are ready to be
published.
IN_PROGRESS
— The container is still in the
publishing process.
PUBLISHED
— The container's media
object has been published.