# Weibo(微博) Media Downloader 🎥 📸 (`easyapi/weibo-wei-bo-media-downloader`)

Extract and download high-quality videos and images from Weibo (微博) posts. Supports multiple quality options up to 2K resolution, batch processing, and provides structured output with direct download links. Perfect for content archiving and social media research.

- **URL**: https://beta-securitybyobscurity.apify.com/easyapi/weibo-wei-bo-media-downloader.md
- **Developed by:** [EasyApi](https://beta-securitybyobscurity.apify.com/easyapi) (community)
- **Categories:** Social media, Videos, Integrations
- **Stats:** 70 total users, 6 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$19.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

## Weibo Media Downloader 🎥 📸

Extract and download high-quality videos and images from Weibo (微博) posts with ease! This actor helps you retrieve media content from Weibo mobile links.

### Features ✨

- 🎬 Downloads videos in multiple qualities (up to 2K resolution)
- 📷 Extracts high-resolution images
- 🔗 Supports both single post and batch processing
- 💨 Fast and efficient processing
- 📊 Structured JSON output
- ⚡ Automatic quality selection for best available media

### Use Cases 💡

- Content archiving and backup
- Social media research and analysis
- Digital marketing material collection
- Fan content preservation
- Media asset management

### Input Parameters 📝

The actor accepts the following input parameters:

- `links` (Array): List of Weibo PC or mobile post URLs to process (e.g., https://m.weibo.cn/detail/...)

### Output 📤

The actor outputs a JSON structure for each processed URL containing:

- Original URL
- Post metadata (author, title)
- Available media files with:
  - Direct download URLs
  - Quality options
  - File types
  - Media dimensions

### Limitations ⚠️

- Requires valid post URLs
- Media availability depends on original post content

### Tips 💪

- For best results, use mobile Weibo URLs
- Process multiple URLs in batches for efficiency
- Check available quality options in the output

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "links": [
        "https://m.weibo.cn/detail/5124994877361038"
    ]
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "url": "https://m.weibo.cn/detail/5124994877361038",
        "result": {
            "url": "https://m.weibo.cn/detail/5124994877361038",
            "source": "weibou",
            "author": "李现ing",
            "title": "大唐代购就找小蒋，洛阳特产一网打尽！<a href=\"//s.weibo.com/weibo?q=%23%E5%9B%BD%E8%89%B2%E8%8A%B3%E5%8D%8E%23\" target=\"_blank\">#国色芳华#</a> <a target=\"_blank\" href=\"https://video.weibo.com/show?fid=1034:5124992397148206&mark_id=999_reallog_mark_ad%3A999%7CWeiboADNatural\"><img class=\"icon-link\" title=\"http://t.cn/A63ZAQ0W\" src=\"https://h5.sinaimg.cn/upload/2015/09/25/3/timeline_card_small_video_default.png\"/>李现工作室的微博视频</a> ​​​",
            "thumbnail": "https://tvax2.sinaimg.cn/crop.0.0.1080.1080.1024/8cb725a7ly8hxdajvqx1ej20u00u00wg.jpg?KID=imgbed,tva&Expires=1738835509&ssig=I7F6gGf0nX",
            "duration": 0,
            "medias": [
                {
                    "url": "https://f.video.weibocdn.com/o0/hZGQvoJFlx08ljjrrwfe01041200AKaG0E010.mp4?label=mp4_1440p&template=2560x1180.25.0&media_id=5124992397148206&tp=8x8A3El:YTkl0eM8&us=0&ori=1&bf=4&ot=h&lp=00002sYI2e&ps=mZ6WB&uid=zqRDJFc&ab=,15568-g4,8012-g2,3601-g32,8013-g0,3601-g36,3601-g37&Expires=1738828309&ssig=bEIdkhXelG&KID=unistore,video",
                    "quality": "2K",
                    "extension": "mp4",
                    "type": "video"
                },
                {
                    "url": "https://f.video.weibocdn.com/o0/VdncEJUVlx08ljjtIBuM01041200uppP0E010.mp4?label=mp4_1080p&template=2340x1080.25.0&media_id=5124992397148206&tp=8x8A3El:YTkl0eM8&us=0&ori=1&bf=4&ot=h&lp=00002sYI2e&ps=mZ6WB&uid=zqRDJFc&ab=,15568-g4,8012-g2,3601-g32,8013-g0,3601-g36,3601-g37&Expires=1738828309&ssig=UqnzmcMh9L&KID=unistore,video",
                    "quality": "1080p",
                    "extension": "mp4",
                    "type": "video"
                },
                {
                    "url": "https://f.video.weibocdn.com/o0/N8KBiTJ7lx08ljjqu6iY01041200huOV0E010.mp4?label=mp4_720p&template=1560x720.25.0&media_id=5124992397148206&tp=8x8A3El:YTkl0eM8&us=0&ori=1&bf=4&ot=h&lp=00002sYI2e&ps=mZ6WB&uid=zqRDJFc&ab=,15568-g4,8012-g2,3601-g32,8013-g0,3601-g36,3601-g37&Expires=1738828309&ssig=UMmWWgE1Kb&KID=unistore,video",
                    "quality": "720p",
                    "extension": "mp4",
                    "type": "video"
                },
                {
                    "url": "https://f.video.weibocdn.com/o0/KeI0wKPvlx08ljjpi4L6010412008rtn0E010.mp4?label=mp4_hd&template=1040x480.25.0&media_id=5124992397148206&tp=8x8A3El:YTkl0eM8&us=0&ori=1&bf=4&ot=h&lp=00002sYI2e&ps=mZ6WB&uid=zqRDJFc&ab=,15568-g4,8012-g2,3601-g32,8013-g0,3601-g36,3601-g37&Expires=1738828309&ssig=RIgQMZBTDM&KID=unistore,video",
                    "quality": "480p",
                    "extension": "mp4",
                    "type": "video"
                },
                {
                    "url": "https://wx1.sinaimg.cn/large/006qffC3ly1hxridax4wej30qo460af7.jpg?media_id=5124992397148206&tp=8x8A3El:YTkl0eM8&us=0&ori=1&bf=4&ot=h&lp=00002sYI2e&ps=mZ6WB&uid=zqRDJFc&ab=,15568-g4,8012-g2,3601-g32,8013-g0,3601-g36,3601-g37&Expires=1738828309&ssig=vGD%2BnancCD&KID=unistore,video",
                    "quality": "480p",
                    "extension": "jpeg",
                    "type": "image"
                },
                {
                    "url": "https://f.video.weibocdn.com/o0/nJg22mJslx08ljjpttm0010412005pWE0E010.mp4?label=mp4_ld&template=780x360.25.0&media_id=5124992397148206&tp=8x8A3El:YTkl0eM8&us=0&ori=1&bf=4&ot=h&lp=00002sYI2e&ps=mZ6WB&uid=zqRDJFc&ab=,15568-g4,8012-g2,3601-g32,8013-g0,3601-g36,3601-g37&Expires=1738828309&ssig=z1npaciEAF&KID=unistore,video",
                    "quality": "360p",
                    "extension": "mp4",
                    "type": "video"
                }
            ],
            "type": "multiple",
            "error": false,
            "time_end": 642
        }
    }
]
```

### Related Actors

- 🎥 [TikTok Video Downloader](https://apify.com/easyapi/tiktok-video-downloader) - Download TikTok videos without watermarks in original quality
- 📥 [All-in-One Media Downloader](https://apify.com/easyapi/all-in-one-media-downloader) - Download videos, images, or audio from various platforms including TikTok, Instagram, YouTube, and more
- 🎥 [RedNote(Xiaohongshu) Video Downloader](https://apify.com/easyapi/rednote-xiaohongshu-video-downloader) - Extract videos and metadata from Xiaohongshu posts with multiple quality options
- 🎥 [Douyin Video Downloader](https://apify.com/easyapi/douyin-video-downloader) - Download videos from Douyin (Chinese TikTok) without watermark
- 📥 [Telegram Media Downloader](https://apify.com/easyapi/telegram-media-downloader) - Extract videos, photos, and media content from Telegram posts
- 🎥 [Facebook Video Download](https://apify.com/easyapi/facebook-video-download) - Download Facebook videos in HD quality up to 4K resolution
- 🎥 [Instagram Videos Downloader](https://apify.com/easyapi/instagram-videos-downloader) - Download videos from Instagram posts, reels, and stories
- 🎥 [Twitter/X Video Downloader](https://apify.com/easyapi/twitter-x-video-downloader) - Download high-quality videos from Twitter/X
- 📸 [Instagram Photos Downloader](https://apify.com/easyapi/instagram-photos-downloader) - Save high-quality images from Instagram posts and profiles
- 🎥 [VK Video Downloader](https://apify.com/easyapi/vk-video-downloader) - Extract and download high-quality videos from VK.com and VKVideo.ru
- 🎥 [YouTube Video and MP3 Downloader](https://apify.com/easyapi/youtube-video-and-mp3-downloader) - Download high-quality videos and audio from YouTube
- 🔍 [RedNote(Xiaohongshu) Search Scraper](https://apify.com/easyapi/rednote-xiaohongshu-search-scraper) - Scrape RedNote search results for posts, user info, and engagement metrics
- 🎥 [Instagram Reels Downloader](https://apify.com/easyapi/instagram-reels-downloader) - Download Instagram Reels videos in bulk with high quality
- 📥 [Reddit Media Downloader](https://apify.com/easyapi/reddit-media-downloader) - Extract and download high-quality videos, GIFs, and images from Reddit posts
- 📥 [Tumblr Media Downloader](https://apify.com/easyapi/tumblr-media-downloader) - Extract and download high-quality images and videos from Tumblr posts

# Actor input Schema

## `links` (type: `array`):

List of Weibo URLs to process

## `proxyConfiguration` (type: `object`):

Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.

## Actor input object example

```json
{
  "links": [
    "https://m.weibo.cn/detail/5124994877361038"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/weibo-wei-bo-media-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/weibo-wei-bo-media-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call easyapi/weibo-wei-bo-media-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=easyapi/weibo-wei-bo-media-downloader",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Weibo(微博) Media Downloader 🎥 📸",
        "description": "Extract and download high-quality videos and images from Weibo (微博) posts. Supports multiple quality options up to 2K resolution, batch processing, and provides structured output with direct download links. Perfect for content archiving and social media research.",
        "version": "0.0",
        "x-build-id": "TzpA4wd7gK9faOXyV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/easyapi~weibo-wei-bo-media-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-easyapi-weibo-wei-bo-media-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/easyapi~weibo-wei-bo-media-downloader/runs": {
            "post": {
                "operationId": "runs-sync-easyapi-weibo-wei-bo-media-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/easyapi~weibo-wei-bo-media-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-easyapi-weibo-wei-bo-media-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "links"
                ],
                "properties": {
                    "links": {
                        "title": "Weibo URLs",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "List of Weibo URLs to process",
                        "default": [
                            "https://m.weibo.cn/detail/5124994877361038"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.",
                        "default": {
                            "useApifyProxy": false,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
