instagram username search not match with query -


i calling instagram's api url

https://api.instagram.com/v1/users/search?q=mtv&count=1&client_id=add38d4ea81e4665962b939c96a929a3&count=1

it's supposed respond username 'mtv' specified in q parameter, json response returns username 'mtvbrasil'

{"meta":{"code":200},"data":[{"username":"mtvbrasil","profile_picture":"https:\/\/instagramimages-a.akamaihd.net\/profiles\/profile_43768325_75sq_1380500869.jpg","id":"43768325","full_name":"mtv brasil"}]} 

instagram's search api not work expected! not return same results mobile client returns.

try adding double quotes search term:

https://api.instagram.com/v1/users/search?q="mtv"&count=1&client_id=add38d4ea81e4665962b939c96a929a3

in other cases might not return your best match first result, might need not provide count parameter , check results more desired match.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -