Guide

How to Get an Instagram API Key

Two ways to get an Instagram API key: Meta's app, token and App Review path for accounts you manage, or an API key for public data that works in minutes.

Updated 2 December 2026 · 5 min read

“Instagram API key” means two different things, depending on whose data you need. If you need data from accounts that connect to your app, you go through Meta. If you need data from any public account, you can use a public-data API and have a key in a few minutes. This guide walks through both so you can pick the right one before you spend a week on setup.

Which one do you need?

You want to Use
Publish posts, read insights or answer messages for your own or your customers’ professional accounts Meta’s Instagram API (official)
Read the profile, posts, reels, comments or hashtags of accounts that never connect to you A public-data API such as IGramAPI
Both Both. Many products use the official API for connected customers and a public-data API for everyone else

Option 1: Meta’s official Instagram API

Meta’s Instagram API does not give you a single “API key”. You create an app, and your app gets access tokens for the Instagram professional accounts that log in to it. The steps, summarized from Meta’s developer documentation:

  1. Create a Meta developer account at Meta for Developers and register as a developer.
  2. Have an Instagram professional account. The API works with Business and Creator accounts. Personal accounts are not supported.
  3. Create an app in the App Dashboard and add the Instagram product to it.
  4. Choose how accounts log in. Meta offers two setups: Instagram API with Instagram Login and Instagram API with Facebook Login (which links the account to a Facebook Page). The setup decides which token type you get and which features are available.
  5. Generate an access token for your own account to test. This token is what you send with each request, not a fixed key.
  6. Go through App Review before the app can work with accounts other than the ones that have a role on your app. Each permission you need is reviewed separately.

Things that catch people out:

  • The token only reaches accounts that authorized your app. To look at another account you are limited to Business Discovery, which covers professional accounts only and does not include stories. See Instagram Graph API limitations for the details.
  • The old Instagram Basic Display API, which many tutorials still use, has been retired. Tutorials built on it no longer work.
  • Hashtag search is capped at 30 unique hashtags per account in a rolling 7-day period.

Meta’s rules change, so check the current Instagram Platform documentation before you start.

Option 2: an API key for public Instagram data

If the accounts you care about will never connect to your app, an app and App Review do not help. A public-data API gives you one key that reads any public account by username or link.

With IGramAPI the steps are:

  1. Create a free account at app.igramapi.com and confirm your email.
  2. Create an API key in the dashboard. It starts with igk_. The Free plan includes 100 credits a month and every endpoint, with no card.
  3. Send the key as a Bearer token:
curl "https://api.igramapi.com/v1/profiles/example_creator" \
  -H "Authorization: Bearer igk_your_key_here"

The response is the public profile as JSON: follower and following counts, bio, links, verification and the profile picture. The same key works for posts, reels, comments, followers, stories and hashtags. You can also try requests in the playground before you sign up.

Keep the key on your server, load it from an environment variable and never put it in a URL. The authentication docs cover rotating and revoking keys.

Common questions

Is an Instagram API key free? Meta does not charge for API access, but you pay in setup time and App Review. IGramAPI’s Free plan gives 100 credits a month; paid plans are listed on Instagram API pricing.

Can I get an Instagram API key without a business account? Not for Meta’s API, which only works with professional accounts. A public-data API key does not need any Instagram account.

Can either key read private accounts? No. Meta’s API reaches only accounts that authorized your app, and a public-data API returns only what is public.

IGramAPI is independent and is not affiliated with Instagram or Meta. Use the data lawfully and in line with Instagram’s terms; see our Acceptable Use Policy.

Get your free API key

100 credits every month, no credit card.