# API usage and rate limits

> Stay within request and rate limits and handle any errors those limits may return.

## Limits

| **Feature** | **Limit** |
| --- | --- |
| Pagination | Default page size: **50** records. Maximum page size: **100** records. |
| Expand (depth) | Maximum expansion depth: **2** levels. |
| Filter | Maximum filter-tree size: **64** nodes. |
| Requests to `rest.ripplingapis.com` with an API token | **600** requests per **10 seconds**, counted per token per endpoint path. Each path has its own allowance. |
| Requests to `rest.ripplingapis.com` with no token | **300** requests per **10 seconds**, counted per endpoint path and IP address. |

### Endpoint-specific limits

There are no endpoint-specific limits as of today. When applicable, however, these limits will be documented in the endpoint reference section of the API documentation.

### Rate limit behavior

Cloudflare counts requests over a **10-second** period.

-   With a token, the counter is that token plus the endpoint path.
-   With no token, the counter is the endpoint path plus the client IP address.
-   Only requests over the limit are blocked.
-   Requests that are still under the limit continue to succeed.
-   There is no lockout period and no counter reset. As requests age out of the 10-second period, capacity returns.

### Updates

Rippling may adjust these limits at any time to:

-   Mitigate abuse or denial-of-service attempts.
-   Improve performance or security.
-   Support infrastructure changes.

You can expect to be kept informed of any changes that will result in a material impact.

* * *

## Usage

-   Set `limit` from **1** to **100**. Omit `limit` to receive the default of **50**. Request further records with the cursor from the previous response.
-   Expand at most **2** levels, and only fields the endpoint marks as expandable.
-   Keep each filter small. A long `in (...)` list can pass **64** tree nodes before it looks like 64 comparisons.
-   Stay under **600** requests per **10 seconds** for each path when you send a token. Stay under **300** per **10 seconds** for each path from a given IP when you do not.
-   When a call is rate limited, retry that call with exponential backoff or `Retry-After`. Keep sending calls that are still under the limit.

* * *

## Error handling

| **Scenario** | **Status** | **Response** | **How to resolve** |
| --- | --- | --- | --- |
| Page size out of range | `400` | `code` is `VALIDATION_ERROR`. `message` is `Parameter 'limit' should be in range [1, 100]`. | Set `limit` from **1** to **100** and use the cursor for the next page. |
| Filter too large | `400` | `{"detail": "OData expression too complex."}` | Shorten the filter so its tree is **64** nodes or fewer. |
| Field cannot be expanded | `400` | `Field <name> on DTO <dto> is not an expandable resource DTO` | Remove that field from `expand`. |
| Rate limit exceeded | `429 Too Many Requests` | The request is over the **600** or **300** allowance for its counter. | Retry the blocked call with exponential backoff or `Retry-After`. Other calls under the limit can continue. |

Source: https://developer.rippling.com/documentation/rest-api/essentials/api-limits

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
