Instagram API

9 endpoints read Instagram: posts, hashtags, users, comments. From $0.0020 a call. No Instagram login and no cookie; a failed call is free.

Endpoints9 endpointsin 4 groups, one response shape
PriceFrom $0.0020per call. Failed calls are free
30-day availability100% Live · the share of time the endpoints were serving calls
DataFetched liveat the moment of the call

The 9 endpoints for Instagram, and what each returns

  • Instagram comment replies: Get a page of the replies to an Instagram comment, by the comment's ID and its post's shortcode: text, replier, time posted.
  • Instagram hashtag posts: Get a page of the newest Instagram posts under a hashtag, by its name, about 33 a page: caption, author's ID, like and comment counts, time posted, image.
  • Instagram post comments: Get a page of comments on an Instagram post or reel by shortcode or link, about 15 a page, newest first: text, commenter, likes, time posted.
  • Instagram post detail: Get one Instagram post or reel by shortcode or link: caption, author, like, comment and play counts, image and video addresses, and the other authors of a collab post.
  • Instagram video transcript: Get what is said in an Instagram reel or video post by shortcode or link, as one text; videos up to two minutes long.
  • Instagram user profile: Get an Instagram user's profile by handle: name, bio, follower and following counts, verification, whether it is private, and the website and links the profile gives.
  • Instagram user posts: Get a page of what an Instagram user posted, by handle, 12 a page, or its reels only: caption, like, comment and play counts, time posted, image and video addresses, and the other authors of a collab post.
  • Instagram user search: Search Instagram accounts by keyword, about 50 in one answer and no further pages: handle, name, avatar, verification, whether it is private.
  • Instagram video and photo downloader: Give an Instagram post or reel by shortcode or link and get the address of every file it has: the video and its still, or each picture and video of a carousel, numbered in order, with width, height and when each address expires; once they have, another call gives new ones.

One call, as it came back

A recorded call, fields already tidied up: ready for an AI or a spreadsheet.
Recorded
GET/v1/instagram/users/posts/list$0.0020
FieldValue
typevideo
published_at2026-10-24 04:02 UTC
author.verifiedtrue
metrics.likes2,630
metrics.comments65
metrics.views70,166

The first 6 rows of a response recorded 2026-11-01 08:42 UTC.

Run it in the Playground · $0.0020
Recorded response
{
  "code": "ok",
  "request_id": "00bd07a2-f76e-4b07-bfda-f6718c7081ce",
  "data": {
    "items": [
      {
        "id": "DqngThTYDyZ",
        "url": "https://www.instagram.com/p/DqngThTYDyZ/",
        "type": "video",
        "text": "Three things nobody tells you about weekend hiking.",
        "published_at": "2026-10-24T04:02:49.000Z",
        "author": {
          "id": "54770162770",
          "username": "priya.reads",
          "name": "Priya R.",
          "avatar_url": "https://scontent.cdninstagram.com/v/t51.2885-19/429975025_15741728840577477_n.jpg",
          "verified": true
        },
        "metrics": { "likes": 2630, "comments": 65, "views": 70166 },
        "images": [
          "https://scontent.cdninstagram.com/v/t51.29350-15/460701643_16163828761625834_n.jpg"
        ]
      },
      // … 11 more
    ]
  },
  "page": {
    "next_cursor": "c1.Myhw7819N8URcJWSe98N8d0G7SRkW_mKgw9Fmj0N",
    "cursor_expires_at": "2026-11-01T09:42:13.000Z",
    "has_more": true,
    "returned": 12
  },
  "warnings": [],
  "meta": {
    "capability": "instagram.users.posts.list",
    "result_status": "complete",
    "fetched_at": "2026-11-01T08:42:13.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "title": "platform",
      "lang": "capability",
      "author.followers": "capability",
      "metrics.shares": "capability",
      "metrics.favorites": "capability",
      "metrics.reposts": "capability",
      "hashtags": "capability",
      "mentions": "capability",
      "post_id": "platform",
      "parent_id": "platform",
      "root_id": "platform",
      "is_pinned": "capability"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

From a response recorded 2026-11-01 08:42 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

What you can get

Each row is an endpoint: what it returns and what one call costs.

EndpointPathReturnsPrice
Posts4
Instagram post detailGET/v1/instagram/posts/getPost$0.0020
Instagram video and photo downloaderGET/v1/instagram/posts/media/getMedia files$0.0020
Instagram video transcriptGET/v1/instagram/posts/transcript/getTranscript$0.0020
Instagram post commentsGET/v1/instagram/posts/comments/listComment list$0.0020
Hashtags1
Instagram hashtag postsGET/v1/instagram/hashtags/posts/listPost list$0.0020
Users3
Instagram user searchGET/v1/instagram/users/searchAccount list$0.0040
Instagram user profileGET/v1/instagram/users/getAccount$0.0020
Instagram user postsGET/v1/instagram/users/posts/listPost list$0.0020
Comments1
Instagram comment repliesGET/v1/instagram/comments/replies/listComment list$0.0020
Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.Instagram API pricing →Instagram data in your AI →See live status →

What people build with it

Ready-made tasks your AI can run on Instagram data. Each is a few calls under a spending cap.

Ask about Instagram right inside Claude or Cursor

Add the OneFeedAPI MCP server and the AI finds the Instagram endpoint it needs and calls it; answers link back to the source. You pay for the calls it makes.

Instagram MCP setup →
https://onefeedapi.com/mcp

Start in three steps

The call shown here is Instagram user posts. Every other Instagram endpoint is called the same way and answers in the same envelope.

Get a key

Sign in with an emailed code or Google. Free trial, no card needed.

Call it, or let your AI call it

One GET from your code. Or paste this prompt into your agent with your key in it: it sets itself up, then finds and calls these endpoints by itself.

Read https://onefeedapi.com/agents.md and set up OneFeedAPI in this agent. My API key is dx_live_…; use it for every OneFeedAPI call.

Sign in to copy it with your key

Read the same shape every time

Items are in data.items (one object in data.item), the next page in page.next_cursor, the charge in meta.billing.amount. A failed call is not charged.

Read the quickstart →
curl -G "https://onefeedapi.com/v1/instagram/users/posts/list" \
  --data-urlencode "username=nasa" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi
from onefeedapi import OneFeedAPI

dx = OneFeedAPI()  # reads ONEFEED_API_KEY
result = dx.instagram.users.posts.list(username="nasa")
print(result["data"]["items"])
// npm i @onefeedapi/sdk
import { OneFeedAPI } from "@onefeedapi/sdk";

const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY
const result = await dx.instagram.users.posts.list({ username: "nasa" });
console.log(result.data.items);
onefeedapi call instagram.users.posts.list username=nasa
{
  "mcpServers": {
    "onefeedapi": {
      "type": "http",
      "url": "https://onefeedapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${ONEFEED_API_KEY}"
      }
    }
  }
}

Add this to your MCP client, then ask your agent to call instagram.users.posts.list.

Edge cases

What the Instagram endpoints do at their edges, and what to check when a call does not return what you expected.

Page sizes
A list returns 12 to 50 items a page, depending on the endpoint. 4 of the 5 lists go on to a next page: page.next_cursor, passed back as cursor, each page a call of its own. The others return one page only.
Fields it cannot give
9 of the 9 endpoints cannot fill every field of the object they return. Each endpoint's page lists which, and every answer repeats them in meta.unavailable: a missing field is never a silent zero.
A missing object that reads as empty
Instagram user posts: an object that does not exist cannot be told from one with nothing under it, so the answer is an empty result, not a 404.
Posts by shortcode
A post or reel is named by its shortcode, the part of its link after /p/ or /reel/. Comment replies take the comment's ID and that shortcode.
Accounts by handle
Profiles and an account's posts take the handle without the @. The profile does not give a post count.
When the handle does not exist
Asked for every post, a handle nobody has comes back empty; asked for reels only, it answers with an error that is not charged.
Comments carry less
Comments and replies come without the commenter's display name and without naming their post; replies have no like count.
Transcripts: two minutes at most
A video over two minutes is refused as invalid input; a reel in which nothing is said reads as not found. Neither is charged.

Questions about the Instagram API

Short answers. The details are on each endpoint's page.

What Instagram data can I get through the API?

9 endpoints: posts, hashtags, users, comments. Each endpoint's page gives its parameters and fields, with a recorded response.

How do I call the Instagram API?

Sign up for a key, send it as Authorization: Bearer <key> and call the endpoint's address, for example GET https://onefeedapi.com/v1/instagram/comments/replies/list. Or connect OneFeedAPI to Claude, Cursor or ChatGPT (MCP) and ask in a sentence. The free trial needs no card.

How many tokens does a Instagram API response take in an AI?

Across 8 Instagram endpoints, one recorded real response each, the platform's own JSON comes to 544k tokens and what an AI reads through OneFeedAPI's MCP server to 13k, 98% fewer; the JSON of a direct API call is 89% fewer (counted 2026-11-06). Every platform uses the same field names, and fields returns only the ones you name.

How is the Instagram API priced?

Per call, no subscription. From $0.0020 to $0.0040 a call; each endpoint's page shows its own price. You are charged when data comes back; a failed call costs nothing.

Do I need a Instagram account or a cookie?

No. One OneFeedAPI key is all you hold: no Instagram login, no cookie, no device to keep alive. The endpoints return publicly visible data only.

Is the data live?

A call fetches from Instagram at that moment, and meta.fetched_at says when. A result is kept for 24 hours, so a retry with the same Idempotency-Key is not charged again.

What happens when Instagram changes something?

A call that fails is not charged, whatever the reason. An endpoint that is paused answers capability_paused, also free, and GET /v1/catalog/status says what is up right now.

Related

Call Instagram with one key.

Free trial on sign-up: up to 50 calls at $0.0020. No card. No Instagram login, no cookie, no subscription. A failed call is free.

Start free