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 depend on the value of the of
parameter.
{ "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" } ] }
<?xml version="1.0" encoding="utf-8"?> <response> <status code="0" credits="5">OK</status> <category_list> <category> <code> <![CDATA[01021001]]> </code> <label> <![CDATA[arts, culture and entertainment - entertainment (general) - entertainment award]]> </label> <abs_relevance>0.48236102</abs_relevance> <relevance>100</relevance> </category> <category> <code> <![CDATA[08006000]]> </code> <label> <![CDATA[human interest - award and prize]]> </label> <abs_relevance>0.28744578</abs_relevance> <relevance>60</relevance> </category> </category_list> </response>