Search code examples
instagraminstagram-api

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?


Solution

  • 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=