Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram api - search users

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?

like image 296
user3359653 Avatar asked Mar 16 '23 10:03

user3359653


1 Answers

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"
}
like image 159
Hitender Avatar answered Mar 31 '23 22:03

Hitender