---
title: "X API rate limits, headers, and usage credits"
description: "How the X API meters use: 15-minute windows reported in x-rate-limit headers, 429s until reset, and prepaid credits that are billed separately from rate limits."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# X API rate limits, headers, and usage credits

X meters calls in 15-minute windows per endpoint and reports them in x-rate-limit-limit, -remaining, and -reset. Past a limit it answers 429 until the window resets. Billing is separate: access uses prepaid credits deducted per request. (Checked 2026-12-05.)

## Facts

| Fact                    | Official value                                                 | Source                                                                  | Checked    |
| ----------------------- | -------------------------------------------------------------- | ----------------------------------------------------------------------- | ---------- |
| Rate-limit headers      | x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset | [X API Rate Limits](https://docs.x.com/x-api/fundamentals/rate-limits)  | 2026-12-05 |
| Past the limit          | HTTP 429 until the window resets                               | [X API Rate Limits](https://docs.x.com/x-api/fundamentals/rate-limits)  | 2026-12-05 |
| Billing and rate limits | Billed separately from rate limits                             | [X API Rate Limits](https://docs.x.com/x-api/fundamentals/rate-limits)  | 2026-12-05 |
| Usage model             | Prepaid credits deducted per request                           | [About the X API](https://docs.x.com/x-api/getting-started/about-x-api) | 2026-12-05 |

## Where official docs disagree

The official pages read for this page agree on every value above.

## What PubNio enforces

- PubNio spends at most 100 provider requests with a 60-second deadline on one sync run, with 4 requests in flight, and retries a call at most 6 times.
- Each adapter reads `x-rate-limit-remaining`, `x-ratelimit-remaining`, `ratelimit-remaining` and `x-rate-limit-reset`, `x-ratelimit-reset`, `ratelimit-reset` when present, and waits for `retry-after` or `x-rate-limit-reset-after` before a retry.
- PubNio passes X's API fee through at cost from prepaid credit: $0.015 per post, or $0.200 when it contains a link.

## Read the live value

- Read x-rate-limit-remaining and x-rate-limit-reset (Unix seconds) on each response; PubNio's adapter reads the same headers.

## Related errors

- When a provider answers HTTP 429, PubNio records a `rate_limit` provider error, marks it retryable, and keeps the provider's Retry-After as `retryAfterSeconds`. Creating a post can fail with the `ProviderRateLimited` problem (429).
- [X error codes](https://pubnio.com/docs/errors/x/) lists the errors PubNio returns for X and how to fix each.

## Limits

- PubNio cannot add X API credit to your own developer account; it uses its own.

## Sources

- [X API Rate Limits](https://docs.x.com/x-api/fundamentals/rate-limits), checked 2026-12-05

  ```text
  Unix epoch timestamp (seconds) when the 15-minute window resets
  Exceeding limits results in a 429 error until the window resets.
  Rate limits and billing are separate:
  ```

- [About the X API](https://docs.x.com/x-api/getting-started/about-x-api), checked 2026-12-05

  ```text
  Purchase credits, deducted per request
  ```

## Related

- [Posting limits](https://pubnio.com/docs/providers/x/limits/)
- [Scopes and permissions](https://pubnio.com/docs/providers/x/scopes/)
- [App review and access](https://pubnio.com/docs/providers/x/app-review/)
- [Token lifetimes](https://pubnio.com/docs/providers/x/tokens/)
- [Media requirements](https://pubnio.com/docs/providers/x/media/)
- [API versions](https://pubnio.com/docs/providers/x/versioning/)
- [X error codes](https://pubnio.com/docs/errors/x/)
- [Publishing to X](https://pubnio.com/docs/networks/x/)
- [Provider API explainers](https://pubnio.com/docs/providers/)

Source: https://pubnio.com/docs/providers/x/quota/index.mdx
