Skip to main content

Request

opjs()

The opjs() function collects the browser fingerprint and returns a Promise that resolves to a response object.

Syntax

opjs({
API_KEY: "my-api-key"
}).then((fingerprint) => {
// Handle the fingerprint object
});

Parameters

  • API_KEY (string, required) – Your unique API key.

Returns

A Promise that resolves to a response object.

Response Object Structure

The Promise will result in an object with the following structure:

{
"clusterUUID": "CSG-7K5-KSJ-18S",
"botScore": 1,
"browserTraits": {
"type": "firefox",
"hasCanvasNoise": false,
"isIncognito": false,
"isWebView": false,
"isAndroidWebView": false,
"possibleCountryCodes": [
"US"
],
"isFakeUserAgent": false,
"isRootedDevice": false,
"isAntiDetect": false
},
"debug": {
"hash": "e20ae736c2ea1266f30b177922db0b8fd92f096555ea6c760daceaf120aee5f9",
"performance": "29.21ms"
},
"networkTraits": {
"ip": "143.244.47.74",
"countryCode": "US",
"isAnonymous": true,
"ipWasRecentlyMalicious": false,
"vpn": false,
"tor": false
},
"authToken": "164523554648367104",
}