Grafana Cloud

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 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.

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:

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