Search code examples
instagram-api

Instagram API only returns 1 item


I have this URL here with my access key,

https://api.instagram.com/v1/users/MY_USER_ID/media/recent?access_token=MY_ACCESS_KEY

but it only returns 1 item.

I have googled for a solution, but can't seem to find one.
This was working about a month ago and now it's broken.

I have deleted the old client, created a new one and generated a new access_token.
But it stays with the same result.

My question is:
How can I get the same results like a month ago?

I got my access token via freevision.me/instagram
and my client ID by following these instructions doc.freevision.me/adventure/knowledge-base/get-instagram-client-id.


Solution

  • https://api.instagram.com/v1/users/{user-id}/media/recent/?access_token=ACCESS-TOKEN
    

    Get the most recent media published by a user. The public_content scope is required if the user is not the owner of the access_token.

    REQUIREMENTS Scope: public_content PARAMETERS ACCESS_TOKEN A valid access token. MAX_ID Return media earlier than this max_id. MIN_ID Return media later than this min_id. COUNT Count of media to return.

    instagram api

    and here media endpoint (see "count")

    Instagram media