---
title: "[Deprecated] List Access Logs"
method: GET
path: "/v1/sites/{id}/access-logs"
tags: ["Reporting"]
---

# [Deprecated] List Access Logs

`GET /v1/sites/{id}/access-logs`

[Deprecated] Use /sites/{id}/access_logs instead

## Path parameters

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

## Query parameters

- `duration` 1 | 6 | 12 | 24 | 48 | 72, required — Number of hours to provide logs for
- `domain` string, required — Domain that received the request
- `ip` string — IP address related to the request
- `cache_status` 'bypass' | 'dynamic' | 'expired' | 'hit' | 'miss' | 'none' | 'stable' — Type of cache interaction
- `uri` string — URI being requested
- `ray_id` string — Unique Request ID
- `device_type` 'desktop' | 'mobile' | 'tablet' — Device Type
- `status_code` string — HTTP Status Code of the Request
- `per_page` integer — How many results to include in each page (default = 10)
- `page` integer — Page of results to include (default = 1)

## Response `200`

OK

- ListAccessLogsResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `metadata` object
    - `page` integer — Page number of the results
    - `page_size` integer — Number of results per page
    - `total` integer — Total number of results
    - `sort` string — Sorting criteria
    - `direction` 'asc' | 'desc' — Sorting direction
  - `result` AccessLogEntry[]
    - `RayID` string — Unique Request ID
    - `EdgeResponseStatus` integer — HTTP status code returned from the Edge
    - `ClientIP` string — IPv4 or IPv6 IP of the client
    - `ClientRequestUserAgent` string — User-Agent of the device making the request
    - `ClientDeviceType` 'desktop' | 'mobile' | 'tablet' — Device Type
    - `ClientRequestURI` string — URI being requested
    - `ClientRequestHost` string — HTTP host requested by the client
    - `OriginResponseStatus` integer — Origin HTTP status code (0 if origin was not contacted)
    - `CacheCacheStatus` 'bypass' | 'dynamic' | 'expired' | 'hit' | 'miss' | 'none' | 'stable' — Type of cache interaction
    - `ClientCountry` string — Lowercase 2-letter country code of the requesting IP
    - `ClientRequestReferer` string — Page that referred the user to this one
    - `ClientRequestMethod` string — HTTP method of the request
    - `timestamp` string — Date and time of the request

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