Reputation: 174
I am trying to retrieve instagram feed (recent photos) from my profile (I want to embed those photos in my website). However I cannot achieve it with any library nor manual REST API call (both GET and POST):
https://api.instagram.com/v1/users/lazycangoo/media/recent/?access_token=ACCESS_TOKEN&count=9
Can you please support? It seems I do not know how to use the API..
Upvotes: 1
Views: 1742
Reputation: 13723
Documentation says that to get a user's recent media, you should send a GET
request to the following URL:
https://api.instagram.com/v1/users/{user-id}/media/recent/?access_token=ACCESS-TOKEN
What you are doing wrong is using username
instead of user_id
.
Try this:
https://api.instagram.com/v1/users/5136815/media/recent/?access_token=ACCESS-TOKEN
Upvotes: 1