# Read tenant proxy traffic usage for the last 30 days (/api-reference/data-api/getDataUsage)

Returns measured proxy traffic and post-paid token debits for the authenticated tenant, grouped by the requested network type. A measurement-unavailable request is counted explicitly and is never represented as measured zero bytes. Provider and internal routing details are never part of this public response.

## GET /api/v1/data/usage

Read tenant proxy traffic usage for the last 30 days

- Operation ID: `getDataUsage`

- Tags: `Data API`

Returns measured proxy traffic and post-paid token debits for the authenticated tenant, grouped by the requested network type. A measurement-unavailable request is counted explicitly and is never represented as measured zero bytes. Provider and internal routing details are never part of this public response.

### Security

- Required scope: `requests:read`

- `ApiKey` (apiKey, X-API-Key)

- `ApiKeyBearer` (http)

### Responses

- **200** — Tenant proxy traffic usage aggregate. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/ProxyTrafficUsageResponse

  - Example: `{
  "period_start": "2026-07-23T12:00:00.000Z",
  "period_end": "2026-08-22T12:00:00.000Z",
  "period_days": 30,
  "proxy_traffic": {
    "request_bytes": 1200,
    "response_bytes": 58300,
    "total_bytes": 59500,
    "charged_tokens": 8,
    "charged_jobs": 2,
    "measurement_unavailable_jobs": 0,
    "by_proxy_type": [
      {
        "proxy_type": "residential",
        "request_bytes": 1200,
        "response_bytes": 58300,
        "total_bytes": 59500,
        "charged_tokens": 8,
        "charged_jobs": 2,
        "measurement_unavailable_jobs": 0
      }
    ]
  }
}`

### Referenced OpenAPI components

#### `#/components/schemas/ProxyTrafficUsageResponse`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "period_start",
    "period_end",
    "period_days",
    "proxy_traffic"
  ],
  "properties": {
    "period_start": {
      "type": "string",
      "format": "date-time"
    },
    "period_end": {
      "type": "string",
      "format": "date-time"
    },
    "period_days": {
      "type": "integer",
      "const": 30
    },
    "proxy_traffic": {
      "$ref": "#/components/schemas/ProxyTrafficUsageAggregate"
    }
  }
}

```

#### `#/components/schemas/ProxyTrafficUsageAggregate`

```json

{
  "allOf": [
    {
      "$ref": "#/components/schemas/ProxyTrafficUsageTotals"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "by_proxy_type"
      ],
      "properties": {
        "by_proxy_type": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ProxyTrafficUsageByProxyType"
          }
        }
      }
    }
  ]
}

```

#### `#/components/schemas/ProxyTrafficUsageTotals`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "request_bytes",
    "response_bytes",
    "total_bytes",
    "charged_tokens",
    "charged_jobs",
    "measurement_unavailable_jobs"
  ],
  "properties": {
    "request_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "response_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "total_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "charged_tokens": {
      "type": "integer",
      "minimum": 0
    },
    "charged_jobs": {
      "type": "integer",
      "minimum": 0
    },
    "measurement_unavailable_jobs": {
      "type": "integer",
      "minimum": 0
    }
  }
}

```

#### `#/components/schemas/ProxyTrafficUsageByProxyType`

```json

{
  "allOf": [
    {
      "$ref": "#/components/schemas/ProxyTrafficUsageTotals"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "proxy_type"
      ],
      "properties": {
        "proxy_type": {
          "$ref": "#/components/schemas/ProxyNetworkType"
        }
      }
    }
  ]
}

```

#### `#/components/schemas/ProxyNetworkType`

```json

{
  "type": "string",
  "enum": [
    "datacenter",
    "residential",
    "premium"
  ]
}

```

### Complete operation object

```json

{
  "operationId": "getDataUsage",
  "tags": [
    "Data API"
  ],
  "summary": "Read tenant proxy traffic usage for the last 30 days",
  "description": "Returns measured proxy traffic and post-paid token debits for the authenticated tenant, grouped by the requested network type. A measurement-unavailable request is counted explicitly and is never represented as measured zero bytes. Provider and internal routing details are never part of this public response.",
  "x-required-scope": "requests:read",
  "x-mcp-name": "data_get_usage",
  "x-mcp-annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "security": [
    {
      "ApiKey": []
    },
    {
      "ApiKeyBearer": []
    }
  ],
  "responses": {
    "200": {
      "description": "Tenant proxy traffic usage aggregate. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ProxyTrafficUsageResponse"
          },
          "example": {
            "period_start": "2026-07-23T12:00:00.000Z",
            "period_end": "2026-08-22T12:00:00.000Z",
            "period_days": 30,
            "proxy_traffic": {
              "request_bytes": 1200,
              "response_bytes": 58300,
              "total_bytes": 59500,
              "charged_tokens": 8,
              "charged_jobs": 2,
              "measurement_unavailable_jobs": 0,
              "by_proxy_type": [
                {
                  "proxy_type": "residential",
                  "request_bytes": 1200,
                  "response_bytes": 58300,
                  "total_bytes": 59500,
                  "charged_tokens": 8,
                  "charged_jobs": 2,
                  "measurement_unavailable_jobs": 0
                }
              ]
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.runharvester.com",
      "description": "RunHarvester public API"
    }
  ]
}

```