---
title: "Api Analytics View Resources"
method: GET
path: "/api/analytics/view-resources"
tags: ["Admin"]
---

# Api Analytics View Resources

`GET /api/analytics/view-resources`

## Request

- Base URL: `https://www.oxfordledge.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.oxfordledge.com/api/analytics/view-resources`
- Auth: none declared

#64 R4 — resources ranked WITHIN a view family (which glossary term,
which contractor) from the bounded `payload.resource` on page_view.
`days` is capped at 30 because analytics_events IS deleted at 30 days —
a larger window would silently serve the same data under a longer
label.

## Query parameters

- `days` integer

## Response `200`

Successful Response

- AdminViewResourcesResponse: `GET /api/analytics/view-resources` — #64 R4, resources ranked WITHIN a view family (which glossary term, which contractor) from the bounded `payload.resource` field on page_view events. analytics_events-backed, so the window is capped by the 30-day retention; `families` maps view -> ranked rows {resource, views, sessions}, bounded per view at the read.
  - `days` integer, required
  - `families` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api.md) · [All operations](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/revisions/e832a1260f0b?raw)
