Weibo Media API — Download Photos and Videos
Documentation menu
FetchLayer FetchLayer API

Download a photo or video

Delivers one photo or video from a post: what every media asset’s downloadUrl points at. It opens anywhere, unlike Weibo’s own link, and supports Range requests so players can seek and downloads can resume. Each request costs 1 credit, a range request included.

GET /media Utilities
https://api.fetchlayer.dev/weibo/media
OpenAPI JSON

Headers

Authorization string required

Bearer token — your FetchLayer API key.

Parameters

url string required

A Weibo image or video link, as a media asset’s url names it (downloadUrl already carries it). Only Weibo’s own media links; anything else is a 400. A link that has expired is a 404: read the post again for a fresh one.

filename string optional

Offer the file as a download with this name.

Response Fields

media

Download a photo or video

(binary) file

The file, streamed with its own content type. A Range request is answered with 206 and content-range, so players can seek and an interrupted download can resume.

Request

curl -X GET "https://api.fetchlayer.dev/weibo/media?url=https%3A%2F%2Fwx1.sinaimg.cn%2Fmw2000%2F0070uxksgy1ii3aj0oaluj30wr1ii104.jpg" \
  -H "Authorization: Bearer ss-your-key"

Response

{
  "note": "The image’s bytes, streamed with its own content type."
}