---
title: "Get the top N domains by hits"
method: GET
path: "/v1/distribution/domains/top_n"
tags: ["distribution"]
---

# Get the top N domains by hits

`GET /v1/distribution/domains/top_n`

Get the top N domains by hits.

## Query parameters

- `limit` integer — Number of top domains to return
- `start_date` integer, nullable — Start date to filter by (timestamp in seconds since epoch)
- `end_date` integer, nullable — End date to filter by (timestamp in seconds since epoch)
- `names` string[], nullable — List of domain names to filter by

## Response `200`

A list of top domains with their hit counts

- TopNDomainsByHitsResponse
  - `data` TopNDomainsByHitsItem[], required
    - `domain` string, required
    - `hit_count` integer, required
  - `total_count` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `405` — Method Not Allowed
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.dev/asknews/apis/asknews-api.md) · [All operations](https://skmtc.dev/asknews/apis/asknews-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/asknews/asknews-api/revisions/dd4286769887/schema)
