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.
How to read the tables
Section titled “How to read the tables”- 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
MoneyandExactMoneyschemas 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. |
Example
Section titled “Example”{ "value": "500.00", "currency": "RUB"}ExactMoney
Section titled “ExactMoney”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. |
REST responses
Section titled “REST responses”| 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 |