# API Quota Information

YouTube Data API v3 has a **daily quota of 10,000 units** (free tier).

#### StreamLink Usage Breakdown

| Operation                         | Cost      | When              | Total        |
| --------------------------------- | --------- | ----------------- | ------------ |
| Initial search (find live stream) | 100 units | Once per connect  | 100          |
| Video details (get chat ID)       | 1 unit    | Once per connect  | 1            |
| Chat message polling              | 3 units   | Every \~5 seconds | \~2,160/hour |

**Total per connection:** 101 units\
**Total per hour streaming:** \~2,261 units\
**Maximum streaming time per day:** \~4.4 hours (with 10,000 unit quota)

#### Quota Management Tips

1. **Always disconnect when not streaming:**

```
   /sl youtube disconnect
```

2. **Monitor your usage:**
   * Go to [Google Cloud Console](https://console.cloud.google.com/)
   * Navigate to APIs & Services → Dashboard
   * Click "YouTube Data API v3"
   * View quota usage
3. **Request a quota increase (if needed):**
   * In Google Cloud Console, go to APIs & Services → Quotas
   * Find "Queries per day"
   * Click "Edit Quotas"
   * Fill out the request form

{% hint style="warning" %}
**Quota Exceeded?** If you hit the daily limit, you'll need to wait until midnight PST for the quota to reset, or request an increase from Google.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kentatetsu.gitbook.io/streamlink/guides/youtube-setup-guide/api-quota-information.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
