Instagram API

Instagram Data API

Access influencer profiles, posts, reels, stories, hashtags, and content data from Instagram — all through a single, reliable REST API. No scraping infrastructure required.

31+

Endpoints

2

Data categories

99.9%

Uptime SLA

<500ms

Avg latency

What You Can Do With The Instagram API

31+ endpoints across 2 categories. All returning clean, structured JSON.

User

User endpoints for Instagram.

23 endpoints

Convert shortcode to media ID

Convert the shortcode of an Instagram post to a media ID. The shortcode is the unique identifier in the post URL, e.g., DRhvwVLAHAG in instagram.com/p/DRhvwVLAHAG/

Convert media ID to shortcode

Convert the media ID of an Instagram post to a shortcode. The shortcode is used to construct the post URL: instagram.com/p/{shortcode}/

Get user info by user ID

Get user information by Instagram user ID. Useful for converting a user ID to a username or retrieving detailed user data.

Get user info

Get detailed information about an Instagram user. Supports querying by username or user ID.

Get user posts

Get a list of all posts by an Instagram user. Supports paginated retrieval.

Get user reels

Get a list of Reels (short videos) posted by an Instagram user. Supports paginated retrieval.

Get user followers

Get a list of an Instagram user's followers. Supports paginated retrieval.

Get user following

Get a list of users that an Instagram user is following. Supports paginated retrieval.

Get user stories

Get an Instagram user's currently active stories (Stories). Stories expire after 24 hours.

Get user highlights

Get a list of an Instagram user's highlights (Highlights). Highlights are curated story archives pinned by the user.

Get highlight stories

Get all stories in a specified highlight. Requires obtaining the highlight ID via fetch_user_highlights first.

Get user tagged posts

Get a list of posts in which a specified user has been tagged. Supports paginated retrieval.

Get similar users

Get a list of users similar to a specified user, based on Instagram recommendation algorithms.

General search

Perform a general Instagram search by keyword. Supports paginated retrieval.

Search reels

Search Instagram Reels (short videos) by keyword. Supports paginated retrieval.

Search music

Search for music available on Instagram by keyword.

Search locations by coordinates

Search nearby Instagram locations using GPS coordinates.

Get user reposts list

Get a list of a user's reposts/shares. Supports pagination.

Get related profiles

Get a list of users similar to or related to a specified user.

Get cities by country

Get a list of cities/regions for a specified country.

Search users

Instagram user search endpoint, returns matching user accounts.

Search hashtags

Instagram hashtag search endpoint, returns matching hashtag results.

Search places

Instagram places search endpoint, returns matching location results.

Content

Content endpoints for Instagram.

8 endpoints

Instagram API Quick Start Guide

Every request returns real-time, accurate data directly from Instagram.

Request
curl -X GET \
  "https://api.keyapi.ai/instagram/user/info?username=natgeo" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response200 OK
{
  "message": "success",
  "code": 0,
  "data": {
    "id": "787132",
    "username": "natgeo",
    "full_name": "National Geographic",
    "followers": 283000000,
    "following": 172,
    "posts": 29847,
    "verified": true
  }
}

Why Choose KeyAPI Instagram API

Built for scale, reliability, and developer experience.

Profile & Follower Data

Access full profile metrics, follower counts, following lists, and engagement rates for any public Instagram account.

Post & Reel Analytics

Pull likes, comments, views, and reach data for any public post or reel. Power content scoring and competitive benchmarking.

Hashtag Intelligence

Track hashtag reach, top posts, and trending content. Identify which hashtags drive the most discovery in your niche.

Influencer Vetting

Validate influencers with real follower counts, engagement rates, and post frequency before committing to partnerships.

Pagination on All Endpoints

Cursor-based pagination across every list endpoint — pull full follower lists, post histories, and comment threads without gaps.

No Instagram App Approval

Direct access to public Instagram data without OAuth, developer account, or Meta app review process.

Instagram API Use Cases

Influencer Discovery

Find high-engagement creators by niche, follower count, and audience demographics. Pull real post performance metrics before signing influencer deals.

E-commerce & Brand Monitoring

Track competitor brand mentions, monitor hashtag campaigns, and analyze which content formats drive the most engagement in your category.

Content Analytics

Benchmark your content against competitors. Analyze post frequency, engagement rates, and reel performance across any public Instagram account.

Audience Research

Understand follower growth patterns, engagement trends, and content preferences for any public Instagram profile.

Frequently Asked Questions

Is the Instagram API official?

No, KeyAPI provides an unofficial Instagram API that lets you access Instagram data through our platform. We handle the complexities of data collection so you can focus on building your application.

How current is the data?

We provide real-time data from Instagram. When you make a request, we fetch the latest information available.

How do credits work?

Each API endpoint consumes credits. Most endpoints cost just 1 credit. All pricing is transparent in our API documentation with no hidden fees.

Can I use this for AI model training?

Yes. KeyAPI provides structured, AI-ready data ideal for training datasets, fine-tuning LLMs, and building AI pipelines. Our historical archives are particularly valuable for large-scale training workloads.

Start for free — no credit card required

Ready to unlock unified
social intelligence?

Register today and receive 100 free API calls to test our infrastructure.

Join the growing community of developers, AI builders, automation engineers, and global businesses who trust KeyAPI for reliable, scalable social media data access.