Anura Docs

Script Integration - Result

Script result values may be obtained by calling the endpoint directly.

Method URL Note
GET, POST http://script.anura.io/result.json HTTPS recommended

Example Request

PHP
<?php
// define parameters
$params = array();
$params["instance"] = yourAssignedInstanceId;
$params["id"] = "yourResponseId";
// create a query string storage array
$query_string = array();
foreach ($params as $key => $value) $query_string[] = "{$key}=".urlencode($value);
// setup and initialize curl
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://script.anura.io/result.json?".implode("&", $query_string));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// get the result
$curl_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"
    ]
}

Result Values

Result Description
good The visitor has passed our tests and appears to be trustworthy.
warning 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 "rule sets returnability" to be enabled. Talk to support about enabling or disabling the rule sets returnability feature.

Please refer to our rule set definitions documentation for more information on these values.