# Douyin 抖音, TikTok & X (Twitter) Article to Markdown (MCP) (`poweragy/omni-extract-mcp`) Actor

Extract full X (Twitter) long-form Articles, watermark-free Douyin (抖音) & TikTok videos/images, and YouTube transcripts into clean Markdown for AI Agents, Obsidian & MCP. Zero cookies required.

- **URL**: https://apify.com/poweragy/omni-extract-mcp.md
- **Developed by:** [PowerAGY Labs](https://apify.com/poweragy) (community)
- **Categories:** AI, Social media, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 extracted content items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Douyin (抖音) & X (Twitter) Article to Markdown Scraper (MCP & x402 Ready)

Extract **full long-form X (Twitter) Articles & Threads**, **watermark-free Douyin (抖音) & TikTok videos/photo galleries**, **Xiaohongshu (RedNote) notes**, **YouTube/Bilibili transcripts with timestamps**, and **anti-bot web articles** into clean, LLM-ready **Markdown + Structured JSON** in one call.

- **Zero Cookies or Login Required**: Pure-algorithm `x-secsdk-web-signature` signing for Douyin (`v.douyin.com`) and GraphQL extraction for X Articles — no account ban risk, no proxy setup required.
- **50%+ Cheaper Than Single-Platform Scrapers**: Just **$0.005 per extracted item ($5.00 / 1,000 results)** with automatic 24h deduplication cache.
- **Built for AI Agents, MCP, n8n, Make & Obsidian**: Returns both clean `markdown` (ready for LLM context windows or Obsidian vaults) and structured metadata (`media_urls`, `transcript`, `segments`, engagement counts).

***

### Supported Platforms & Capabilities

| Platform | URL Examples | What You Get |
| :--- | :--- | :--- |
| **Douyin (抖音)** | `https://v.douyin.com/...`<br>`https://www.douyin.com/video/...`<br>`https://www.douyin.com/note/...` | **Watermark-free MP4 stream URLs**, high-res gallery images (`JPEG`/`PNG`/`WebP`), full caption, author info, likes/saves/comments/shares. |
| **X (Twitter) Articles & Posts** | `https://x.com/user/status/...`<br>`https://twitter.com/user/status/...` | **Full 10,000+ word X Articles** rendered with `# / ##` headings, lists, code blocks & blockquotes, NoteTweets, quoted tweets, media URLs, and engagement stats. |
| **YouTube & Bilibili (哔哩哔哩)** | `https://www.youtube.com/watch?v=...`<br>`https://www.bilibili.com/video/BV...` | Video metadata, cover image, full deduplicated **plain-text transcript**, and **timestamped subtitle segments** (`[{"start": 1.0, "end": 3.5, "text": "..."}]`). |
| **TikTok & Xiaohongshu (小红书 / RedNote)** | `https://vt.tiktok.com/...`<br>`https://www.xiaohongshu.com/explore/...` | Post title, full note text/caption, author details, and media/image URLs. |
| **GitHub & Anti-Bot Web** | `https://github.com/owner/repo`<br>Any blog, news, or documentation URL | Clean semantic Markdown stripped of ads, navbars, scripts, and Cloudflare bot-wall noise. |

***

### Input Parameters

```json
{
  "urls": [
    "https://x.com/ai_chuhai/status/2037437653071835440",
    "https://v.douyin.com/0kH2cQVrf0o/",
    "https://github.com/modelcontextprotocol/servers"
  ],
  "include_transcript": true,
  "use_cache": true
}
```

- **`urls`** *(array of strings, required)*: List of URLs or raw mobile share texts (e.g. `"4.66 复制打开抖音... https://v.douyin.com/..."`).
- **`include_transcript`** *(boolean, default: `true`)*: Extract full video subtitles and timestamped segments for YouTube/Bilibili/TikTok videos.
- **`use_cache`** *(boolean, default: `true`)*: Instant `<5ms` response if the same URL was extracted within the last 24 hours.

***

### Output Example (Dataset Item)

```json
{
  "ok": true,
  "url": "https://v.douyin.com/0kH2cQVrf0o/",
  "canonical_url": "https://www.douyin.com/note/7703513872124769984",
  "platform": "douyin",
  "content_type": "gallery",
  "content_id": "7703513872124769984",
  "title": "ClaudeCode最该开的设置",
  "author": "AI进化论",
  "text": "Claude Code 提示缓存 TTL 配置指南...",
  "markdown": "# ClaudeCode最该开的设置\n\n- **Platform**: Douyin (gallery)\n- **Author**: AI进化论\n...",
  "transcript": null,
  "segments": [],
  "media_urls": [
    "https://p3-pc-sign.douyinpic.com/tos-cn-i-0813/..."
  ],
  "cover_url": "https://p3-pc-sign.douyinpic.com/tos-cn-i-0813/...",
  "duration_seconds": 0.0,
  "extraction_tier": "douyin_sec_salt_md5_signature",
  "metadata": {
    "aweme_id": "7703513872124769984",
    "digg_count": 1420,
    "collect_count": 890,
    "comment_count": 64
  }
}
```

***

### Use with AI Agents (MCP) & Automation (n8n / Make / cURL)

#### 1. Synchronous REST API Call (Get Markdown in 1 HTTP Request)

```bash
curl -X POST "https://api.apify.com/v2/acts/poweragy~omni-extract-mcp/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://x.com/ai_chuhai/status/2037437653071835440"]
  }'
```

#### 2. Use via Apify MCP Server (Claude Desktop / Cursor / Windsurf)

Connect `poweragy/omni-extract-mcp` directly to your AI Agent via `https://mcp.apify.com/?actors=poweragy/omni-extract-mcp`!

# Actor input Schema

## `urls` (type: `array`):

One or more URLs to extract (X/Twitter tweets & long-form Articles, Douyin, TikTok, YouTube, Bilibili, GitHub, or any web article).

## `include_transcript` (type: `boolean`):

Automatically extract clean plain-text transcript and timestamped segments for YouTube/Bilibili/TikTok videos.

## `use_cache` (type: `boolean`):

Return cached extraction results instantaneously if the same URL was extracted within 24 hours.

## Actor input object example

```json
{
  "urls": [
    "https://x.com/ai_chuhai/status/2037437653071835440",
    "https://v.douyin.com/0kH2cQVrf0o/"
  ],
  "include_transcript": true,
  "use_cache": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing extracted Markdown, plain text, transcripts, and watermark-free media URLs for each target URL.

# 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 = {
    "urls": [
        "https://x.com/ai_chuhai/status/2037437653071835440",
        "https://v.douyin.com/0kH2cQVrf0o/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("poweragy/omni-extract-mcp").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 = { "urls": [
        "https://x.com/ai_chuhai/status/2037437653071835440",
        "https://v.douyin.com/0kH2cQVrf0o/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("poweragy/omni-extract-mcp").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://x.com/ai_chuhai/status/2037437653071835440",
    "https://v.douyin.com/0kH2cQVrf0o/"
  ]
}' |
apify call poweragy/omni-extract-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,poweragy/omni-extract-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GHS8ta2JPIHAVV2bT/builds/IfS8G9fCXkbnFWXNf/openapi.json
