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

# Credits and errors

> Plan your requests, inspect usage, and handle errors predictably.

## How requests are charged

Successful data requests are charged in credits. Before a request runs, Vexqo reserves its maximum possible cost, then releases unused credits when it finishes. Failed requests are not charged. A successful empty search still costs at least one credit.

`GET /account` returns your account’s balance, usage, limits, and active credit costs. Use those values as the source of truth for your account.

| Request | Standard credit cost |
| - | - |
| Meta ads search | 1 per 10 ads returned, rounded up; minimum 1. |
| Advertiser information with search | No additional credits. |
| One ad’s details | 2. |
| Product enrichment | 1 additional credit per destination link that responds, including non-product pages. |
| eBay listing, `auto` or `http` | 4. |
| eBay listing, explicit `mode=browser` | 40. |
| Store listing HTML | 1 additional credit. |
| eBay search | 1 per 15 results returned, rounded up; minimum 1. |
| Advertiser page capture | 10. |

For example, a search returning 23 Meta ads costs 3 credits before optional product enrichment. A request with `include_products=true` can reserve credits for up to 100 destination links in addition to the search. Keep enough available balance for that reservation.

## Response headers

| Header | Meaning |
| - | - |
| `X-Credits-Used` | Credits charged for the completed metered request. |
| `X-Credits-Remaining` | Balance after settlement. |
| `X-Request-Id` | Request identifier for support, when provided. |
| `Retry-After` | Seconds to wait before retrying, when provided. |

## Rate and concurrency limits

Limits apply to requests per minute, simultaneous requests, and any daily credit cap on your account. Check `/account` for your current values. Use a bounded request queue and honor `Retry-After`.

## Handle errors

| Status | Meaning | Next step |
| - | - | - |
| `401` | Missing or invalid API key. | Check the authentication header. |
| `402` | Insufficient available credits. | Check the balance and the maximum reservation. |
| `403` | Account suspended. | Contact support. |
| `404` | Requested resource not found. | Check the ID and the error detail. |
| `410` | Search cursor expired or unavailable. | Restart the search and deduplicate results. |
| `422` | Invalid parameters or unsupported collection result. | Read the response detail; correct the request. |
| `429` | Rate, concurrency, or daily cap reached; can also follow repeated invalid keys. | Honor `Retry-After` and inspect account limits. |
| `502` | Source retrieval or parsing failed. | Retry a small number of times with backoff. |
| `503` | Temporary capacity or service unavailable. | Honor `Retry-After` when present. |
| `504` | Collection exceeded its server time limit. | Retry with backoff; contact support if persistent. |

Errors commonly include a `detail` field. Validation errors can return a structured list rather than a string.

```json theme={null}
{"detail": "Give a search text as q, a page_id, or both"}
```

## Retry deliberately

Retry transient failures with exponential backoff and jitter, with a small fixed attempt limit. Do not repeatedly retry invalid parameters, invalid keys, or insufficient credits.

If your client times out or loses the connection, the server may still complete the request and charge it. A retry is a new request and may incur another charge. Log your request parameters, timestamp, status, and request ID; never log your API key.

Send persistent failures to [hello@vexqo.dev](mailto:hello@vexqo.dev) with those details.


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