
The X Livestream API has new routes, and the old ones have an end date. Since November 5, 2026, sources and broadcasts live under /2/sources and /2/broadcasts, and from January 1, 2027 the user-scoped routes return 404, according to X's Livestream API migration guide. Most of the migration is a find-and-replace of paths, with one catch around stream keys. The new routes also wrap responses in data and return errors in the standard X API problem format, so response parsing and error handling need an update too (X API changelog, November 5, 2026).
In Short
- Since November 5, 2026, the X Livestream API has top-level
/2/sourcesand/2/broadcastsroutes. POST /2/broadcastsnow creates and starts a broadcast in one call.- From January 1, 2027,
/2/users/:user_id/sourcesand/2/users/:user_id/broadcastsreturn 404. - On the same date, scheduled broadcasts stop accepting a stream key as
source_id. - Rate limits don't change: 450 requests per 15 minutes per user for each source route.
What Changed in the X Livestream API?
X moved Livestream API sources and broadcasts out from under the user path. In the X Livestream API, a source is the stream input your encoder sends video to, and a broadcast is the live event published on X.
After January 1, 2027, no fallback keeps the user-scoped routes alive: every call returns 404.
Why Stream Keys Can Break Your Integration
Each source now has a source ID that is separate from its stream key. The source ID identifies the source in API calls and isn't secret, while the stream key authorizes video ingest and should stay private (Stream Source Management). The new /2/sources/:id and POST /2/broadcasts routes already return 400 if they receive a stream key where a source ID is expected. On January 1, 2027, scheduled broadcast routes stop accepting a stream key as source_id (scheduled broadcasts overview). Code that stored one value and used it for both breaks that day, even if it never touched the old paths.
How to Migrate before January 1, 2027
- Find every call to the old routes with a quick search over your code (example below).
- Move source and broadcast calls to the new routes from the table above.
- Replace the create plus PUBLISH sequence with one POST /2/broadcasts call.
- Store the source ID (from GET /2/sources) separately and fetch the key through /2/sources/:id/stream_key only when the encoder needs it.
- Point scheduled broadcasts at the source ID.
grep -rnE "/2/users/[^/]+/(sources|broadcasts)" ./srcIf your app streams to X, the deadline is January 1, 2027. If it only reads public posts and profiles, nothing in this change affects you. For that side of X, see our X API v2 overview, our explainer on the X streaming API for real-time post data, and options for collecting public X data.
This is the second X API change in a month that means rewriting paths and parsers. If your product only reads public posts and profiles, the Data365 API for X gives you that data in one stable format, without tracking X's route changes yourself.
Test it with a 14-day free trial.
What We Don't Know Yet
- The exact cutoff time: the guide gives the date but no time zone.
- Whether X will run test outages on the old routes before January 1.
Extract data from top social media networks with Data365 API
Request a free 14-day trial and get 20+ data types
.jpg)
.jpg)
.jpg)
