Search code examples
phpinstagram-api

Pagination not existing on all queries


Taken from an older stack overflow question (sorry for not posting link but stack overflow says that i must have more than 10 rep for more than 2 links) to generate Instagram access tokens so they will be out of sandbox mode. So finishing with the above, i have the following two queries:

  1. https://api.instagram.com/v1/tags/' . 'wordcamp' . '/media/recent?client_id=' . 'one_id' . '&access_token='. $accessToken . '&count=' . $count
    In the one above the pagination comes up ok where in this one
  2. https://api.instagram.com/v1/users/search?q='John'&access_token=$accessToken&count=$count
    It is not shown at all. With pictures the first one is like: enter image description here where the second is like enter image description here

Why in the second link i do not have the pagination option?


Solution

  • Instagram API never had pagination for user search API, the response has a limited set of user search results, about 50 or so. pagination is just not supported for this endpoint