Code language

Categorize

Categorize the content into a set of predefined categories.

POSThttp://analytics.eventregistry.org/api/v1/categorize

BodyJSON, with Content-Type: application/json. GET with query parameters also works.

Examples

Categorize a text with the DMOZ taxonomy

Categorize the input text using the DMOZ taxonomy.

REST request
Categorize a text with the news taxonomy

Categorize the input text using the news taxonomy.

REST request

How it works

The API call can be used to compute a list of predefined categories that summarize your content. There are two taxonomies of categories that can be used - dmoz and news.

The dmoz taxonomy contains over 5000 categories and can only be used for documents in English language. It is organized into 3 levels and go from more general to more specific topics.

The news taxonomy contains only 8 top level categories commonly used to categorize the news content, but can be applied on any language. The categorization into both taxonomies can work well only on documents of decent size (like news articles).

The iptc subject codes contain over 1,000 categories organized into 3 levels. The taxonomy is maintained by IPTC standards body of the news media.

Parameters

Send them in the JSON body; the same names work as GET query parameters.

Core

3
apiKeyRequired
string
Your API key
textRequired
string
Define a text that you'll like to see categorized.
taxonomyRequired
string
Define the taxonomy in which you'll want to categorize the selected text

Values: dmoz news iptc

Response

Example output is a real response; Output schema lists the fields the endpoint can return.

200 · application/json