List news topics

Changed on

Lists every topic available at GET /api/v1/news/{topic} with its title, category, supported formats, whether a detailed brief is available and its recent story count. Requires an API key; not billed. A feed key can be sent in the key query parameter. Add format=html for a page of ready links.

get/api/v1/news

Request

  • Base URL
    https://api.andiai.com
  • URL
    https://api.andiai.com/api/v1/news
  • Auth
    API key in header x-api-key

Query parameters

keystring

A feed key, for links that cannot send a header. Only feed keys are accepted here; a full API key in a URL returns 403.

format'json' | 'html'

json (default) returns the topics list. html returns the same list as a page of ready links; a feed key is added to every link. Any other value returns the JSON list.

Response

Topics index

hoursinteger required

Window the counts cover, in hours.

countinteger required

Number of topics.

Changes