Reputation: 41
I work on application with Instagram API. Today I have problem with searching users. This query return always only one record.
I use this: (I cut out client id..)
https://api.instagram.com/v1/users/search?count=50&q=test&client_id=myID
or
https://api.instagram.com/v1/users/search?q=test&client_id=myID
But still get same result:
{"meta":{"code":200},"data":[{"username":"test","profile_picture":"https:\/\/igcdn-photos-c-a.akamaihd.net\/hphotos-ak-xfa1\/t51.2885-19\/10483581_1498221113789874_1762363890_a.jpg","id":"44291","full_name":"julian"}]}
Yesterday same query returns 50 users. I do not see any changelog about this in Instagram API. Do you know where is problem?
Upvotes: 4
Views: 21805
Reputation: 4426
The Instagram API is now managed by Facebook: https://developers.facebook.com/docs/instagram-api/guides/business-discovery
It is unclear how to search users though.
Upvotes: 1
Reputation: 189
Instagram retired the users/search endpoint.
When you call https://api.instagram.com/v1/users/search?q=john&access_token=TOKEN-HERE
now, you get this response:
{
"meta": {
"code": 400,
"error_type": "APINotAllowedError",
"error_message": "This endpoint has been retired"
}
Upvotes: 7
Reputation: 31
Please see instagram user search api https://www.instagram.com/developer/endpoints/users/#get_users_search
You need to pass additional "count" param to set number of result in response.
See the image : Instagram user search api
Upvotes: 1