API Reference

Twitch endpoints

Channel, VOD and clip metrics. Channel responses include live status, current viewer count and the active stream title when the channel is broadcasting.

All 3 endpoints below take a single url parameter and return the same field vocabulary used across every platform. A full object costs 2 credits; a single field costs 1.
GET /api/v1/twitch/channel
2 credits cache 1m

Twitch channel

Follower count and live status for a Twitch channel, plus current viewers, stream title and game when live.

Parameters

url required
Example: https://www.twitch.tv/username
field optional
Return a single value for 1 credit instead of 2.

Fields

userId · channelName · displayName · followers · partner · connected · createdAt · live · viewers · streamTitle · game · streamStartedAt

Example request

curl -H "Authorization: Bearer $TUBESTAT_KEY" \
  "https://tubestat.co/api/v1/twitch/channel?url=https%3A%2F%2Fwww.twitch.tv%2Fusername"
GET /api/v1/twitch/video
2 credits cache 1m

Twitch video

View count, duration and game for a Twitch VOD.

Parameters

url required
Example: https://www.twitch.tv/videos/VIDEO_ID
field optional
Return a single value for 1 credit instead of 2.

Fields

videoId · title · views · durationMs · createdAt · game · ownerId · ownerName

Example request

curl -H "Authorization: Bearer $TUBESTAT_KEY" \
  "https://tubestat.co/api/v1/twitch/video?url=https%3A%2F%2Fwww.twitch.tv%2Fvideos%2FVIDEO_ID"
GET /api/v1/twitch/clip
2 credits cache 1m

Twitch clip

View count, duration and source video for a Twitch clip.

Parameters

url required
Example: https://clips.twitch.tv/CLIP_SLUG
field optional
Return a single value for 1 credit instead of 2.

Fields

clipId · slug · title · views · durationMs · createdAt · game · broadcasterId · broadcasterName · sourceVideoId

Example request

curl -H "Authorization: Bearer $TUBESTAT_KEY" \
  "https://tubestat.co/api/v1/twitch/clip?url=https%3A%2F%2Fclips.twitch.tv%2FCLIP_SLUG"