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

# Errors and limits

> Status codes, the concurrent and daily query limits, and how to retry.

## Error responses

Errors return a JSON body with a human-readable `message`:

```json theme={null}
{ "error": true, "message": "Daily query limit reached: 19800 submitted today + 500 requested exceeds 20000" }
```

Branch on the HTTP status, not on the message text.

## Status codes

| Status | Meaning | What to do |
| - | - | - |
| `202` | Not an error: the job was created or is still `pending`. | Poll `Location` again after `Retry-After` seconds. |
| `400` | Malformed body, invalid query, unknown source/operation, or invalid filter. | Fix the request. The message lists the available catalog for unknown combinations. |
| `401` | The API key is missing, unknown, or revoked. | Use an active key. |
| `402` | Your balance cannot cover the job. Nothing was charged. | Buy credits or send fewer queries. |
| `403` | Your account is suspended, or the source/operation is not enabled for your account. | Check `entitlements` in `GET /api/v2/account`, or contact support. |
| `404` | Unknown job, a job of another account, or a job whose results expired. | Store results within an hour of completion. |
| `409` | CSV export of a job that is still `pending`. | Poll until the job is terminal, then export. |
| `429` | Concurrent or daily query limit reached. Nothing was charged. | See [Handle limits](#handle-limits). |
| `500` | The job could not be recorded. Nothing was charged. | Retry. |
| `502` | Temporarily unavailable. | Retry with backoff. Credits for a refused job creation are released. |
| `503` | The source/operation is temporarily unavailable. Nothing was charged. | Try again later. |

A terminal `200` poll can still contain failed lookups. Check each result's `status` and `errorCode`, as described in [Jobs](https://pricepirate.com/docs/en/api/price-data/jobs.md#poll-a-job).

## Limits

Your account has two query limits. `GET /api/v2/account` shows both with your current headroom.

| Limit | What it counts | When capacity returns |
| - | - | - |
| Concurrent | Queries in your jobs that have not finished and been polled yet | When you poll a job in a terminal status, or one hour after it was created |
| Daily | Queries submitted since 00:00 UTC, whatever their outcome | At 00:00 UTC |

Refunds do not restore daily capacity. Your credit balance is the overall cap.

A single job accepts 1–1,000 queries. Idealo `search-by-term`, `search-by-url`, and `shop-info` accept exactly one query.

## Handle limits

The `429` message names the limit that was reached:

* **Concurrent limit:** poll your pending jobs to completion, then submit again. `X-Concurrency-Remaining` shows how many queries fit.
* **Daily limit:** wait the number of seconds in `Retry-After`, then submit again.

Before a large batch, compare its size with `limits` in [`GET /api/v2/account`](https://pricepirate.com/docs/en/api/price-data/monitoring-usage#account-overview) and split it into jobs that fit.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.