# Source conditions

This page covers source requirements, when collection starts and how long events take to arrive. For available data and source statuses, see [Sources and statuses](https://developers.donatty.com/en/sources.md).

## Donatty

Donations through your donation page and goals need no additional source setup: a key with the `donations:read` or `goals:read` scope is enough ([key scopes](https://developers.donatty.com/en/tokens.md#secret-key-scopes)).

While a connection with the `donations` channel is open, the donation's moderation card appears in your dashboard even when your widgets are closed.

## Donation Alerts

- You need the PRO subscription, a Donation Alerts account connected in your dashboard and a key with the `donations:read` scope.
- While a connection with the `donations` channel is open, Donatty automatically connects to your Donation Alerts account and forwards donations received from then on. No open widget is needed.
- While Donatty waits for a free slot for its Donation Alerts connection (the `CAPACITY_LIMITED` status) or reconnects, such donations can be missed, and automatic redelivery isn't guaranteed. `GET /v1/donations` returns only the donations Donatty has already received or imported from history.
- Donations from a Donation Alerts history import produce no events.

## Twitch

- You need a Twitch account linked to your dashboard and a secret key with the `twitch:read` scope ([key scopes](https://developers.donatty.com/en/tokens.md#secret-key-scopes)).
- While a connection with the `twitch` channel is open or a Twitch widget is in use, Donatty receives the events of your Twitch channel, even when your other widgets are closed.
- While Twitch confirms the subscriptions, the source is `STARTING`, usually for up to a minute. The first events arrive a few seconds after the first connection. Events that happened on Twitch earlier are not sent, and `GET /v1/platform-events` doesn't have them either.
- Twitch subscriptions usually arrive 15–25 seconds later than other events: this delay allows Donatty to match Twitch notifications and produce `twitch.subscription`, `twitch.subscription.gift` and `twitch.subscription.received`. A subscription with a message can arrive sooner.
- There are no test Twitch events: `isTest` is always `false`.

## YouTube

- You need a YouTube channel linked to your dashboard and a secret key with the `youtube:read` scope ([key scopes](https://developers.donatty.com/en/tokens.md#secret-key-scopes)).
- YouTube doesn't push these events: while a connection with the `youtube` channel is open or a YouTube widget is in use, Donatty polls YouTube for every YouTube channel linked to your dashboard, even when your other widgets are closed.
- The first poll records the channel's current state. Existing Super Chats, subscribers and members do not produce events or alerts. Only events that occur after this poll are delivered. Events that happened before the first connection are not sent, and `GET /v1/platform-events` doesn't have them either. Polling starts the same way after a Donatty server restart. Events between shutdown and the first poll may be lost.
- Membership events (`youtube.member`) arrive only if the channel has memberships enabled and YouTube provides Donatty with the member list. Otherwise `youtube.member` is in `unavailableTypes`, and the other types still arrive.
- YouTube lists only subscribers whose subscriptions are public, so only those subscribers produce `youtube.subscriber` events. A repeated subscription by the same viewer may not produce a new event.
- There are no test YouTube events: `isTest` is always `false`.

**Delay.** Without an open widget, apps receive Super Chats and Super Stickers after about 30 seconds, new subscribers after about a minute, and membership events after about two minutes. An open widget polls more often. Exact delays are not guaranteed: all streamers share Donatty's daily YouTube quota. As more channels connect, polling intervals increase evenly for everyone. The source remains `READY`, and connections are not rejected because of load.

**Quota.** If Donatty exhausts its daily YouTube quota, the source becomes `QUOTA_LIMITED` until midnight Pacific Time. Polling then resumes from where it stopped. If collection from YouTube is switched off or polling makes no progress, the status is `ERROR`.

For the meaning of each status and what to show the streamer, see [Source status](https://developers.donatty.com/en/sources.md#source-status).
