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

# How Calls Are Counted

How the GWI Platform API counts calls against your allowance: one request equals one call, failed requests are free, and crosstabs count as one.

**On this page**

* [The rule](#the-rule)
* [What counts as a call](#what-counts)
* [What does not count](#what-does-not-count)
* [Examples](#examples)
* [Crosstabs](#crosstabs)
* [Rate limits are separate](#rate-limits)
* [Where to see your usage](#usage)

***

### The rule

**One request is one call.**

Every successful HTTP request your application sends to the Platform API counts as exactly one call against your allowance. This is true for every endpoint, and it does not change with the size of the request or the volume of data returned.

| Term | Definition |
| :- | :- |
| **Request** | Any HTTP request your application sends to the Platform API, whether it succeeds or fails. |
| **Call** | A request that returned successfully. This is the unit metered against your allowance. |
| **Allowance** | The number of calls available to your account over your contract period. |

Requests that fail are not counted as calls. See [What does not count](#what-does-not-count).

***

### What counts as a call

**Every endpoint is counted equally.** There are no free endpoints and none cost more than any other,  a taxonomy stream, a stats query, an audience lookup and a token validation each count as one call. Any successful request counts, including:

* **Requests that return no results.** A successful query with no matching data is still a call.
* **Large responses.** Response size makes no difference. A full taxonomy stream and a single audience lookup are one call each.
* **Each page of a paginated response.** Paginated endpoints such as `POST /v2/saved/audiences/filter` return one page per request, so ten pages is ten calls.
* **Each request in a loop or batch.** If your integration sends 500 requests, that is 500 calls, however they were orchestrated.
* **Repeat requests.** A request you send twice counts twice, even if the response is identical.

***

### What does not count

**Requests that result in an error are not counted.** If a request fails, it does not consume a call, so a malformed query, an unauthorised request or a server-side failure costs you nothing.

| Request | Why it is not counted |
| :- | :- |
| Any request returning a `4xx` error | Failed request. Includes `400 Bad Request`, `401 Unauthorized`, `403 Forbidden`, `404 Not Found`, `422 Unprocessable Entity` and `429 Too Many Requests`. |
| Any request returning a `5xx` error | Server-side failure. |
| Requests with a missing or invalid token | Rejected before reaching the API. |

This means you can retry a failed request without penalty, and you are never charged for a request that returned no usable data.

A failed response is the only exclusion. There is no endpoint that is exempt from counting when it succeeds.

***

### Examples

**Example 1: A stats query**

```bash theme={null}
curl -X POST "https://api.globalwebindex.com/v2/query/stats" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d @query.json
```

One request. **1 call.**

**Example 2: A large crosstab**

A bulk crosstab with 40 rows and 20 columns returns 800 cells in a single request.

One request. **1 call.**

**Example 3: Paging through saved audiences**

An account with 250 saved audiences, retrieved 50 at a time, takes 5 requests.

Five requests. **5 calls.**

**Example 4: A malformed query, then a corrected one**

A stats query with an invalid question code returns `400 Bad Request`. You fix the code and send it again, and it succeeds.

Two requests, one of which failed. **1 call.**

***

### Crosstabs

Crosstabs are counted like everything else: one request, one call. A 2 × 2 crosstab and a 40 × 20 crosstab each count as a single call.

> [!NOTE]
>
> **This changed.** Crosstab requests were previously counted per cell, so that each row × column intersection consumed one call,  a 2×2 crosstab counted as 4 calls, and a 40 × 20 crosstab as 800. That is no longer the case. Both crosstab endpoints, `POST /v2/query/crosstab` and `POST /v2/query/intersection`, now count as one call per request. If you built your integration around the previous model, batching cells, or capping table sizes to control call consumption, you no longer need to. A single bulk crosstab request is the cheapest way to retrieve a table.

***

### Rate limits are separate

Call counting measures how much of your allowance you have used. Rate limiting controls how quickly you may send requests. They are independent.

See [Rules of our API](https://api.globalwebindex.com/docs/platform-api/rules-of-our-api.md) for the `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` and `Retry-After` headers your client should respect. If you exceed the limit the API returns `429 Too Many Requests`; implement a retry with exponential backoff.

***

### Where to see your usage

To check your current consumption or discuss your allowance, contact your GWI account manager.
