How do I extract an Instagram Profile picture using Instagram API? The basic graph API doesn't contain profile picture and the legacy API has been discontinued.
Use one of these URL
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/