Skip to main content
GET
/
drn
/
{visitorId}
Returns device reputation information of a visitor.
curl --request GET \
  --url https://drn-api.fpjs.io/drn/{visitorId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-API-Version: <x-api-version>'
import requests

url = "https://drn-api.fpjs.io/drn/{visitorId}"

headers = {
    "X-API-Version": "<x-api-version>",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
  method: 'GET',
  headers: {'X-API-Version': '<x-api-version>', Authorization: 'Bearer <token>'}
};

fetch('https://drn-api.fpjs.io/drn/{visitorId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://drn-api.fpjs.io/drn/{visitorId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>",
    "X-API-Version: <x-api-version>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://drn-api.fpjs.io/drn/{visitorId}"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Version", "<x-api-version>")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://drn-api.fpjs.io/drn/{visitorId}")
  .header("X-API-Version", "<x-api-version>")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://drn-api.fpjs.io/drn/{visitorId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Version"] = '<x-api-version>'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "regionalActivity": {
      "startDate": "2023-12-25",
      "endDate": "2023-12-25",
      "countries": [
        {
          "code": "<string>",
          "detectors": [
            {
              "activityPercentage": 123
            }
          ]
        }
      ]
    },
    "suspectScore": {
      "startDate": "2023-12-25",
      "endDate": "2023-12-25",
      "minimum": {
        "value": 123,
        "signals": {
          "vpn": {
            "timezoneMismatch": 123,
            "publicVPN": 123,
            "auxiliaryMobile": 123
          },
          "ipBLocklist": {
            "emailSpam": 123,
            "attackSource": 123
          },
          "tor": 123,
          "proxy": 123,
          "emulator": 123,
          "tampering": 123,
          "clonedApp": 123,
          "frida": 123,
          "highActivity": 123
        }
      },
      "maximum": {
        "value": 123,
        "percentile": 123,
        "signals": {
          "vpn": {
            "timezoneMismatch": 123,
            "publicVPN": 123,
            "auxiliaryMobile": 123
          },
          "ipBLocklist": {
            "emailSpam": 123,
            "attackSource": 123
          },
          "tor": 123,
          "proxy": 123,
          "emulator": 123,
          "tampering": 123,
          "clonedApp": 123,
          "frida": 123,
          "highActivity": 123
        }
      }
    },
    "timestamps": {
      "firstSeentAt": "2023-12-25",
      "lastSeenAt": "2023-12-25"
    }
  }
}
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "requestId": "<string>"
  }
}
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "requestId": "<string>"
  }
}
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "requestId": "<string>"
  }
}
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "requestId": "<string>"
  }
}
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "requestId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-Version
string
default:2024-09-01
required

The API version to use.

Path Parameters

visitorId
string
required

The visitor id to get information on.

Pattern: ^[a-zA-Z0-9]{20}$

Query Parameters

signals
enum<string>[]
required

The information signals to retrieve.

Available options:
regional_activity,
suspect_score,
timestamps

Response

A JSON object representing reputation information related to requested signals.

data
object

Object containing properties of the signals requested