Instagram video and photo downloader API

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 object a call; $0.0020 per call. Errors, timeouts and objects that do not exist are not charged.

GEThttps://onefeedapi.com/v1/instagram/posts/media/get
Also known asinstagram video downloaderinstagram reel downloaderinstagram photo downloaderinstagram carousel downloaddownload instagram videoIn Chinese: Instagram 视频和图片下载地址 API
id is in the link: instagram.com/p/<id>/. Or pass the whole link as url.
Price$0.0020/ call · Errors and timeouts are not charged
Returns1 objectone media files object
When a call failsRetried for youon the same route, or a backup route; never charged
StatusLive status30-day availability 100%

Try it

Change a value and the request on the right follows.
Run · $0.0020

Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 50 calls.

The first 2 rows of a response recorded 2026-10-12 18:57 UTC.
FieldValue
typevideo
duration27.56
curl -G "https://onefeedapi.com/v1/instagram/posts/media/get" \
  --data-urlencode "id=DeCPVhERA8e" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
{
  "code": "ok",
  "request_id": "34ba1b24-ab2d-4c3b-abc3-b9910e6189a4",
  "data": {
    "item": {
      "post_id": "DQyQdFkFFJn",
      "type": "video",
      "title": "Weekend hiking: a beginner's guide in 8 minutes",
      "author": { "id": "53202780662", "name": "Trail & Lens" },
      "duration": 27.56,
      "files": [
        {
          "kind": "video",
          "index": null,
          "width": null,
          "height": null,
          "format": "mp4",
          "duration": 27.56,
          "url": "https://www.instagram.com/p/DBtKGomgavY/",
          "expires_at": "2026-10-14T06:05:50.000Z"
        },
        {
          "kind": "cover",
          "index": null,
          "width": null,
          "height": null,
          "format": "jpeg",
          "duration": null,
          "url": "https://www.instagram.com/p/DN4CeLwOyrY/",
          "expires_at": "2026-10-17T05:27:31.000Z"
        }
      ]
    }
  },
  "warnings": [],
  "meta": {
    "capability": "instagram.posts.media.get",
    "result_status": "complete",
    "fetched_at": "2026-10-12T18:57:02.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "files.quality": "capability",
      "files.codec": "capability",
      "files.bitrate": "capability",
      "files.size": "capability",
      "files.title": "platform",
      "files.lang": "platform",
      "files.watermark": "capability",
      "files.backup_urls": "capability",
      "files.headers": "capability",
      "files.stable_url": "platform",
      "files.live": "platform",
      "decrypt": "platform"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

From a response recorded 2026-10-12 18:57 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.

Size as sent: 2.9 KB in the standard view (2.9 KB compact, 2.9 KB full).

This example as a JSON file

curl -G "https://onefeedapi.com/v1/instagram/posts/media/get" \
  --data-urlencode "id=DeCPVhERA8e" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi
from onefeedapi import OneFeedAPI

dx = OneFeedAPI()  # reads ONEFEED_API_KEY
result = dx.instagram.posts.media.get(id="DeCPVhERA8e")
print(result["data"]["item"])
// npm i @onefeedapi/sdk
import { OneFeedAPI } from "@onefeedapi/sdk";

const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY
const result = await dx.instagram.posts.media.get({ id: "DeCPVhERA8e" });
console.log(result.data.item);
onefeedapi call instagram.posts.media.get id=DeCPVhERA8e
{
  "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.posts.media.get.

Parameters

idtextgive exactly one of id, url

The post's shortcode: the part of its link after /p/ or /reel/. Example: DeCPVhERA8e.

urltextgive exactly one of id, url

Web link to the post or reel. Example: https://www.instagram.com/p/DeCPVhERA8e/. Full link: https://www.instagram.com/p/DeCPVhERA8e/.

viewtext

How much of each item to return. All three cost the same. Values: compact, standard (default), full.

fieldslist of text

Return only these fields. Each by its path, such as author.name.

Known limits

Returned fields

data.item is one media files object. Stable: fields are only ever added.

post_idtextcompact

ID of the post the files belong to: the same as the detail endpoint's id

typetextcompact

Content format: video, or image (a picture post or photo set)videoimage

titletextcompact

Title; the caption where the platform has no separate title

authorobjectcompact

Author

author.idtextcompact

Author's account ID

author.nametextcompact

Author's display name

Show all 37 fields →
durationnumbercompact

Length of the video, in seconds; a picture post has none

fileslist of objectcompact

Every file, one entry each: the video in each quality, the audio, the cover, each picture, the subtitles

files[].kindtextcompact

What the file is: video, audio (the background music, or a sound track served apart from the picture), cover, image (a picture of the post), subtitlevideoaudiocoverimagesubtitle

files[].indexintegercompact

Place of a picture in the post, from 1; null for other files

files[].qualitytextcompactNot provided here

Quality, as the platform names it or by the short side in pixels, such as 720p or 1080p; null where there is none

files[].widthintegercompact

Width, in pixels

files[].heightintegercompact

Height, in pixels

files[].codectextcompactNot provided here

Codec, such as h264, h265, h266, av1 or aac; ByteDance's own BVC2 (Douyin, TikTok) is bytevc2, which many players cannot play, so pick an h264 or h265 file for a common format; null where the platform does not sayh264h265h266av1aacbytevc2

files[].bitrateintegercompactNot provided here

Bit rate, in bits a second

files[].sizeintegercompactNot provided here

File size, in bytes

files[].formattextcompact

File format: mp4, m4s (Bilibili's separate picture and sound streams), mp3, m4a, jpeg, png, webp, heic, gif, kvif (Kuaishou's image format) or srt; null where the address does not saymp4m4smp3m4ajpegpngwebpheicgifkvifsrt

files[].durationnumbercompact

Length of an audio or video file, in seconds

files[].titletextcompactThe platform has none

Name of the background music; null for other files

files[].langtextcompactThe platform has none

Language code of the subtitles, such as zh-CN or en-US

files[].watermarkyes/nocompactNot provided here

Whether the file carries the platform's watermark

files[].urllinkcompact

Address of the file

files[].backup_urlslist of linkstandardNot provided here

Other addresses of the same file, for when the main one fails

files[].expires_attimecompact

When the address expires, as its signature says; null where the signature does not say. Once it has, call again for new addresses

files[].headersobjectcompactNot provided here

Request headers the address has to be fetched with, keyed by the header's name in lower case; absent on platforms whose addresses need none

files[].headers.referertextcompactNot provided here

The Referer to send

files[].stable_urllinkcompactThe platform has none

The platform's play address, which redirects to the file's address of the moment and lasts longer than url; null where there is none

files[].liveobjectcompactThe platform has none

The video of a live photo; null for a picture that is not one

files[].live.urllinkcompactThe platform has none

Address of the live photo's video

files[].live.durationnumbercompactThe platform has none

Length of the live photo's video, in seconds

decryptobjectcompactThe platform has none

How to decrypt the files, where they are encrypted; null where they are not

decrypt.methodtextcompactThe platform has none

The method. isaac64_xor_head: seed ISAAC64 with key, take each 64-bit output as 8 big-endian bytes for a key stream as long as bytes says, and XOR it over the start of the file; the rest is left as it isisaac64_xor_head

decrypt.keytextcompactThe platform has none

The key, good only for the addresses of the same answer

decrypt.bytesintegercompactThe platform has none

How many bytes at the start of the file are encrypted

approximatelist of objectcompact

Which numbers of this item are approximate or lower bounds; absent when all are exact

approximate[].fieldtextcompact

Path of the field, such as metrics.views

approximate[].kindtextcompact

Approximate, or a lower boundapproximatelower_bound

Typical size of one item: compact 2.2 KB, standard 2.2 KB, full 2.2 KB (measured on the response recorded 2026-10-12 18:57 UTC).

What this endpoint cannot give

files[].qualityNot provided here
files[].codecNot provided here
files[].bitrateNot provided here
files[].sizeNot provided here
files[].titleThe platform has none
files[].langThe platform has none
files[].watermarkNot provided here
files[].backup_urlsNot provided here
files[].headersNot provided here
files[].headers.refererNot provided here
files[].stable_urlThe platform has none
files[].liveThe platform has none
files[].live.urlThe platform has none
files[].live.durationThe platform has none
decryptThe platform has none
decrypt.methodThe platform has none
decrypt.keyThe platform has none
decrypt.bytesThe platform has none

When you are charged

A result with data$0.0020, once per call
The object does not exist (404)not charged
Invalid parameters, a failure or a timeoutnot charged
CaseCharged
The most one call can cost$0.0020 (send X-Max-Price to refuse anything above your own limit)

Prices as read 2026-11-22 09:40 UTC, under price book 21, in effect since 2026-11-21 15:05 UTC; the Playground reads the price in force before a run.

If the object does not exist

The answer is 404 not_found and nothing is charged. reason says which: not_found (it does not exist) or private_or_deleted.

Errors

What this endpoint can answer with; codes all endpoints share are on the full list.

HTTPCodeMeaningCharged
400invalid_paramsA parameter is invalidRetry: After a fixNo
402insufficient_balanceThe balance is too lowRetry: After a fixNo
404not_foundThe object does not exist, is private or was deletedRetry: NoNo
502upstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNo
504timeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNo

All error codes →

Questions

How much does the Instagram video and photo downloader API cost?

$0.0020 per call. The most one call can cost is $0.0020.

When am I not charged?

Errors, timeouts and objects that do not exist are not charged.

What happens if the object does not exist?

The answer is 404 not_found and nothing is charged. reason says which: not_found (it does not exist) or private_or_deleted.

How much for 100 posts?

By the call, whatever the length of the video or the number of files: $0.0020 a call, so 100 posts cost 100 times $0.0020. Asking again for new addresses is another call at the same price.

The address gives 403 or has expired. What now?

Every address says when it expires (expires_at). Once it has, call again for new addresses, and download soon after the call.

What does a carousel give?

Each picture and each video of it in order, numbered by index, with width and height; a video comes with its still as a cover.

How do I get the files of every post of an account?

List the account's posts with instagram.users.posts.list, a page at a time, then call instagram.posts.media.get once for each post's id. In an AI agent that is one sentence: "Download every photo and video of @nasa's last 12 Instagram posts with OneFeedAPI."

How do I use it in ChatGPT or Claude?

Connect OneFeedAPI once (one prompt with your key, on the agents page), then ask in plain words, pasting the link as it is. The agent calls instagram.posts.media.get and each call is charged $0.0020.

30-day availability

100% of the time over the last 30 days, this endpoint was serving calls: at least one of its routes was taking them, so it was neither paused nor down.

A failed call is not charged.

Every endpoint's state now, and each incident with whether anyone was charged: the status page →

The same thing on other platforms

All 9 Instagram endpoints

Instagram endpoints

Use it in your AI

Copy this prompt

Your API key is built in, so there is nothing to configure.

Read https://onefeedapi.com/agents.md and set up OneFeedAPI in this agent. My API key is dx_…; use it for every OneFeedAPI call.
Sign in to copy it with your key

No account yet? Sign-up takes an email and no card, and a failed call is never charged.

then paste

Paste it into your agent

It reads the page the prompt points to and connects itself.

Your agent
Read https://onefeedapi.com/agents.md and set up OneFeedAPI in this agent. My API key is dx_••••; use it for every OneFeedAPI call.
OneFeedAPI connected · 5 tools ready
now try it

Now ask something

Use one of these, or your own words.

Read https://onefeedapi.com/apis/instagram/posts/media/get.md and help me use the OneFeedAPI endpoint instagram.posts.media.get (Instagram video and photo downloader).
Prefer to set it up by hand?
onefeedapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the OneFeedAPI MCP server and the base skill. The key is read from ONEFEED_API_KEY; none is written into a file.MCP server: https://onefeedapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call instagram.posts.media.get.Other clients →
Ask with this pageSends the Markdown version
Brief for an AIEverything needed to call it, as text
Show the text
Use the OneFeedAPI endpoint instagram.posts.media.get (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.
Call GET https://onefeedapi.com/v1/instagram/posts/media/get with the header "Authorization: Bearer $ONEFEED_API_KEY". Read the key from the environment variable ONEFEED_API_KEY; never write it into code.
Parameters:
- id: The post's shortcode: the part of its link after /p/ or /reel/. Example: DeCPVhERA8e.
- url: Web link to the post or reel. Example: https://www.instagram.com/p/DeCPVhERA8e/. Full link: https://www.instagram.com/p/DeCPVhERA8e/.
- view: How much of each item to return. All three cost the same. Values: compact, standard (default), full.
- fields: Return only these fields. Each by its path, such as author.name.
Price: $0.0020 per call. Errors, timeouts and objects that do not exist are not charged.
The answer is JSON: data.item holds media files; meta.billing.amount is what this call was charged.
Example:
curl -G "https://onefeedapi.com/v1/instagram/posts/media/get" \
  --data-urlencode "id=DeCPVhERA8e" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
Full reference in Markdown: https://onefeedapi.com/apis/instagram/posts/media/get.md

Names and identifiers

In Chinese
Instagram 视频和图片下载地址 API
Endpoint ID
instagram.posts.media.get
Endpoint
GET /v1/instagram/posts/media/get
Last checked 2026-11-22 09:40 UTC.View the Markdown versionopenapi.jsonllms.txt

Start with one key.

253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free