VerifiedVisitors visitor access control API (1.0.0)
Download OpenAPI specification:Download
verifyVisitor
Authorizations:
Request Body schema: application/json
timestamp | integer Epoch timestamp in milliseconds |
required | object |
host required | string Value of the 'host' header. This must match the site hostname set up in the VerifiedVisitors console. |
uri | string Request URI path and query |
method | string Request method |
headers | Array of strings List of headers included in the request |
connection | string Value of the |
referer | string Value of the |
origin | string Value of the |
pragma | string Value of the |
xForwardedFor | string Value of the |
xForwardedProto | string Value of the |
xRequestedWith | string Value of the |
xRealIp | string Value of the |
trueClientIp | string Value of the |
via | string Value of the |
accept | string Value of the |
acceptEncoding | string Value of the |
acceptLanguage | string Value of the |
acceptCharset | string Value of the |
contentType | string Value of the |
contentLength | string Value of the |
cacheControl | string Value of the |
from | string Value of the |
cc | string [ 2 .. 6 ] characters Two-letter country code of the visitor. If omitted, the value will be inferred from the IP address. |
hCaptchaToken | string The For use when processing responses to a served CAPTCHA challenge. |
jsChallengeToken | string |
object For internal use. Omit for manual integrations. | |
labels | Array of strings <= 5 items [ items <= 256 characters ] List of labels to associate with this request. Warning: exceeding the max number of labels will result in an error, and the request will not be processed. |
log | boolean Default: true For internal use. This should always be 'true'. |
Responses
Request samples
- Payload
- Node + Request
- Shell + Curl
- Shell + Httpie
- Python + Python3
- Php + Curl
- Php + Http1
- Php + Http2
{- "timestamp": 1683643245768,
- "visitorId": {
- "vid": "9a20079bc4597fce683c583c18797156",
- "ip": "203.0.113.0",
- "ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
}, - "host": "verifiedvisitors.com",
- "method": "GET",
- "headers": [
- "user-agent",
- "accept",
- "accept-encoding"
], - "connection": "keep-alive",
- "referer": "www.verifiedvisitors.com",
- "origin": "string",
- "pragma": "no-cache",
- "xForwardedFor": "203.0.113.1,192.0.2.0",
- "xForwardedProto": "https",
- "xRequestedWith": "XMLHttpRequest",
- "xRealIp": "203.0.113.0",
- "trueClientIp": "203.0.113.0",
- "via": "1.1 vegur",
- "accept": "text/html",
- "acceptEncoding": "gzip",
- "acceptLanguage": "en-US",
- "acceptCharset": "string",
- "contentType": "text/html",
- "contentLength": "30012",
- "cacheControl": "max-age=604800",
- "cc": "GB",
- "hCaptchaToken": "10000000-aaaa-bbbb-cccc-000000000001",
- "jsChallengeToken": "string",
- "worker": {
- "name": "string",
- "version": "string"
}, - "labels": [
- "string"
], - "log": true
}
Response samples
- 200
- 4XX
{- "action": "captcha",
- "ruleId": 0,
- "captchaSiteKey": "10000000-ffff-ffff-ffff-000000000001",
- "jsChallengeToken": "string",
- "visitorId": "9a20079bc4597fce683c583c18797156",
- "visitorIdStable": "9a20079bc4597fce683c583c18797156",
- "rootDomain": "verifiedvisitors.com",
- "countryCode": "GB",
- "traceId": "string",
- "htmlBody": "string"
}
siteverify
Authorizations:
Request Body schema: application/x-www-form-urlencoded
secret required | string |
response required | string |
Responses
Request samples
- Node + Request
- Shell + Curl
- Shell + Httpie
- Python + Python3
- Php + Curl
- Php + Http1
- Php + Http2
const request = require('request'); const options = { method: 'POST', url: 'https://api.verifiedvisitors.com/vac/siteverify', headers: { 'content-type': 'application/x-www-form-urlencoded', Authorization: 'Bearer REPLACE_BEARER_TOKEN' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
Response samples
- 200
- 4XX
{- "success": true,
- "challenge_ts": "2019-08-24T14:15:22Z",
- "hostname": "string",
- "error-codes": [
- "string"
]
}