---
title: "Total requests from all sources"
method: GET
path: "/v1/sites/{id}/reporting/total_requests"
tags: ["Reporting"]
---

# Total requests from all sources

`GET /v1/sites/{id}/reporting/total_requests`

Shows all sources of requests to the site

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## 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)

## Response `200`

OK

- TotalRequestsResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` TotalRequestsResponseResult
    - `totals` object — Totals for each type of request during the time period
      - `totalRequests` CountIntegerMetric
        - `count` integer — Number of requests
        - `countPercentage` number — Percentage of overall requests
      - `edgeRequests` CountIntegerMetric
        - `count` integer — Number of requests
        - `countPercentage` number — Percentage of overall requests
      - `originRequests` CountIntegerMetric
        - `count` integer — Number of requests
        - `countPercentage` number — Percentage of overall requests
      - `wafEvents` CountIntegerMetric
        - `count` integer — Number of requests
        - `countPercentage` number — Percentage of overall requests
    - `graph` object — Datapoints which can be used to draw a graph
      - `totalRequests` GraphDataPoint[]
        - `count` integer
        - `ts` string — Time stamp of the datapoint
      - `edgeRequests` GraphDataPoint[]
        - `count` integer
        - `ts` string — Time stamp of the datapoint
      - `originRequests` GraphDataPoint[]
        - `count` integer
        - `ts` string — Time stamp of the datapoint
      - `wafEvents` GraphDataPoint[]
        - `count` integer
        - `ts` string — Time stamp of the datapoint

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/versions/db0dcbbc5764/schema)
