I'm using Instagram API to find top users search by a given username using this Instagram endpoint :
"https://www.instagram.com/web/search/topsearch/?context=blended&query=" . $username . "&include_reel=false&count=50"
when I'm logged in in the browser and I GET the URL via the browser I get the list of users as a json but when I get the URL using PHP on my server-side I get the login HTML page.
Is there is any way to use an access_token in order to get the JSON, not the login page?