PulseEmetrics

Twitch

5 endpoints. All requests need an x-api-key header.

GET/v1/twitch/clip

Clip

Fetches detailed data for a Twitch clip by URL, including metadata and direct video URLs. Returns clip id, slug, url, embedURL, title, viewCount, language, durationSeconds, game info, broadcaster details with follower count, thumbnailURL, and videoQualities at multiple resolutions with a signed videoURL for playback. Also includes additional clips from the same broadcaster.

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
urlrequiredstringTwitch clip URL Example: https://www.twitch.tv/staryuuki/clip/CloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ?filter=clips&range=all&sort=time
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/twitch/clip?url=https%3A%2F%2Fwww.twitch.tv%2Fstaryuuki%2Fclip%2FCloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ%3Ffilter%3Dclips%26range%3Dall%26sort%3Dtime" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/twitch/clip?url=https%3A%2F%2Fwww.twitch.tv%2Fstaryuuki%2Fclip%2FCloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ%3Ffilter%3Dclips%26range%3Dall%26sort%3Dtime", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/twitch/clip",
    params={"url": "https://www.twitch.tv/staryuuki/clip/CloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ?filter=clips&range=all&sort=time"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/twitch/clip/transcript

Clip Transcript

Gets a transcript from a public Twitch clip. Checks native captions first; returned native captions cost 1 credit. Set use_ai_as_fallback=true to opt into paid AI only when captions are unavailable. No transcript costs 0 credits. transcript_source is native, ai, or null. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120 seconds, videos cannot be AI-transcribed by default. Set allow_long_transcription=true to o

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
allow_long_transcriptionbooleanPaid opt-in, enabled only by the literal query value 'true' (allow_long_transcription=true). Defaults to false when omitted; other values do not enable paid mode. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120
urlrequiredstringTwitch clip URL Example: https://clips.twitch.tv/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA
use_ai_as_fallbackbooleanUse paid AI only when native captions are unavailable. Defaults to false. By default, successful AI transcription of videos up to 120 seconds (two minutes, inclusive) costs a flat 1 credit per request. Over 120 seconds, videos cannot be AI-transcribed by default. Set allow_long_transcription=true to
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/twitch/clip/transcript?url=https%3A%2F%2Fclips.twitch.tv%2FWrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/twitch/clip/transcript?url=https%3A%2F%2Fclips.twitch.tv%2FWrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/twitch/clip/transcript",
    params={"url": "https://clips.twitch.tv/WrongMagnificentTomatoCorgiDerp-C720OEMqocSPbrqA"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/twitch/profile

Profile

Retrieves a Twitch user's public profile by handle, including identity, social links, and content. Returns id, handle, displayName, description, followers count, and linked social accounts (instagram, x, tiktok). Also includes allVideos with game info, duration, and view counts, featuredClips with clip metadata and thumbnails, and similarStreamers.

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
handlerequiredstringTwitch handle Example: ishowspeed
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/twitch/profile?handle=ishowspeed" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/twitch/profile?handle=ishowspeed", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/twitch/profile",
    params={"handle": "ishowspeed"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/twitch/user/schedule

User Schedule

Fetches a user's schedule by handle, returning a list of scheduled events with start time, end time, title, description, and thumbnail URL. Supports pagination via cursor and a trim option for lighter responses.

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
handlerequiredstringTwitch handle Example: emongg
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/twitch/user/schedule?handle=emongg" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/twitch/user/schedule?handle=emongg", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/twitch/user/schedule",
    params={"handle": "emongg"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/twitch/user/videos

User Videos

Fetches a list of videos (100 max) for a Twitch user, returning each video's id, slug, url, embedURL, title, viewCount, language, durationSeconds, game info, broadcaster details with follower count, thumbnailURL, and videoQualities at multiple resolutions with a signed videoURL for playback. Supports pagination via cursor and a trim option for lighter responses.

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
handlerequiredstringTwitch handle Example: ishowspeed
filter_bystringFilter by One of: HIGHLIGHTARCHIVEUPLOAD
sort_bystringSort by One of: TIMEVIEWS
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/twitch/user/videos?handle=ishowspeed" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/twitch/user/videos?handle=ishowspeed", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/twitch/user/videos",
    params={"handle": "ishowspeed"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())