Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get video from Instagram public access API?

I know that this API is working to get images but how about videos?
https://www.instagram.com/username/?__a=1

I was able to get the thumbnail of the video but not the source or the url itself.

like image 428
okkahfai93 Avatar asked Nov 15 '25 13:11

okkahfai93


1 Answers

When you make above API call it would return code in it. looks something like this: BWhyIhRDBCw

Whenever your media nodes has "is_video": true you can make following call:

https://www.instagram.com/p/{code}/?__a=1

for e.g., https://www.instagram.com/p/BWhyIhRDBCw/?__a=1

This would return another json. which will have video_url you are looking for.

sample:

"video_url": "https://scontent-bom1-1.cdninstagram.com/vp/437699b67172f450331fa732f0777b18/5A7FE0A0/t50.2886-16/20138822_486349355081174_1539674401849475072_n.mp4",
like image 138
enator Avatar answered Nov 17 '25 08:11

enator



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!