---
title: "Get Requests Per Day"
method: GET
path: "/api/v1/admin/stats/requests-per-day"
tags: ["Admin"]
---

# Get Requests Per Day

`GET /api/v1/admin/stats/requests-per-day`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/admin/stats/requests-per-day`
- Auth: none declared

Fetch counts of API requests per day for the last X days.
Results are cached for 5 minutes to reduce database load.

## Query parameters

- `endpoint` string, nullable
- `days` integer

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- RequestPerDay[]
  - `date` string, required
  - `count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
