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.
id is in the link: instagram.com/p/<id>/. Or pass the whole link as url.Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 50 calls.
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).
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
id, urlThe post's shortcode: the part of its link after /p/ or /reel/. Example: DeCPVhERA8e.
id, urlWeb link to the post or reel. Example: https://www.instagram.com/p/DeCPVhERA8e/. Full link: https://www.instagram.com/p/DeCPVhERA8e/.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
Known limits
- One object per call: there is nothing to page.
- 18 fields of the object are not available from this endpoint
Returned fields
data.item is one media files object. Stable: fields are only ever added.
ID of the post the files belong to: the same as the detail endpoint's id
Content format: video, or image (a picture post or photo set)videoimage
Title; the caption where the platform has no separate title
Author
Author's account ID
Author's display name
Show all 37 fields →
Length of the video, in seconds; a picture post has none
Every file, one entry each: the video in each quality, the audio, the cover, each picture, the subtitles
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
Place of a picture in the post, from 1; null for other files
Quality, as the platform names it or by the short side in pixels, such as 720p or 1080p; null where there is none
Width, in pixels
Height, in pixels
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
Bit rate, in bits a second
File size, in bytes
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
Length of an audio or video file, in seconds
Name of the background music; null for other files
Language code of the subtitles, such as zh-CN or en-US
Whether the file carries the platform's watermark
Address of the file
Other addresses of the same file, for when the main one fails
When the address expires, as its signature says; null where the signature does not say. Once it has, call again for new addresses
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
The Referer to send
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
The video of a live photo; null for a picture that is not one
Address of the live photo's video
Length of the live photo's video, in seconds
How to decrypt the files, where they are encrypted; null where they are not
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
The key, good only for the addresses of the same answer
How many bytes at the start of the file are encrypted
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
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 herefiles[].codecNot provided herefiles[].bitrateNot provided herefiles[].sizeNot provided herefiles[].titleThe platform has nonefiles[].langThe platform has nonefiles[].watermarkNot provided herefiles[].backup_urlsNot provided herefiles[].headersNot provided herefiles[].headers.refererNot provided herefiles[].stable_urlThe platform has nonefiles[].liveThe platform has nonefiles[].live.urlThe platform has nonefiles[].live.durationThe platform has nonedecryptThe platform has nonedecrypt.methodThe platform has nonedecrypt.keyThe platform has nonedecrypt.bytesThe platform has noneWhen you are charged
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.
invalid_paramsA parameter is invalidRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNonot_foundThe object does not exist, is private or was deletedRetry: NoNoupstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
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
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
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 →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
Start with one key.
253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.