We use cookies to ensure you get the best experience on our website. Some of these cookies are provided by third parties. You are free to decide which categories you would like to permit and can withdraw this consent at any time (via cookie preferences link on the footer).
By accepting the necessary cookies, you agree to our privacy policy and terms of service, both located in the footer of the website.
Learn more on our terms of service and privacy policy.
Generated from AskNews API 0.29.2.
asknews api distribution domain-hit-shareGet the hit share for a list of domains in a time period.
GET /v1/distribution/stats/hit_sharedomain_hit_shareread-onlyOptions:
| Option | Description |
|---|---|
--domain-names | Domain names to filter by Location: query. Type: array<string>. Required. |
--start-date | Start date to filter by (timestamp in seconds since epoch) Location: query. Type: string. Optional. |
--end-date | End date to filter by (timestamp in seconds since epoch) Location: query. Type: string. Optional. |
--is-publisher | Only calculate hit share for publisher domains Location: query. Type: boolean. Optional. Default: true. |
asknews api distribution top-n-articles-for-domainsGet the top N domain articles by hits.
GET /v1/distribution/articles/top_n_for_domainstop_n_articles_for_domainsread-onlyOptions:
| Option | Description |
|---|---|
--domain-names | Domain names to filter by Location: query. Type: array<string>. Required. |
--limit | Number of top domain articles to return (page size) Location: query. Type: integer. Optional. Default: 10. Minimum: 1. Maximum: 100. |
--page | Page number (1-based; page size = limit) Location: query. Type: integer. Optional. Default: 1. Minimum: 1. |
--start-date | Start date to filter by (timestamp in seconds since epoch) Location: query. Type: string. Optional. |
--end-date | End date to filter by (timestamp in seconds since epoch) Location: query. Type: string. Optional. |
All commands support --output human|table|json|jsonl|yaml, --json, API/auth URL
overrides, request timeout, and color control. Result data is written to stdout; diagnostics
are written to stderr.