Search code examples
iosobjective-cinstagraminstagram-api

Get the specific username data with Instagram API


I am trying to search and get datas (Profile picture and username )from the exact or specific username with Instagram API. The problem is if I search for example starwars it won't show me the official page it shows me this username : starwars_viii !!! Here is my code :

https://api.instagram.com/v1/users/search?q=[USERNAME]&client_id=[CLIENT ID]&count=1
  • I checked and someone said if count=1 it gives you the exact search but it did not work .
  • I tried "usersname" with quotation it did not
  • work ! I removed count and same result !

I have to say I am getting datas without authentication.


Solution

  • I fix this issue by count = 10 and then filter it with the exact username