The Verity REST API URL is:
Verity API processes HTTPS GET requests specifying a properly-formed page URL in the following format:
https://verity-api.gumgum.com/page/classify?pageUrl=<WEBPAGE_URL>
The URL specified in <WEBPAGE_URL>
must meet the following requirements:
Start with
http://
orhttps://
.Have a properly URL-encoded address.
Any request parameter values must be properly URL-encoded.
Example Page Request
Classifying the page with the Verity API is a simple two-step process. This example shows a request to analyze a web page, including its text and any prominent image detected. The example page URL is:
https://aragonresearch.com/cisco-google-and-zoom-enhance-free-meetings-to-assist-with-coronavirus
Step 1 – Submit a GET page classification request
To start the page analysis, submit a GET request via curl:
curl -H 'x-api-key: <YOUR_API_KEY_HERE>’ `https://verity-api.gumgum.com/page/classify?pageUrl=https%3A%2F%2Faragonresearch.com%2Fcisco-google-and-zoom-enhance-free-meetings-to-assist-with-coronavirus%2F`
Verity API returns a JSON response with Content-Type: application/json; charset=UTF-8
showing the request has the following status:
{ "dataAvailable": false, "status": "INITIATED", "pageUrl": "https://aragonresearch.com/cisco-google-and-zoom-enhance-free-meetings-to-assist-with-coronavirus/", "uuid": "deb59fc2-b8ef-4dbe-ab64-6a1950a45a76" }
For a list of supported status messages, refer to Application Status Codes.
Step 2 – Poll the endpoint
Poll the same endpoint specified in Step 1. Within a short period, once analysis of the page and its associated image is complete, a status change occurs and the returned message updates to:
{ "dataAvailable": true, "status": "PROCESSED", "pageUrl": "https://aragonresearch.com/cisco-google-and-zoom-enhance-free-meetings-to-assist-with-coronavirus", "uuid": "deb59fc2-b8ef-4dbe-ab64-6a1950a45a76", "verityData": {...} }
Once the status changes to PROCESSED, the JSON page classification results are returned in the response message data payload.
Note: You can also specify a callBackUrl in a GET request. The JSON classification results are then returned only to the callBackUrl, and not the response message data payload. See Integrating a Webhook for an example GET request with a callBackUrl.
Example Page JSON Response Body
The JSON response details the complete brand safety, keyword, and categorization analysis data for the page and its any prominent image detected. See JSON Response for details about the fields included in the response.
{ "dataAvailable": true, "status": "PROCESSED", "pageUrl": "https://aragonresearch.com/cisco-google-and-zoom-enhance-free-meetings-to-assist-with-coronavirus/", "uuid": "deb59fc2-b8ef-4dbe-ab64-6a1950a45a76", "verityData": { "languageCode": "en", "iab": { "v1": [ { "id": "IAB19", "category": "Technology & Computing", "score": 0.52 }, { "id": "IAB7", "category": "Health & Fitness", "score": 0.13 }, { "id": "IAB19-18", "category": "Internet Technology", "score": 0.11 }, { "id": "IAB19-8", "category": "Computer Networking", "score": 0.1 }, { "id": "IAB7-37", "category": "Psychology/Psychiatry", "score": 0.09 } ], "v2": [ { "id": "596", "category": "Technology & Computing", "score": 0.54 }, { "id": "379", "category": "News and Politics", "score": 0.19 }, { "id": "600", "category": "Computer Networking", "score": 0.08, "parent": { "id": "599", "category": "Computing", "parent": { "id": "596", "category": "Technology & Computing" } } }, { "id": "635", "category": "Smartphones", "score": 0.07, "parent": { "id": "632", "category": "Consumer Electronics", "parent": { "id": "596", "category": "Technology & Computing" } } }, { "id": "388", "category": "Political Issues", "score": 0.07, "parent": { "id": "386", "category": "Politics", "parent": { "id": "379", "category": "News and Politics" } } } ] }, "keywords": [ "covid", "coronavirus", "covid-19", "pandemic", "cisco", "logmein", "free webex cisco", "zoom", "google hangouts", "google", "logmein offers free remote", "cisco makes", "zoom removes", "large coronavirus outbreak", "google offers premium features", "aragon", "enhance", "online meetings", "web meetings" ], "safe": false, "threats": [ { "id": "GGT9", "category": "Medical", "confidence": "HIGH" } ], "sentiments": [ { "sentiment": "neutral", "score": 0.73 }, { "sentiment": "positive", "score": 0.24 }, { "sentiment": "negative", "score": 0.03 } ], "processedAt": "2021-02-09T22:13:52.864Z" } }