Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram API: user feeds returning an html 404 page

Recently, don't know since when, when requesting an Istagram user feed via PHP (or just hit the URL via browser) i recieve a 404 error page ... in html:

For instance, compare:
https://api.instagram.com/v1/users/bigbangtheory_cbs/media/recent/
(404 error page, html)

To:
https://api.instagram.com/v1/tags/nerd
https://api.instagram.com/v1/media/popular
https://api.instagram.com/v1/media/search?lat=48.858844&lng=2.294351
(json feed / error message if not authenticated)

Anyone else is experiencing the same problem? Any change happened recently in the Instagram API i'm not aware of?

like image 909
Giona Avatar asked Feb 03 '26 19:02

Giona


1 Answers

It works with user-id not user-name:

https://api.instagram.com/v1/users/{user-id}/media/recent/?client_id=YOUR-CLIENT_ID

https://api.instagram.com/v1/users/1532488534/media/recent/?client_id=

like image 146
Amir Rahimi Farahani Avatar answered Feb 05 '26 13:02

Amir Rahimi Farahani