> For the complete documentation index, see [llms.txt](https://docs.extracta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.extracta.ai/data-extraction-api/api-endpoints-data-extraction/7.-get-credits.md).

# 7. Get credits

<mark style="color:blue;">GET</mark> `/credits`

This GET endpoint returns the current number of credits available on your account. Credits are consumed per page processed, where **1 credit = 1 page**.

## Server URL

```
https://api.extracta.ai/api/v1
```

## Headers

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

## Responses

{% tabs %}
{% tab title="200" %}

```json
{
    "status": "ok",
    "credits": 50 // pages
}
```

{% endtab %}
{% endtabs %}
