Weibo video and image downloader API
Give a Weibo post by ID, link or share text and get its video in each quality the platform has (up to 4K where there is one, each with width, height, bit rate, size, whether it is watermarked and when it expires) and its cover, or each picture at its largest size. Video and picture posts only: a text post is answered as having no files. The addresses need no headers; once they expire, another call gives new ones. One object a call; $0.0020 per call. Errors and timeouts are not charged.
id is in the link: m.weibo.cn/detail/<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/weibo/posts/media/get" \ --data-urlencode "id=5352571897120856" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
{
"code": "ok",
"request_id": "44e4bc42-8d9c-48f6-8e7c-c6fe2b03ef5c",
"data": {
"item": {
"post_id": "5295673239846945",
"type": "video",
"title": "周末露营装备清单,新手照着买就行",
"author": { "id": "5360276323", "name": "小林的周末" },
"duration": 142,
"files": [
{
"kind": "video",
"index": null,
"quality": "4K60",
"width": 3840,
"height": 2160,
"codec": "h264",
"bitrate": 13866733,
"size": 247243850,
"format": "mp4",
"duration": 142.639,
"watermark": false,
"url": "https://weibo.com/6798224225/wChlxqOz0",
"expires_at": "2026-11-10T20:54:14.000Z"
},
{
"kind": "video",
"index": null,
"quality": "2K60",
"width": 2560,
"height": 1440,
"codec": "h264",
"bitrate": 6262295,
"size": 111656727,
"format": "mp4",
"duration": 142.639,
"watermark": false,
"url": "https://weibo.com/6680880360/OzmXALQu8",
"expires_at": "2026-11-10T20:54:14.000Z"
},
// … 5 more
]
}
},
"warnings": [
{
"code": "fields_unparsed",
"item": 0,
"fields": [
"files[].quality",
"files[].codec",
"files[].bitrate",
"files[].size",
"files[].duration",
"files[].watermark"
]
}
],
"meta": {
"capability": "weibo.posts.media.get",
"result_status": "complete",
"fetched_at": "2026-11-10T19:54:14.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"files.title": "platform",
"files.lang": "platform",
"files.backup_urls": "capability",
"files.headers": "platform",
"files.stable_url": "platform",
"files.live": "capability",
"decrypt": "platform"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a response recorded 2026-11-10 19:54 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: 4.2 KB in the standard view (4.2 KB compact, 4.2 KB full).
curl -G "https://onefeedapi.com/v1/weibo/posts/media/get" \ --data-urlencode "id=5352571897120856" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi from onefeedapi import OneFeedAPI dx = OneFeedAPI() # reads ONEFEED_API_KEY result = dx.weibo.posts.media.get(id="5352571897120856") 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.weibo.posts.media.get({ id: "5352571897120856" }); console.log(result.data.item);
onefeedapi call weibo.posts.media.get id=5352571897120856
{
"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 weibo.posts.media.get.
Parameters
id, urlPost ID, a string of digits. With only a link or a share text, give it as url. Example: 5352571897120856.
id, urlLink to the post, pasted as it is: the site's https://weibo.com/<user>/… (digits or letters after it), the phone site's https://m.weibo.cn/detail/… or /status/…, or a whole share text with one of these in it. Example: https://m.weibo.cn/detail/5352571897120856. Full link: https://m.weibo.cn/detail/5352571897120856. Share text with a link inside: 看看这条微博 https://m.weibo.cn/detail/5352571897120856 来自微博.
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.
- 13 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
With id: files.codec, files.bitrate, files.size, files.watermark may be absent; meta.unavailable of each answer says what that answer could not give.
With url: files.codec, files.bitrate, files.size, files.watermark may be absent; meta.unavailable of each answer says what that answer could not give.
Typical size of one item: compact 3.5 KB, standard 3.5 KB, full 3.5 KB (measured on the response recorded 2026-11-10 19:54 UTC).
What this endpoint cannot give
files[].titleThe platform has nonefiles[].langThe platform has nonefiles[].backup_urlsNot provided herefiles[].headersThe platform has nonefiles[].headers.refererThe platform has nonefiles[].stable_urlThe platform has nonefiles[].liveNot provided herefiles[].live.urlNot provided herefiles[].live.durationNot provided heredecryptThe 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. charged and amount in the body say what this one cost. 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 fixAs the answer's charged field saysinsufficient_balanceThe balance is too lowRetry: After a fixNonot_foundThe object does not exist, is private or was deletedRetry: NoAs the answer's charged field saysupstream_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 Weibo video and image downloader API cost?
$0.0020 per call. The most one call can cost is $0.0020.
When am I not charged?
Errors and timeouts are not charged.
What happens if the object does not exist?
The answer is 404 not_found. charged and amount in the body say what this one cost. 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?
Fetch the address as it is: no header or cookie is needed. Where the signature says when it expires, expires_at says so; once it has, or the address stops opening, call again for new addresses. Download soon after the call rather than keeping addresses.
Which qualities, and is there a watermark?
Every quality the platform has for the video, up to 4K where there is one, each with its width, height, bit rate and size, and watermark as the platform states it. A picture post gives each picture at its largest size; a text post has no files and is answered as such.
How do I get the files of every post of an account?
List the account's posts with weibo.users.posts.list, a page at a time, then call weibo.posts.media.get once for each post's id. In an AI agent that is one sentence: "Download the videos of this Weibo account's last 20 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 weibo.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 13 Weibo 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 weibo.posts.media.get.Other clients →Show the text
Use the OneFeedAPI endpoint weibo.posts.media.get (Weibo video and image downloader). Give a Weibo post by ID, link or share text and get its video in each quality the platform has (up to 4K where there is one, each with width, height, bit rate, size, whether it is watermarked and when it expires) and its cover, or each picture at its largest size. Video and picture posts only: a text post is answered as having no files. The addresses need no headers; once they expire, another call gives new ones. Call GET https://onefeedapi.com/v1/weibo/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: Post ID, a string of digits. With only a link or a share text, give it as url. Example: 5352571897120856. - url: Link to the post, pasted as it is: the site's https://weibo.com/<user>/… (digits or letters after it), the phone site's https://m.weibo.cn/detail/… or /status/…, or a whole share text with one of these in it. Example: https://m.weibo.cn/detail/5352571897120856. Full link: https://m.weibo.cn/detail/5352571897120856. Share text with a link inside: 看看这条微博 https://m.weibo.cn/detail/5352571897120856 来自微博. - 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 and timeouts 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/weibo/posts/media/get" \ --data-urlencode "id=5352571897120856" \ -H "Authorization: Bearer $ONEFEED_API_KEY" Full reference in Markdown: https://onefeedapi.com/apis/weibo/posts/media/get.md
Names and identifiers
- In Chinese
- 微博视频和图片下载地址 API
- Endpoint ID
weibo.posts.media.get- Endpoint
GET /v1/weibo/posts/media/get
Start with one key.
253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.