0

I have a textbox in my website where the user will type his/her Instagram username, What I want to do is when they type, At that time I want to call an API in the background that this username is available in Instagram or not.

I have created developer account in Instagram and get client_ id and tried with below API

https://api.instagram.com/v1/users/search?q=merryshah568&client_id=01cc9370bd8e4adc9e6a2f4b3xxxxxxx

but it returns

{"meta": {"code": 400, "error_type": "OAuthAccessTokenException", "error_message": "The access_token provided is invalid."}}

I have also tried with this API

https://www.instagram.com/merryshah568/?__a=1

But it shows a blank page.

I am working on localhost.

Shakti S
  • 351
  • 1
  • 3
  • 13
  • 1
    I think the error message is pretty self-explanatory...? Are you providing any form of OAuth (bearer) token? – Ewan Apr 17 '19 at 13:04
  • the id I am passing is Instagram client id – Shakti S Apr 17 '19 at 13:20
  • Possible duplicate of [How to check Instagram username availability](https://stackoverflow.com/questions/37234274/how-to-check-instagram-username-availability) – Dipanshu Mahla Apr 17 '19 at 14:01

0 Answers0