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

# Get the top N articles by hits

`GET /v1/distribution/articles/top_n`

Get the top N articles by hits.

## Query parameters

- `limit` integer — Number of top articles to return (page size)
- `page` integer — Page number (1-based; page size = limit)
- `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)
- `domain_names` string[], nullable — List of domain names to filter by

## Response `200`

A list of top articles with their hit counts

- TopNArticlesByHitsResponse
  - `data` TopNArticlesByHitsItem[], required
    - `article_url` string, required
    - `hit_count` integer, required
  - `total_count` integer, required
  - `page` integer
  - `next_page` integer, nullable

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