---
title: "Credit packs on sale"
method: GET
path: "/v1/billing/packs"
tags: ["billing"]
---

# Credit packs on sale

`GET /v1/billing/packs`

## Request

- Base URL: `https://api.xdataapi.io`
- URL: `https://api.xdataapi.io/v1/billing/packs`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (authorization code, authorization URL `https://xdataapi.io/oauth/authorize`, token URL `https://xdataapi.io/api/oauth/token`, scopes: `read`)

## Response `200`

OK

- object
  - `data` object[]
    - `name` string
    - `usd` integer
    - `credits` integer
    - `buyable` boolean
  - `rate_limits` object[]: Requests per second by the total paid over the account's life. The limit only goes up.
    - `paid_usd` integer
    - `requests_per_second` integer

## Other responses

- `401`: Missing or invalid key. Free.
- `429`: Per-account rate limit. Free. Retry after `Retry-After` seconds.
- `500`: A fault on our side. Free. Quote `request_id` if it persists.

---

[API](https://skmtc.dev/xdataapi/apis/xdataapi-io-api.md) · [All operations](https://skmtc.dev/xdataapi/apis/xdataapi-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xdataapi/apis/xdataapi-io-api/revisions/90cd2c0db55a?raw)
