Platform event: PlatformEvent
The Platform events method and the live stream events twitch.* and youtube.* return the same Twitch or YouTube event structure. The details fields depend on the event type and are described below.
PlatformEvent
Section titled “PlatformEvent”Returned by:
- Platform events ·
GET /v1/platform-events—itemselements - Events
twitch.follow,twitch.subscription,twitch.subscription.gift,twitch.subscription.received,twitch.cheer,twitch.raid,twitch.reward.redeemed,twitch.hype_train.level_changed· channeltwitch— thedatafield - Events
youtube.subscriber,youtube.member,youtube.super_chat,youtube.super_sticker· channelyoutube— thedatafield
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, pevt_… |
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 |
one of: FollowDetails, SubscriptionDetails, SubscriptionGiftDetails, SubscriptionReceivedDetails, CheerDetails, RaidDetails, RewardDetails, HypeTrainDetails, YoutubeSubscriberDetails, YoutubeMemberDetails, SuperChatDetails, SuperStickerDetails |
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”type = twitch.follow
twitch.follow: no fields; the follower is actor.
{ "id": "pevt_0c5e2a71-9b3d-4f86-a1e4-7d2c9b0f3a65", "platform": "TWITCH", "type": "twitch.follow", "accountId": "141981764", "occurredAt": "2026-11-09T10:20:11.171067Z", "recordedAt": "2026-11-09T10:20:11.402913Z", "actor": { "id": "2345678", "login": "cool_follower", "displayName": "Cool_Follower", "avatarUrl": null }, "message": null, "isTest": false, "details": {}}SubscriptionDetails
Section titled “SubscriptionDetails”type = twitch.subscription
| Field | Type | Description |
|---|---|---|
tier |
string or null, values: TIER_1, TIER_2, TIER_3 |
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. |
{ "id": "pevt_3e7a1c94-0d52-4b68-9f13-c6a8e2d5b701", "platform": "TWITCH", "type": "twitch.subscription", "accountId": "141981764", "occurredAt": null, "recordedAt": "2026-11-09T10:21:30.518204Z", "actor": { "id": "3456789", "login": "cool_subscriber", "displayName": "Cool_Subscriber", "avatarUrl": null }, "message": "Love the stream!", "isTest": false, "details": { "tier": "TIER_1", "cumulativeMonths": 15, "durationMonths": 6, "streakMonths": 3, "isResub": true }}SubscriptionGiftDetails
Section titled “SubscriptionGiftDetails”type = twitch.subscription.gift
| Field | Type | Description |
|---|---|---|
tier |
string or null, values: TIER_1, TIER_2, TIER_3 |
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. |
{ "id": "pevt_5a9c3e16-2f74-4d8a-b035-e8c0a4f7d923", "platform": "TWITCH", "type": "twitch.subscription.gift", "accountId": "141981764", "occurredAt": null, "recordedAt": "2026-11-09T10:22:47.091355Z", "actor": { "id": "1234567", "login": "cool_gifter", "displayName": "Cool_Gifter", "avatarUrl": null }, "message": null, "isTest": false, "details": { "tier": "TIER_1", "count": 5, "cumulativeCount": 284, "isAnonymous": false }}SubscriptionReceivedDetails
Section titled “SubscriptionReceivedDetails”type = 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 or null, values: TIER_1, TIER_2, TIER_3 |
Subscription tier; null when Twitch sent a value this API does not know. |
{ "id": "pevt_8d2f6b49-5ca7-4fbd-8368-1bf3d7c0a256", "platform": "TWITCH", "type": "twitch.subscription.received", "accountId": "141981764", "occurredAt": null, "recordedAt": "2026-11-09T10:22:47.284719Z", "actor": { "id": "4567890", "login": "lucky_viewer", "displayName": "Lucky_Viewer", "avatarUrl": null }, "message": null, "isTest": false, "details": { "recipient": { "id": "4567890", "login": "lucky_viewer", "displayName": "Lucky_Viewer", "avatarUrl": null }, "gifter": { "id": "1234567", "login": "cool_gifter", "displayName": "Cool_Gifter", "avatarUrl": null }, "tier": "TIER_1" }}CheerDetails
Section titled “CheerDetails”type = twitch.cheer
| Field | Type | Description |
|---|---|---|
bits |
Quantity |
Bits, unit is BITS. |
isAnonymous |
boolean | true for an anonymous cheer. |
{ "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 }}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”type = twitch.raid
| Field | Type | Description |
|---|---|---|
fromAccount |
RaidAccount |
The raiding channel. |
viewerCount |
integer, ≥ 0 | Viewers who came with the raid. |
{ "id": "pevt_b15c9e72-8fda-4c2e-b69b-4e26a0f3d589", "platform": "TWITCH", "type": "twitch.raid", "accountId": "141981764", "occurredAt": null, "recordedAt": "2026-11-09T10:25:40.017462Z", "actor": { "id": "6789012", "login": "cool_raider", "displayName": "Cool_Raider", "avatarUrl": null }, "message": null, "isTest": false, "details": { "fromAccount": { "id": "6789012", "login": "cool_raider", "displayName": "Cool_Raider" }, "viewerCount": 42 }}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”type = 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. |
{ "id": "pevt_d37eb094-ab1c-4e40-98bd-6048c2b5f7a1", "platform": "TWITCH", "type": "twitch.reward.redeemed", "accountId": "141981764", "occurredAt": "2026-11-09T10:27:12.391204Z", "recordedAt": "2026-11-09T10:27:12.640185Z", "actor": { "id": "7890123", "login": "cool_viewer", "displayName": "Cool_Viewer", "avatarUrl": null }, "message": null, "isTest": false, "details": { "redemptionId": "17fa2df1-ad76-4804-bfa5-a40ef63efe63", "rewardId": "92af127c-7326-4483-a52b-b0da0be61c01", "title": "Hydrate", "cost": { "unit": "CHANNEL_POINTS", "quantity": 500 }, "userInput": "Drink some water" }}HypeTrainDetails
Section titled “HypeTrainDetails”type = 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. |
{ "id": "pevt_f590d2b6-cd3e-4a62-bad0-826ae4d7b9c3", "platform": "TWITCH", "type": "twitch.hype_train.level_changed", "accountId": "141981764", "occurredAt": "2026-11-09T10:28:02.948311Z", "recordedAt": "2026-11-09T10:28:03.205873Z", "actor": null, "message": null, "isTest": false, "details": { "trainId": "1b0AsbInCHZW2SQFQkCzqN07Ib2", "level": 2 }}YoutubeSubscriberDetails
Section titled “YoutubeSubscriberDetails”type = youtube.subscriber
youtube.subscriber: no fields; the subscriber is actor.
{ "id": "pevt_1d7e3b95-8f20-4a6c-b417-5e9c2d8a0f36", "platform": "YOUTUBE", "type": "youtube.subscriber", "accountId": "104857306182736450192", "occurredAt": "2026-11-09T10:20:05Z", "recordedAt": "2026-11-09T10:20:43.881201Z", "actor": { "id": "UCq3Lr8VtNb2Kp6YdHs9WmXe", "login": null, "displayName": "Cool Subscriber", "avatarUrl": "https://yt3.ggpht.com/a/UCq3Lr8VtNb2Kp6YdHs9WmXe=s88-c-k" }, "message": null, "isTest": false, "details": {}}YoutubeMemberDetails
Section titled “YoutubeMemberDetails”type = 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. |
{ "id": "pevt_2e8f4ca6-9031-4b7d-8528-6fad3e9b1047", "platform": "YOUTUBE", "type": "youtube.member", "accountId": "104857306182736450192", "occurredAt": "2026-11-09T10:21:58Z", "recordedAt": "2026-11-09T10:22:16.305477Z", "actor": { "id": "UCm7Tn2QwRe5Yu8Io1PaSdFg", "login": null, "displayName": "Loyal Member", "avatarUrl": "https://yt3.ggpht.com/a/UCm7Tn2QwRe5Yu8Io1PaSdFg=s88-c-k" }, "message": null, "isTest": false, "details": { "level": "Gold", "months": 3, "levelSince": "2026-11-09T10:21:58Z", "isUpgrade": null }}SuperChatDetails
Section titled “SuperChatDetails”type = 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. |
{ "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 }}SuperStickerDetails
Section titled “SuperStickerDetails”type = 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. |
{ "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" } }}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. |
Example
Section titled “Example”{ "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" } }}PlatformEventPage
Section titled “PlatformEventPage”Returned by:
- Platform events ·
GET /v1/platform-events— the whole response
| 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). |
Example
Section titled “Example”{ "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"}