# Public Social Data APIs

Canonical URL: https://dataroute.dev/apis/social/
Specification Snapshot: 2026-11-22 | Planned Endpoints: 15

Query public posts, profiles, timelines, following graphs, and keyword feeds under one unified JSON envelope. First-party Ark infrastructure anchors X endpoints, while dual-upstream failover covers global long-tail social sources.

X (Twitter) endpoints run as V1 Flagship routes backed by Ark, combining an owned account pool with budget-capped external fallback so timelines, tweets, following slices, and live search remain resilient under platform rate limits.

Reddit, YouTube, TikTok, and Bluesky launch as V1 Multi-Upstream routes behind DataRoute health scoring, while high-friction regional sources (WeChat Official Accounts, Xiaohongshu, Weibo, Bilibili) activate in Stage 2 strictly according to paid demand heatmaps. Login-gated private data remains permanently excluded.

## Endpoint Catalog
| Method | Planned Path | Platform | Capability | Stage | Engine | MCP Tool |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/v1/social/x/tweets/{id}` | X / Twitter | Tweet Lookup | V1 Flagship | Ark (owned pool + fallback) | `social_x_tweet` |
| GET | `/v1/social/x/users/{handle}` | X / Twitter | User Profile | V1 Flagship | Ark (owned pool + fallback) | `social_x_user` |
| GET | `/v1/social/x/users/{handle}/timeline` | X / Twitter | User Timeline | V1 Flagship | Ark (owned pool + fallback) | `social_x_timeline` |
| GET | `/v1/social/x/users/{handle}/following` | X / Twitter | Following Graph Slice | V1 Flagship | Ark (owned pool + fallback) | `social_x_following` |
| GET | `/v1/social/x/search` | X / Twitter | Public Post Search | V1 Flagship | Ark (owned pool + fallback) | `social_x_search` |
| GET | `/v1/social/reddit/posts` | Reddit | Subreddit Feed & Search | V1 Multi-Upstream | Dual-Upstream Proxy Router | `social_reddit_posts` |
| GET | `/v1/social/reddit/threads/{id}` | Reddit | Thread & Comments Tree | V1 Multi-Upstream | Dual-Upstream Proxy Router | `social_reddit_thread` |
| GET | `/v1/social/youtube/videos/{id}` | YouTube | Video Metadata & Transcript | V1 Multi-Upstream | Dual-Upstream Proxy Router | `social_youtube_video` |
| GET | `/v1/social/youtube/channels/{handle}` | YouTube | Channel Profile & Uploads | V1 Multi-Upstream | Dual-Upstream Proxy Router | `social_youtube_channel` |
| GET | `/v1/social/tiktok/videos/{id}` | TikTok | Public Video & Creator Slice | V1 Multi-Upstream | Dual-Upstream Proxy Router | `social_tiktok_video` |
| GET | `/v1/social/bluesky/feed/{handle}` | Bluesky | ATProto Profile & Author Feed | V1 Multi-Upstream | Open Protocol + Health Router | `social_bluesky_feed` |
| GET | `/v1/social/wechat/articles` | WeChat Official Accounts | Public Article & Search Slice | V2 Hard-Source | Stage 2 First-Party Adapter | `social_wechat_articles` |
| GET | `/v1/social/xiaohongshu/notes` | Xiaohongshu (RED) | Public Note & Keyword Slice | V2 Hard-Source | Stage 2 First-Party Adapter | `social_xhs_notes` |
| GET | `/v1/social/weibo/statuses` | Weibo | Public Status Timeline | V2 Hard-Source | Stage 2 First-Party Adapter | `social_weibo_statuses` |
| GET | `/v1/social/bilibili/videos/{bvid}` | Bilibili | Video Metadata & Uploader Stats | V2 Hard-Source | Stage 2 First-Party Adapter | `social_bilibili_video` |

## Target Fields & Failover Policies
- `GET /v1/social/x/tweets/{id}` (V1 Flagship, Tier 2 · Managed Pool): fields `id, author_handle, text, created_at, metrics, media, quoted_id` — Owned account pool primary with budget-capped external upstream fallback.
- `GET /v1/social/x/users/{handle}` (V1 Flagship, Tier 2 · Managed Pool): fields `id, handle, display_name, bio, followers_count, following_count, created_at` — Owned account pool primary with automatic provider failover on rate-limit pressure.
- `GET /v1/social/x/users/{handle}/timeline` (V1 Flagship, Tier 2 · Managed Pool): fields `author_id, tweets[], next_cursor, fetched_at` — Slot-aware owned pool rotation with external upstream fallback and cursor continuity.
- `GET /v1/social/x/users/{handle}/following` (V1 Flagship, Tier 2 · Managed Pool): fields `source_handle, accounts[], next_cursor, returned_count` — Rate-budgeted Ark dispatch with automatic spillover to healthy secondary provider.
- `GET /v1/social/x/search` (V1 Flagship, Tier 2 · Managed Pool): fields `query, sort_mode, tweets[], next_cursor` — Health-scored owned pool first, failing over to secondary search upstream on 429 or timeout.
- `GET /v1/social/reddit/posts` (V1 Multi-Upstream, Tier 1 · Public Feed / Proxy): fields `subreddit, posts[], score, num_comments, permalink, created_utc` — Dual external upstreams ranked by rolling HTTP 200 success rate and p95 latency.
- `GET /v1/social/reddit/threads/{id}` (V1 Multi-Upstream, Tier 1 · Public Feed / Proxy): fields `post, comments[], depth, author, body_markdown` — Automatic secondary upstream retry on HTTP 429, 5xx, or truncated payload.
- `GET /v1/social/youtube/videos/{id}` (V1 Multi-Upstream, Tier 1 · Structured Feed): fields `video_id, channel_id, title, views, published_at, duration_sec, transcript_segments[]` — Dual-upstream failover across caption and metadata providers with explicit provenance.
- `GET /v1/social/youtube/channels/{handle}` (V1 Multi-Upstream, Tier 1 · Structured Feed): fields `channel_id, handle, subscriber_band, recent_videos[]` — Health-scored dual-upstream routing with schema validation before billing.
- `GET /v1/social/tiktok/videos/{id}` (V1 Multi-Upstream, Tier 2 · Anti-Bot Multi-Upstream): fields `video_id, author_handle, caption, stats, music_title, created_at` — Two independent upstream data providers behind circuit-breaker health scoring.
- `GET /v1/social/bluesky/feed/{handle}` (V1 Multi-Upstream, Tier 1 · Open Protocol): fields `did, handle, display_name, posts[], repost_count, reply_count` — Direct public ATProto AppView primary with secondary relay failover.
- `GET /v1/social/wechat/articles` (V2 Hard-Source, Tier 3 · Regional Hard-Source): fields `account_name, article_url, title, published_at, clean_markdown` — Demand-gated Stage 2 activation adopting vetted regional extraction adapters.
- `GET /v1/social/xiaohongshu/notes` (V2 Hard-Source, Tier 3 · Regional Hard-Source): fields `note_id, author_id, title, body, tags[], engagement_counts` — Demand-gated Stage 2 activation with strict HTTP-200 schema verification.
- `GET /v1/social/weibo/statuses` (V2 Hard-Source, Tier 3 · Regional Hard-Source): fields `mid, user_screen_name, text, reposts_count, comments_count, created_at` — Demand-gated Stage 2 rollout with bounded rate scheduling and zero-charge failure handling.
- `GET /v1/social/bilibili/videos/{bvid}` (V2 Hard-Source, Tier 3 · Regional Hard-Source): fields `bvid, title, owner, view_count, danmaku_count, tags[], published_at` — Demand-gated Stage 2 rollout backed by regional adapter health probes.

## Questions & Answers
### How does DataRoute keep X (Twitter) endpoints resilient under rate limits?
X endpoints run on Ark as V1 Flagship routes, combining an owned account pool with a budget-capped external fallback provider. When an owned slot hits platform rate pressure, the router shifts traffic automatically while recording exact upstream provenance.

### Why are WeChat Official Accounts, Xiaohongshu, Weibo, and Bilibili tagged V2 Hard-Source?
Regional social platforms enforce aggressive anti-bot controls and frequent client protocol rotations. DataRoute stages those adapters in V2 and activates them according to verified paid demand heatmaps so maintenance effort concentrates on endpoints teams actively pay for.

### Does DataRoute support authenticated or private social accounts?
No. Every Social Data API route strictly targets publicly accessible posts, profiles, timelines, and search feeds. Login-gated private messages, locked accounts, and session-hijack scraping remain permanently excluded.

### What happens when a social upstream returns an empty body or HTTP 429?
The router automatically retries against a healthy secondary upstream when dual-upstream failover is configured. If all upstreams fail or the payload fails schema validation, DataRoute returns a normalized 429, 502, or 504 response with billable set to false and deducts zero credits.
