API Endpoint package
API endpoint
https://app.trustservista.com/api/rest/v2/classification/iab
https://app.trustservista.com/api/rest/v2/classification/iptc
Supported Languages
English (native).
Russian, Arabic, Spanish, French, Chinese (with automated translation).
Description
Given an article URL or raw text, the endpoint will return the content classification according to IAB v2 and IPTC Newscodes content taxonomies.
Sample cURL call
curl -X POST \ -H "X-TRUS-API-Key: your_api_key" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H "Cache-Control: no-cache" \ -d '{"content": "EMPTY", "contentUri": "https://www.cnbc.com/2018/05/10/apple-drops-plans-for-1-billion-data-center-in-ireland.html", "language": "eng"}' \ "https://trust.servista.eu/api/rest/v2/classification/iab"
Sample JSON response
{ "classify": { "classes": [ { "type": "Business", "score": 0.2821761667728424 } ] }, "content": [...]" }