I cannot find an Instagram Reels
related API
. Does anyone know if there is one or if there will be one?
Currently the Facebook
developer documentation does not mention anything about Instagram Reels
.
https://developers.facebook.com/docs/instagram-api/overview/
10
Answers
Not sure, but I did some digging around an Instagram .ipa file and found these url scheme parameters.
Both of which if clicked on ios will take you to the reels feed. My intentions are to open the reels camera (or the story camera with the mode set to reels), but i guess currently we can only access the reels feed.
Reels it is IG Media with type "VIDEO".
And you can fetch single "Reels" if you know his Facebook Media ID (It is not Media ID from instagram)
If reels published like stories you can get media’s list from stories endpoint(GET graph.facebook.com/{ig-user-id}/stories). You will get array of medias’ ids.
Then you can fetch information from single media object endpoint (GET /{ig-media-id})
So at current moment you can get reels by api only if they published like story.
Anyway reels is not supported in some countries and you can see reels only from stories in this countries.
UPDATE
Reels also available when you fetch user media from business-discovery(
GET {ig-user-id}?fields=business_discovery.username(instagramm_user_name){media{id,permalink,media_type,media_url}}
) or user media (
GET /{ig-user-id}/media
).If media’s permalink look likes
https://www.instagram.com/reel/...
and media_typeVIDEO
then is it reels.UPDATED ANSWER:
Reels are now supported via the API; it became generally available on July 6, 2022. Please see https://developers.facebook.com/blog/post/2022/06/27/introducing-reels-apis-to-instagram-platform/.
ORIGINAL ANSWER:
In the Instagram API docs, under Limitations, it currently says "Reels are not supported."
It seems they were included in the
GET /{ig-user-id}/media
and theGET {ig-user-id}?fields=business_discovery.username(instagramm_user_name)
endpoints at the beginning but they removed them later. According to the docs they are not supported at the moment. Further confirmed in this bug report. It seems it is not the first time they include nodes that are not supposed to be included (IGTV and now reels).Naa,
Instagram doesn’t provide any API for Reels yet, since the reel feature is still not available in many countries but this going to be available soon.
So the question arises here, how we can get the reels data via API?
Well, the answer is you can’t But! if you are in favour to do so some scraping thing then the answer is definitely Yes!
But How?
We all know scraping has lots of efforts, due to things get changed very frequent. and if you don’t care about those below are sample PHP script to fetch reels data in JSON.
How to use this PHP script?
Save the above script in a PHP file e.g.
fetch-reels.php
and run it likehttp://localhost/fetch-reels.php?q={SHORT-CODE}
Reels URL e.g.
As mentioned earlier Instagram doesn’t provide direct apis but you can take help of Instagrapi its really awesome and easy to use. Note : This Instagram Private API wrapper is in python.
Here’s how to use it –
Install the lib :
Code
That’s it !!!
Meta just release Reels API for the Instagram Platform.
https://developers.facebook.com/blog/post/2022/06/27/introducing-reels-apis-to-instagram-platform/
Instagram just released reels support (Available to everyone from July 7th 2022).
More here
https://developers.facebook.com/docs/instagram-api/guides/content-publishing/
Instagram Reels API is now generally available:
https://developers.facebook.com/blog/post/2022/06/27/introducing-reels-apis-to-instagram-platform/
You can make a scheduled post. For example using JavaScript and uploading a video to the Reels API[1]:
Note the key fields of media_type=REELS, video_url, and caption.
[1] https://www.ayrshare.com/instagram-reels-api-how-to-post-videos-to-reels-using-a-social-media-api/
Update (14-July-2022): Meta (Facebook) launched support for Reels via their official Graph API. Read more about it here: https://developers.facebook.com/docs/instagram-api/reference/ig-user/media#reel-specifications