# Retrieve daily usage info for either an account or an organization

> [!WARNING] Warning: Experimental API
> Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

## Query parameters

**`year`**

- Type: string
- Example: `"2024"`

Year of the daily usages to retrieve. Defaults to current year.

**`month`**

- Type: string
- Example: `"2"`

Monthof the daily usages to retrieve. Defaults to current month.

## Returns

Returns an array of resource objects of type [daily\_usage](https://www.datocms.com/docs/content-management-api/resources/daily-usage.md)

## Examples

###### Example Basic example

Code

```javascript
import { buildClient } from "@datocms/dashboard-client";

async function run() {
  const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });

  const dailyUsages = await client.dailyUsages.list();

  for (const dailyUsage of dailyUsages) {
    // Check the 'Returned output' tab for the result ☝️
    console.log(dailyUsage);
  }
}

run();
```

Returned output

```javascript
{
  id: "412",
  date: "",
  cda_api_calls: 20,
  cma_api_calls: 20,
  cda_traffic_bytes: 20,
  cma_traffic_bytes: 20,
  assets_traffic_bytes: 20,
  mux_delivered_seconds: 20,
  mux_high_resolution_delivered_seconds: 20,
  mux_encoded_seconds: 20,
  smart_tags_detections: 20,
  site: { type: "site", id: "155" },
}
```

## Related content in "Dashboard API"

- [Account](https://www.datocms.com/docs/dashboard-api/resources/account.md)
- [Session](https://www.datocms.com/docs/dashboard-api/resources/session.md)
- [OAuth application](https://www.datocms.com/docs/dashboard-api/resources/oauth-application.md)
- [Organization](https://www.datocms.com/docs/dashboard-api/resources/organization.md)
- [Organization role](https://www.datocms.com/docs/dashboard-api/resources/organization-role.md)
- [Organization invitation](https://www.datocms.com/docs/dashboard-api/resources/organization-invitation.md)
- [Organization membership](https://www.datocms.com/docs/dashboard-api/resources/organization-membership.md)
- [Organization mandate request](https://www.datocms.com/docs/dashboard-api/resources/organization-mandate-request.md)
- [Organization mandate](https://www.datocms.com/docs/dashboard-api/resources/organization-mandate.md)
- [Project](https://www.datocms.com/docs/dashboard-api/resources/site.md)
- [Site invitation](https://www.datocms.com/docs/dashboard-api/resources/site-invitation.md)
- [Site transfer request](https://www.datocms.com/docs/dashboard-api/resources/site-transfer.md)
- [Account subscription](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-subscription.md)
- [Plan](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-plan.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/per-owner-pricing-billing-profile.md)
- [Invoice](https://www.datocms.com/docs/dashboard-api/resources/invoice.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/resource-usage.md)
- [Daily Usage](https://www.datocms.com/docs/dashboard-api/resources/daily-usage.md)
- [Retrieve daily usage info for either an account or an organization](https://www.datocms.com/docs/dashboard-api/resources/daily-usage/instances.md)
- [Subscription limit](https://www.datocms.com/docs/dashboard-api/resources/subscription-limit.md)
- [Subscription feature](https://www.datocms.com/docs/dashboard-api/resources/subscription-feature.md)
- [Job result](https://www.datocms.com/docs/dashboard-api/resources/job-result.md)
- [Per-project subscription](https://www.datocms.com/docs/dashboard-api/resources/site-subscription.md)
- [Plan](https://www.datocms.com/docs/dashboard-api/resources/site-plan.md)
- [Billing profile](https://www.datocms.com/docs/dashboard-api/resources/per-site-pricing-billing-profile.md)