Skip to Content

Live

A live video broadcast, running or ended.

GET
/v1/x/live

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

The broadcast's link (https://x.com/i/broadcasts/2onVBonVMMWjaV).

id?string

The broadcast's id, instead of url.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

A live video broadcast.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.x.live({ url: "https://x.com/i/broadcasts/2onVBonVMMWjaV" });
Example Response
{  "data": {    "live": false,    "roomId": "2onVBonVMMWjaV",    "title": "Progress 97 Cargo Ship Docking",    "viewers": null,    "startedAt": "2026-11-26T11:27:04.739Z",    "coverUrl": "https://prod-fastly-p.video.pscp.tv/Transcoding/v1/replay_thumbnail/pdxa/periscope-replays-public/eyJkIjowfQ/2onVBonVMMWjaV/chunk_1795695338186009745_1457_b.jpg?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsInZlcnNpb24iOiIyIn0.eyJBbGxvd2VkUHJvdG9jb2xzIjpbInRodW1iIl0sIkJyb2FkY2FzdElkIjoiMm9uVkJvblZNTVdqYVYiLCJHcmFudFR5cGUiOiJyZWFkIiwiR3JhbnRlZEF0IjoxNzk1Nzg2NTQ3LCJHcmFudGVkVG8iOiJ0dy0xNzk1Nzg2NTQ3MTM2MDk3NjMiLCJTdHJlYW1OYW1lIjoiMm9uVkJvblZNTVdqYVYiLCJleHAiOjE3OTU5NTkzNDd9.-eSOUpXp0VUtGse6yjiEAOYIrSwWnYEc-5F2g3LDO0U&service=proxsee&digest=RVyfltxAqAnmuDoJPogOAa0Ffupzq2tagh-EdWjZ390",    "host": {      "id": "11348282",      "username": "NASA",      "displayName": "NASA",      "avatarUrl": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",      "verified": true,      "url": "https://x.com/NASA"    },    "ext": {      "state": "timed_out",      "endedAt": "2026-11-26T12:20:28.944Z",      "replay": true,      "views": 126485,      "streamUrl": "https://prod-fastly-p.video.pscp.tv/Transcoding/v1/hls/2onVBonVMMWjaV/non_transcode/pdxa/periscope-replays-public/master_dynamic_16651048709796310152.m3u8?type=replay",      "width": 3840,      "height": 2160,      "postId": "2125914231304327216"    }  }}