---
title: "Get Trending"
method: GET
path: "/admin/views/trending"
tags: ["internal", "Admin - Analytics"]
---

# Get Trending

`GET /admin/views/trending`

## 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/trending`
- Auth: none declared

Get trending companies (highest trending score in last 7 days).

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