v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Apps

Retrieve Multiple Apps' Daily Bandwidth Metrics

Retrieve daily bandwidth usage metrics for multiple apps.

post/v2/apps/metrics/bandwidth_daily

Request body

app_idsstring[] required

A list of app IDs to query bandwidth metrics for.

datestring date-time

Optional day to query. Only the date component of the timestamp will be considered. Default: yesterday.

Example request

{
  "app_ids": [
    "4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf",
    "c2a93513-8d9b-4223-9d61-5e7272c81cf5"
  ],
  "date": "2023-01-17T00:00:00Z"
}

Response

A JSON object with a app_bandwidth_usage key

datestring date-time

The date for the metrics data.

Example response

{
  "app_bandwidth_usage": [
    {
      "app_id": "4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf",
      "bandwidth_bytes": "513668"
    }
  ],
  "date": "2023-01-17T00:00:00Z"
}