How to hit the Instagram (Meta) API

The Instagram API with Instagram Login lives at https://graph.instagram.com/v26.0 and works with professional (business or creator) accounts. fields picks what comes back.

Authentication

Set up an app with the Instagram product in the Meta developer dashboard and generate an access token for your account. It goes in the query string as access_token. In the examples it's written {{IG_ACCESS_TOKEN}}.

Full reference: https://developers.facebook.com/docs/instagram-platform

Your profile

curl "https://graph.instagram.com/v26.0/me?fields=id,username,account_type,media_count&access_token={{IG_ACCESS_TOKEN}}"
Run in PostTaco

Your recent media

curl "https://graph.instagram.com/v26.0/me/media?fields=id,caption,media_type,media_url,timestamp&limit=5&access_token={{IG_ACCESS_TOKEN}}"
Run in PostTaco