v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Reporting

Retrieve CDN requests report

Show traffic to your site from the edge (including cache hits)

get/v1/reporting/sites/{id}/cdn/requests

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Query parameters

duration'30m' | '1h' | '6h' | '12h' | '24h' | '72h' | '7d' | '30d' required

Duration that the listed data is for (m = minutes, h = hours, d = days)

Example:7d
req_type'edgeOrigin'

Filter to a specific type of requests (edgeOrigin = requests that hit the origin)

Example:edgeOrigin

Response

OK

OR

Example response

{
  "data": {
    "viewer": {
      "__typename": "viewer",
      "zones": [
        {
          "__typename": "zone",
          "data_transferTotals": [
            {
              "__typename": "ZoneHttpRequestsAdaptiveGroups",
              "sum": {
                "__typename": "ZoneHttpRequestsAdaptiveGroupsSum",
                "edgeResponseBytes": 3378484777
              },
              "dimensions": {
                "__typename": "ZoneHttpRequestsAdaptiveGroupsDimensions",
                "ts": "2024-01-01T02:00:00Z"
              }
            }
          ],
          "requestsTotals": [
            {
              "__typename": "ZoneHttpRequestsAdaptiveGroups",
              "sum": {
                "__typename": "ZoneHttpRequestsAdaptiveGroupsSum",
                "edgeResponseBytes": 3378484777
              },
              "dimensions": {
                "__typename": "ZoneHttpRequestsAdaptiveGroupsDimensions",
                "ts": "2024-01-01T02:00:00Z"
              }
            }
          ]
        }
      ]
    }
  },
  "dataTransferTotal": 4009,
  "requestsTotal": 4437320
}