---
title: "Get the top N articles by hits for domain with daily breakdown"
method: GET
path: "/v1/distribution/articles/top_n_for_domain_timeseries"
tags: ["distribution"]
---

# Get the top N articles by hits for domain with daily breakdown

`GET /v1/distribution/articles/top_n_for_domain_timeseries`

## Request

- Base URL: `https://api.asknews.app`
- URL: `https://api.asknews.app/v1/distribution/articles/top_n_for_domain_timeseries`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/asknews/apis/asknews-api/docs/v1/distribution/articles/top_n_for_domain_timeseries/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the top N domain articles by hits with daily breakdown.

## Query parameters

- `domain_name` string, required: Domain name to filter by
- `limit` integer: Number of top domain articles to return per day
- `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)

## Response `200`

A list of top domain articles with their hit counts grouped by day

- TopNArticlesTimeseriesResponse
  - `data` TopNArticlesTimeseriesDayItem[], required
    - `day` string, required
    - `articles` TopNArticlesTimeseriesItem[], required
      - `article_url` string, required
      - `article_id` string, nullable
      - `hit_count` integer, required
    - `total_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.dev/asknews/apis/asknews-api/revisions/6513c99e2917?raw)
