---
title: "Get Public Stats"
method: GET
path: "/v1/stats"
tags: ["internal"]
---

# Get Public Stats

`GET /v1/stats`

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

Get public statistics about the company database.

Returns total company counts, recent registrations, and top industries/municipalities.
Stats are pre-computed by the worker and cached in Redis for instant loading.

## Response `200`

Successful Response

- PublicStatsResponse: Public statistics response.
  - `total_companies` integer, required
  - `active_companies` integer, required
  - `municipalities_count` integer, required
  - `last_updated` string, nullable
  - `recent_registrations` RecentCompany[], required
    - `name` string, required
    - `cvr` string, required
    - `date` string, required
    - `industry` string, nullable
    - `municipality` string, nullable
  - `top_industries` AppRoutersPublicTopIndustry[], required
    - `code` string, required
    - `name` string, required
    - `name_en` string, nullable
    - `count` integer, required
  - `top_municipalities` TopMunicipality[], required
    - `code` string, required
    - `name` string, required
    - `count` integer, required
  - `financial_statements_count` integer
  - `participants_count` integer
  - `properties_count` integer
  - `production_units_count` integer
  - `credit_scores_count` integer

---

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