Vito Lipari
Vito Lipari

Reputation: 869

Instagram Stories API

How can I get the stories from Instagram API?

I would get the stories too. I try the official API according to Official Documentation but i cannot get any stories!!!


How can I get the stories json by api?


Upvotes: 0

Views: 7795

Answers (2)

Michele
Michele

Reputation: 29

The API call below is to get insights

  • total exits
  • total impressions
  • total rach
  • total replies
  • total taps_forward
  • total taps_back
curl -i -X GET "https://graph.facebook.com/v14.0/<stories_id>/insights?metric=exits%2Cimpressions%2Creach%2Creplies%2Ctaps_forward%2Ctaps_back&access_token=<token>"

Link to Meta docs: https://developers.facebook.com/docs/instagram-api/reference/ig-media/insights

The API call below is to get the list of stories ID:

curl -i -X GET  "https://graph.facebook.com/v14.0/<instagram_id>/stories?access_token=<token>"

Link to Meta: https://developers.facebook.com/docs/instagram-api/reference/ig-user/stories/

Upvotes: 0

krisrak
krisrak

Reputation: 12952

You have to use graph API to get stories:

https://developers.facebook.com/docs/instagram-api/reference/user/stories

You will only get stories from your account (that is logged in), you should have a active story that is posted within last 24hrs.

Upvotes: 0

Related Questions