GEO FENCING
Introduction
The API allows users to perform this assessment by providing relevant information such as geolocation data, IP address, country, and state. The output generated by the API provides an accurate and reliable risk score, which can be used to make informed decisions while performing various activities.
Sample cURL
curl --request POST \
--url https://signzy.tech/api/v2/patrons/..your-patron-id../riskscores \
--header 'Accept: */*' \
--header 'Accept-Language: en-US,en;q=0.8' \
--header 'Authorization: <Access-Token>' \
--header 'content-type: application/json' \
--data '{"task":"geoFencing","essentials":{"ip":"...ip...","country":"...country...","state":"...state..."}}'Parameter | Type | Description |
|---|---|---|
task | string | The task to be performed |
essentials.ip | string | The IP address of the user |
essentials.country | string | The country of the user |
essentials.state | string | The state of the user |
Authorization | string | The Access Token used for authorization |
Accept | string | The expected response format |
Accept-Language | string | The preferred language of the response |
Content-Type | string | The data format of the request payload |
Sample Response
{
"result": {
"ip": "...ip address...",
"country": "...country...",
"countryCode": "ISO 2 digit country code...",
"state": "...state...",
"stateCode": "...state code...",
"city": "...city...",
"zipCode": "...zipcode...",
"timezone": "...timezone...",
"latitude": "...latitude...",
"longitude": "...longitude...",
"asn": "...asn...",
"riskyIp": true/false,
"validUser": true/false
}
}Parameter | Type | Description |
|---|---|---|
ip | string | IP address of the user |
country | string | Country name of the user |
countryCode | string | 2 digit ISO country code of the user's country |
state | string | State name of the user |
stateCode | string | Code of the user's state |
city | string | City name of the user |
zipCode | string | ZIP or postal code of the user |
timezone | string | Timezone of the user's location |
latitude | string | Latitude of the user's location |
longitude | string | Longitude of the user's location |
asn | string | Autonomous System Number (ASN) of the user's network |
riskyIp | boolean | Indicates whether the user's IP is flagged as risky or not |
validUser | boolean | Indicates whether the user is a valid user or not based on the IP location |