Detect unique device/browser fingerprints and identify potential bots or automated tools.
Support POST (JSON body) requests.
Base URL
device-fingerprint-bot-detection-api.p.rapidapi.com
Endpoint
πΉ POST /fingerprint
Generates a fingerprint from custom JSON input.
Supports both snake_case and camelCase keys.
Request Body (JSON)
-
user_agent
oruserAgent
(string, optional) β Browser User-Agent. -
ip
(string, optional) β Client IP address (defaults to requestβs remote address). -
headers
(object, optional) β Custom headers dictionary.
Example
curl -X POST http://127.0.0.1:5000/fingerprint \
-H "Content-Type: application/json" \
-d '{
"userAgent": "Mozilla/5.0 (X11; Linux)",
"ip": "203.0.113.9",
"headers": {"X-Test-Header":"boom"}
}'
Response
{
"fingerprint": "2c9e2a54d6a5f0f6f83b4a88964b94f84b309c1e17c2d4f31cbf10c0f5a1c123",
"ip": "203.0.113.9",
"user_agent": "Mozilla/5.0 (X11; Linux)",
"risk": {
"risk_score": 0,
"risk_level": "low",
"reasons": []
}
}
π Risk Detection
Risk score is computed using heuristic rules:
- Missing User-Agent β +40
- Suspicious UA keywords (
headless
,puppeteer
,selenium
, etc.) β +50 - AJAX automation header (
X-Requested-With: XMLHttpRequest
) β +20 - Proxy headers (
X-Forwarded-For
,CF-Connecting-IP
) β flagged in reasons
Risk Levels
-
low
β 0β29 -
medium
β 30β69 -
high
β 70+
Top comments (0)