Use one of these URL
- https://www.instagram.com/USERNAME/?__a=1
- https://i.instagram.com/api/v1/users/USER_ID/info/
NOTE: To get Instagram USER_ID
, use first URL with Instagram USERNAME
Edit: If you use second URL, you need to put some user-agent with your request. This is How I do with cURL.
curl -s -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 105.0.0.11.118 (iPhone11,8; iOS 12_3_1; en_US; en-US; scale=2.00; 828x1792; 165586599)' https://i.instagram.com/api/v1/users/USER_ID/info/