---
title: "Download through the API | Grafana Cloud documentation"
description: "Download FOCUS datasets through the API"
---

# Download FOCUS datasets through the API

You can download FOCUS datasets through the API endpoint.

## Before you begin

You must [create a Cloud Access Policy](/docs/grafana-cloud/cost-management-and-billing/set-up/focus-api-access/) with the `org-billing-focus:read` permission and generate a token.

## Query the FOCUS API

Replace `<YOUR_TOKEN>` with the token you created in the previous step, and `<YOUR_ORG_NAME>` with your org name.

![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```none
curl -H "Authorization: Bearer <YOUR_TOKEN>" \
  https://grafana.com/api/orgs/<YOUR_ORG_NAME>/focus
```

The response is a CSV file with the following headers:

![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```none
- `content-type: text/csv`
- `content-disposition: attachment; filename=<YOUR_ORG_ID>_focus.csv`
```
