getNewsCategories API

The getNewsCategories API provides access to news source category and sub-category data.

Pricing is based on the number of monthly queries and fields requested. We offer four packages: Small, Medium, Large, Enterprise. Contact us for additional details.


API Documentation

INPUTS:

sources (optional)
An id or code that identifies a news source. Multiple sources separated by a comma may be used. (list)
Default:
Example: AP,CMTX,USDA

depth (optional)
An integer that will limit how many levels of the category tree to show. By default all levels are returned. (int)
Default: 0
Example: 2


OUTPUTS:

category (always returned)
The category symbol. (string)
subcategories (as requested)
The sub-categories. (array)

STATUS CODE RESPONSES:

200 OK Success
400 Bad Request The request was invalid, please see the message for more information.
500 Internal Server Error Something is not working correctly, please contact support.