Skip to content

Response and event structures

This reference describes REST response bodies and live stream events. Field tables and examples come from the API specifications — OpenAPI and AsyncAPI — so they match what the server sends.

  • Type is a string, an integer, a boolean, an object or a list. “or null” means the field can have the value null.
  • Fields are present by default, even when their value is null. Optional fields are marked “may be absent” next to their name.
  • IDs, time and money follow the common formats in Money, formats and lists; the Money and ExactMoney schemas are below.
  • Unknown fields and new values are covered in Compatibility.

Part of: Donation, Goal, Top, Total

Field Type Description
value string Decimal amount with two fraction digits.
currency string ISO 4217 code.
{
"value": "500.00",
"currency": "RUB"
}

Part of: PlatformEvent

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.
Structure Method
Money inside other structures
ExactMoney inside other structures
Streamer GET /v1/streamer
Donation GET /v1/donations
DonationPage GET /v1/donations
Goal GET /v1/goals
GoalPage GET /v1/goals
Top GET /v1/stats/top
Total GET /v1/stats/total
PlatformEvent GET /v1/platform-events
PlatformEventPage GET /v1/platform-events
SourceStatus GET /v1/event-sources
SourceStatusList GET /v1/event-sources
Problem All methods
Event Channel
donation.created donations
donation.moderated donations
donation.replayed donations
goal.updated goals
twitch.follow twitch
twitch.subscription twitch
twitch.subscription.gift twitch
twitch.subscription.received twitch
twitch.cheer twitch
twitch.raid twitch
twitch.reward.redeemed twitch
twitch.hype_train.level_changed twitch
youtube.subscriber youtube
youtube.member youtube
youtube.super_chat youtube
youtube.super_sticker youtube
source.status_changed donations, twitch, youtube