Script Integration - Result
Script result values may be obtained by calling the endpoint directly.
Method | URL | Note |
---|---|---|
GET, POST | https://script.anura.io/result.json | HTTPS recommended |
Example Request
<?php
// define parameters
$params = array();
$params["instance"] = yourAssignedInstanceId;
$params["id"] = "yourResponseId";
// setup and initialize curl
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://script.anura.io/result.json?".http_build_query($params));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// perform the request
$response = curl_exec($curl);
// close the curl connection
curl_close($curl);
// continue with your custom result handler...
?>
Parameters
Required | Type | Description | Note |
---|---|---|---|
instance | integer | Your instance ID. | |
id | string | The response ID that is used to request the result from Anura's servers. |
Optional | Type | Description | Note |
---|---|---|---|
exid | string | The unique external tracking ID, declared by you, that is used to query the result from Anura's servers. | Send "exid" instead of "id" when utilizing the exid parameter. |
While we strive to have results available within milliseconds, in worst case scenarios, some results may take longer. Therefore, it is okay to perform multiple queries for a response ID that is not found.
Response ID results will be available for 15 minutes and are removed immediately after a successfully query.
Example Response
{
"result": "bad",
"mobile": 1,
"adblocker": 0,
"rule_sets": [
"UE",
"SP"
],
"invalid_traffic_type": "SIVT"
}
Result Values
Result | Description |
---|---|
good | The visitor has passed our tests and appears to be trustworthy. |
warn | There are aspects about the visitor that raise concerns. However, we can not say for certain they are bad. It is your decision how to interpret this value. |
bad | The visitor has failed our testing and should be considered untrustworthy. |
Please refer to our script result definitions documentation for more information on these values.
Rule Set Values
Result | Description |
---|---|
DI | Data Integrity |
UE | User Environment |
DC | Data Center |
TO | Traffic Origin |
IP | IP Integrity |
SP | Spoofing |
WC | Web Crawler |
The "rule_sets" array requires "return rule sets" to be enabled. Talk to support about enabling or disabling the return rule sets feature.
The "invalid_traffic_type" string requires "return invalid traffic type" to be enabled. Talk to support about enabling or disabling the return invalid traffic type feature.
Please refer to our rule set definitions documentation for more information on these values.