GET /v1/platform-events — Platform events
GET /v1/platform-events · Secret or secret key · scope twitch:read, youtube:read
Events of your linked Twitch and YouTube accounts, newest first: the same objects as data of the twitch.* and youtube.* live events. With twitch:read: follows, subscriptions and gifted subscriptions, cheers, raids, channel points rewards and hype train levels. With youtube:read: new subscribers, channel members, Super Chats and Super Stickers. Either scope is enough. Without platform and type filters, results include every platform allowed by the key. Each page is checked against the key; a cursor cannot grant access to more platforms.
Only events Donatty received are listed. Donatty subscribes to Twitch events while a connection with the twitch live channel is open or a Twitch widget is used, and polls YouTube while a connection with the youtube channel is open or a YouTube widget is used. Earlier events may therefore be missing; no retention period is promised.
To catch up after a gap in live events, request order=asc with since set to recordedAt of the last event you handled minus a few minutes. Follow nextCursor to the end of the pass and discard events whose id you have already handled.
Subscription matching usually adds 15–25 seconds to twitch.subscription built from channel.subscribe, and to twitch.subscription.received and twitch.subscription.gift; a subscription with a message can arrive sooner. YouTube events arrive with the polling delay, which grows when many streamers share the daily YouTube quota. The delay from the action on the platform has no hard bound under failures or load: recordedAt is when Donatty recorded the event.
Response structure: PlatformEventPage, PlatformEvent
Loading the reference…
Tables of parameters, responses and fields
Parameters
Section titled “Parameters”| Name | Location | Type | Description |
|---|---|---|---|
limit |
query | integer, 1–100, default 20 |
How many records to return per page: 1 to 100, 20 by default. |
cursor |
query | string | nextCursor from the previous response; returns the next page. |
since |
query | string (date-time) | Only events recorded at or after this moment (recordedAt), for example 2026-11-09T10:00:00Z. |
platform |
query | string, values: TWITCH, YOUTUBE |
Platform of the events: TWITCH or YOUTUBE. Without it, the events of every platform the key has a scope for. A platform whose scope the key lacks is refused with 403 insufficient_scope, an unknown value with 400 invalid_parameter. |
type |
query | list of strings, values: twitch.follow, twitch.subscription, twitch.subscription.gift, twitch.subscription.received, twitch.cheer, twitch.raid, twitch.reward.redeemed, twitch.hype_train.level_changed, youtube.subscriber, youtube.member, youtube.super_chat, youtube.super_sticker |
Which event types to return, comma-separated. Without it, all types of the platforms the key has a scope for. A type whose scope the key lacks is refused with 403 insufficient_scope, a type of another platform than platform with 400 invalid_parameter. |
order |
query | string, values: desc, asc, default desc |
desc — history, newest first. asc — catch-up from since, oldest first. An asc pass includes events whose recordedAt is no later than the first page request. Events recorded later arrive through the stream or in the next pass. A cursor works only with the order that returned it. |
Responses
Section titled “Responses”200— OK400— A parameter is invalid (for example,typeof another platform thanplatform), or the key was sent in the request address:invalid_parameter,token_in_query401— The key is missing, unknown, deleted or expired:missing_token,invalid_token,token_expired403— Wrong kind of key, the key has neithertwitch:readnoryoutube:read, orplatformortypeasks for a platform whose scope the key lacks. The public key never has them:wrong_token_type,insufficient_scope429— Rate limit exceeded:rate_limited500— The request failed on our side:internal_error503— The API is temporarily unavailable:service_unavailable
Example response
Section titled “Example response”{ "items": [ { "id": "pevt_40ab6ec8-b253-4d9f-a74a-8bcf50bd3269", "platform": "YOUTUBE", "type": "youtube.super_sticker", "accountId": "104857306182736450192", "occurredAt": "2026-11-09T10:26:33.490Z", "recordedAt": "2026-11-09T10:26:41.027519Z", "actor": { "id": "UCp5Lk8Jh2Gf6Ds9Az3Xc7Vb", "login": null, "displayName": "Sticker Fan", "avatarUrl": "https://yt3.ggpht.com/a/UCp5Lk8Jh2Gf6Ds9Az3Xc7Vb=s88-c-k" }, "message": null, "isTest": false, "details": { "amount": { "value": "500", "currency": "JPY" }, "superChatId": "Cg0KC3N1cGVyc3RpY2tlcg", "tier": 1, "sticker": { "id": "sticker_cat_wave", "altText": "A cat waving its paw" } } }, { "id": "pevt_3f9a5db7-a142-4c8e-9639-7abe4fac2158", "platform": "YOUTUBE", "type": "youtube.super_chat", "accountId": "104857306182736450192", "occurredAt": "2026-11-09T10:25:03.112Z", "recordedAt": "2026-11-09T10:25:12.640833Z", "actor": { "id": "UCz1Xc4VbN7mQ0Ws3Ed6Rf9T", "login": null, "displayName": "Generous Viewer", "avatarUrl": "https://yt3.ggpht.com/a/UCz1Xc4VbN7mQ0Ws3Ed6Rf9T=s88-c-k" }, "message": "Great stream!", "isTest": false, "details": { "amount": { "value": "5.00", "currency": "USD" }, "superChatId": "Cg0KC3N1cGVyY2hhdC0x", "tier": 2 } }, { "id": "pevt_7c1e5a38-4196-4fac-9257-0ae2c6b9f145", "platform": "TWITCH", "type": "twitch.cheer", "accountId": "141981764", "occurredAt": null, "recordedAt": "2026-11-09T10:24:05.733018Z", "actor": { "id": "5678901", "login": "cool_cheerer", "displayName": "Cool_Cheerer", "avatarUrl": null }, "message": "Cheer100 pogchamp", "isTest": false, "details": { "bits": { "unit": "BITS", "quantity": 100 }, "isAnonymous": false } } ], "nextCursor": "MTc5NDIxOTg0NTczMzAxOC43YzFlNWEzOC00MTk2LTRmYWMtOTI1Ny0wYWUyYzZiOWYxNDU"}Schemas
Section titled “Schemas”PlatformEventPage
Section titled “PlatformEventPage”| Field | Type | Description |
|---|---|---|
items |
list PlatformEvent |
|
nextCursor |
string or null | Pass as cursor with the same order to get the next page; null — last page (for order=asc, the end of the pass). |
PlatformEvent
Section titled “PlatformEvent”An event from a platform account linked to the streamer. GET /v1/platform-events and the data field of twitch.* and youtube.* live events use this same structure.
| Field | Type | Description |
|---|---|---|
id |
string | Event identifier, pevt_…: the same in REST and in every live publication of the event. Drop an event whose id you have already handled. |
platform |
string, values: TWITCH, YOUTUBE |
The platform. |
type |
string, values: twitch.follow, twitch.subscription, twitch.subscription.gift, twitch.subscription.received, twitch.cheer, twitch.raid, twitch.reward.redeemed, twitch.hype_train.level_changed, youtube.subscriber, youtube.member, youtube.super_chat, youtube.super_sticker |
Event type, the same as CloudEvents type; it says which schema details follows. |
accountId |
string | The streamer’s account on the platform: the Twitch user ID of the channel; for YouTube, the ID of the Google account the channel is linked through, not the UC… channel ID. |
occurredAt |
string (date-time) or null | When the action happened, when the platform reports it: followed_at of a follow, redeemed_at of a reward, the start of a hype train for its first level; for YouTube, when the subscription, the Super Chat or the Super Sticker was made and when the member’s access to the current level began. null otherwise. |
recordedAt |
string (date-time) | When Donatty recorded the event, RFC 3339 in UTC. The list is ordered by it. |
actor |
PlatformAccount or null |
Who did it: the follower, subscriber, gifter, gift recipient, cheering viewer, raiding channel, viewer who redeemed the reward, channel member or viewer who bought a Super Chat or Super Sticker. null for an anonymous gift or cheer and for a hype train. |
message |
string or null | Text the viewer sent with a resubscription, a cheer or a Super Chat; null otherwise. |
isTest |
boolean | Always false: test alerts of Twitch and YouTube events are not published. |
details |
object | Fields of the type: twitch.follow — FollowDetails, twitch.subscription — SubscriptionDetails, twitch.subscription.gift — SubscriptionGiftDetails, twitch.subscription.received — SubscriptionReceivedDetails, twitch.cheer — CheerDetails, twitch.raid — RaidDetails, twitch.reward.redeemed — RewardDetails, twitch.hype_train.level_changed — HypeTrainDetails, youtube.subscriber — YoutubeSubscriberDetails, youtube.member — YoutubeMemberDetails, youtube.super_chat — SuperChatDetails, youtube.super_sticker — SuperStickerDetails. |
PlatformAccount
Section titled “PlatformAccount”| Field | Type | Description |
|---|---|---|
id |
string | Account identifier on the platform: the Twitch user ID or the YouTube channel ID. |
login |
string or null | Login; null when the platform did not send it. YouTube has no logins, so it is always null there. |
displayName |
string or null | Display name; null when the platform did not send it. |
avatarUrl |
string (URI) or null | Avatar of the account when the platform sends it with the event: YouTube does, Twitch does not, so it is null for Twitch events. |
FollowDetails
Section titled “FollowDetails”twitch.follow: no fields; the follower is actor.
| Field | Type | Description |
|---|
SubscriptionDetails
Section titled “SubscriptionDetails”twitch.subscription.
| Field | Type | Description |
|---|---|---|
tier |
string, values: TIER_1, TIER_2, TIER_3 or null |
Subscription tier; null when Twitch sent a value this API does not know. |
cumulativeMonths |
integer or null, 0– | Months subscribed in total, as Twitch reports them; null when only channel.subscribe came. |
durationMonths |
integer or null, 0– | Months paid for at once; null when only channel.subscribe came. |
streakMonths |
integer or null, 0– | Months in a row; null when the viewer does not share it. |
isResub |
boolean | true when the viewer shared a resubscription message. |
SubscriptionGiftDetails
Section titled “SubscriptionGiftDetails”twitch.subscription.gift.
| Field | Type | Description |
|---|---|---|
tier |
string, values: TIER_1, TIER_2, TIER_3 or null |
Subscription tier; null when Twitch sent a value this API does not know. |
count |
integer, 1– | Subscriptions in this batch. |
cumulativeCount |
integer or null, 0– | Subscriptions the gifter has gifted in this channel; null when Twitch did not send it. |
isAnonymous |
boolean | true for an anonymous gift. |
SubscriptionReceivedDetails
Section titled “SubscriptionReceivedDetails”twitch.subscription.received.
| Field | Type | Description |
|---|---|---|
recipient |
PlatformAccount |
Who got the subscription. |
gifter |
PlatformAccount or null |
Who gifted it; null for an anonymous gift, or when the batch could not be matched for sure (two batches at once). |
tier |
string, values: TIER_1, TIER_2, TIER_3 or null |
Subscription tier; null when Twitch sent a value this API does not know. |
CheerDetails
Section titled “CheerDetails”twitch.cheer.
| Field | Type | Description |
|---|---|---|
bits |
Quantity |
Bits, unit is BITS. |
isAnonymous |
boolean | true for an anonymous cheer. |
Quantity
Section titled “Quantity”An amount in the platform’s own currency: not money, never converted to rubles.
| Field | Type | Description |
|---|---|---|
unit |
string, values: BITS, CHANNEL_POINTS |
BITS — Twitch bits; CHANNEL_POINTS — channel points of the streamer. |
quantity |
integer, 0– | How many units. |
RaidDetails
Section titled “RaidDetails”twitch.raid.
| Field | Type | Description |
|---|---|---|
fromAccount |
RaidAccount |
The raiding channel. |
viewerCount |
integer, 0– | Viewers who came with the raid. |
RaidAccount
Section titled “RaidAccount”| Field | Type | Description |
|---|---|---|
id |
string | Twitch user ID of the raiding channel. |
login |
string or null | Login of the raiding channel. |
displayName |
string or null | Display name of the raiding channel. |
RewardDetails
Section titled “RewardDetails”twitch.reward.redeemed.
| Field | Type | Description |
|---|---|---|
redemptionId |
string | Twitch ID of this redemption. |
rewardId |
string | Twitch ID of the reward. |
title |
string | Reward title. |
cost |
Quantity |
Cost, unit is CHANNEL_POINTS. |
userInput |
string or null | Text the viewer entered; null when the reward asks for none. |
HypeTrainDetails
Section titled “HypeTrainDetails”twitch.hype_train.level_changed.
| Field | Type | Description |
|---|---|---|
trainId |
string | Twitch ID of the train: the same for all its levels. |
level |
integer, 1– | The level reached. |
YoutubeSubscriberDetails
Section titled “YoutubeSubscriberDetails”youtube.subscriber: no fields; the subscriber is actor.
| Field | Type | Description |
|---|
YoutubeMemberDetails
Section titled “YoutubeMemberDetails”youtube.member.
| Field | Type | Description |
|---|---|---|
level |
string or null | The highest membership level the member has now: its display name, or its YouTube ID when the level has no name. |
months |
integer or null, 0– | Months of membership in total over all levels, as YouTube reports them; null when YouTube did not send them. |
levelSince |
string (date-time) or null | Start of the member’s continuous access to level, RFC 3339 in UTC. |
isUpgrade |
boolean or null | Always null for now: polling does not tell a move to a higher level from a new membership. |
SuperChatDetails
Section titled “SuperChatDetails”youtube.super_chat.
| Field | Type | Description |
|---|---|---|
amount |
ExactMoney |
What the viewer paid, in their currency, exactly as YouTube reports it. |
superChatId |
string | YouTube ID of the Super Chat event. |
tier |
integer or null, 1– | Tier of the purchase that YouTube derives from the amount; null when YouTube did not send it. |
ExactMoney
Section titled “ExactMoney”An exact amount of a platform, never rounded: unlike Money, the fraction is not cut to two digits. It has at least the minor units of the currency (5.00 USD, 500 JPY, 1.500 KWD) and more digits when the platform sent more.
| Field | Type | Description |
|---|---|---|
value |
string | Decimal amount, up to six fraction digits, never rounded. |
currency |
string | Currency code as the platform sent it: ISO 4217 for YouTube. The amount is never converted. |
SuperStickerDetails
Section titled “SuperStickerDetails”youtube.super_sticker.
| Field | Type | Description |
|---|---|---|
amount |
ExactMoney |
What the viewer paid, in their currency, exactly as YouTube reports it. |
superChatId |
string | YouTube ID of the Super Sticker event. |
tier |
integer or null, 1– | Tier of the purchase that YouTube derives from the amount; null when YouTube did not send it. |
sticker |
Sticker |
The sticker. |
Sticker
Section titled “Sticker”A Super Sticker.
| Field | Type | Description |
|---|---|---|
id |
string | YouTube ID of the sticker. |
altText |
string or null | Description of the sticker, in the language YouTube chose; null when YouTube did not send it. |