php - Instagram api working on localhost but not working on server (Instagram profile details)

one text

If I run this code on my localhost through terminal or Insomnia. It is just working fine. But the server return null. What should I do to get the result?

curl -s 'https://i.instagram.com/api/v1/users/web_profile_info/?username=alanarblanchard' -H 'X-IG-App-ID: 936619743392459' | jq -r .data.user.id

Source