# Get Accounting Tax CSV

Downloads accounting records for a coldkey and token over a date range as a CSV report.

_Source: https://beta.taostats.io/docs/api-reference/accounting/get-accounting-tax-csv_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/accounting/tax_csv/v1
```

Requires an API key in the `Authorization` header.

Downloads accounting records for a coldkey and token over a date range as a CSV report. Select the wallet, token and reporting dates with the query parameters.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Examples

Download a wallet's TAO tax report for Q1 2025 as CSV

```text
https://api.taostats.io/api/accounting/tax_csv/v1?token=TAO&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n&date_start=2025-01-01&date_end=2025-03-31
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/accounting/tax_csv/v1?token=TAO&date_start=2025-01-01&date_end=2025-03-31&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/accounting/tax_csv/v1?token=TAO&date_start=2025-01-01&date_end=2025-03-31&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/accounting/tax_csv/v1?token=TAO&date_start=2025-01-01&date_end=2025-03-31&coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `token` | query | `string` | Yes | TAO or SN1, SN2, etc. |
| `date_start` | query | `string (date)` | Yes | Start of date range in YYYY-MM-DD format (inclusive) |
| `date_end` | query | `string (date)` | Yes | End of date range in YYYY-MM-DD format (inclusive). Must be within 12 calendar months of date_start. |
| `coldkey` | query | `string` | Yes | SS58 or hex format |

## Responses

| Status | Meaning |
| --- | --- |
| `200` | Tax report retrieved successfully |
| `400` | Bad request |
| `404` | Tax report not found |
| `500` | Internal server error |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
