distribution
Get the top N articles by metric for domains
Changed onGet the top N domain articles ranked by the selected metric.
get/v1/distribution/articles/top_n_for_domains
Request
- Base URLhttps://api.asknews.app
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
domain_namesstring[] required
Domain names to filter by
limitinteger
Number of top domain articles to return (page size)
pageinteger
Page number (1-based; page size = limit)
start_dateinteger nullable
Start date to filter by (timestamp in seconds since epoch)
end_dateinteger nullable
End date to filter by (timestamp in seconds since epoch)
metric'surface' | 'citation' | 'grounded'
Metric used to rank and count the returned articles
Response
A list of top domain articles with raw counts for the selected ranking metric
Changes
- info
added the new optional
queryrequest parametermetric
- info