The output contains information about the status of the request and about the categories in which the text has been classified. The information provided is the same for the different output formats and the naming convention used for all fields is lowercase_separated_by_underscore.
These are the fields included in the response document.
Name | Description |
---|---|
status |
Contains information about the extraction process and whether it has finished successfully. It is formed by a status code ( You can find all the possible status codes returned by the API with an explanation and tips on how to manage them in our error codes catalog. A request is any HTTP request done to the API to analyze less than 500 words. If the text sent is longer than that, then it will be considered that more than a request is made, more specifically, as many requests as we would need if the text were divided in chunks of 500 words. For instance, an HTTP request with 1013 words, will count as three requests, so 3 Did you know...?Only the successful requests to the API will consume credits. In other words, the |
category_list |
List of categories in which the input text is classified. Each category (
|
The format in which this information will be shown will be in JSON.
{ "status": { "code": "0", "msg": "OK", "credits": "5" }, "category_list": [ { "code": "01021001", "label": "arts, culture and entertainment - entertainment (general) - entertainment award", "abs_relevance": "0.48236102", "relevance": "100" }, { "code": "08006000", "label": "human interest - award and prize", "abs_relevance": "0.28744578", "relevance": "60" } ] }