---
title: "Get Top Viewed"
method: GET
path: "/admin/views/top"
tags: ["internal", "Admin - Analytics"]
---

# Get Top Viewed

`GET /admin/views/top`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/admin/views/top`
- Auth: none declared

Get most viewed companies (all-time).

## Query parameters

- `limit` integer

## Response `200`

Successful Response

- TopViewedCompaniesResponse
  - `companies` CompanyViewStats[], required
    - `cvr` string, required
    - `company_name` string, nullable
    - `total_views` integer, required
    - `views_7d` integer, required
    - `views_30d` integer, required
    - `trending_score` number, required
    - `first_viewed_at` string, date-time, nullable
    - `last_viewed_at` string, date-time, nullable
    - `unique_viewers_today` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
