Quick Start#
Get your first IP check running in under 5 minutes. This guide will walk you through making your first API call using curl, JavaScript, and Python.
Prerequisites#
Before you begin, make sure you have:
- An API key from the dashboard
- The API endpoint:
https://vpnsignal.io/api/v1/check
Make Your First Request#
Using curl#
bash
curl -X POST https://vpnsignal.io/api/v1/check \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ip": "1.1.1.1"}'Using JavaScript (fetch)#
javascript
const response = await fetch('https://vpnsignal.io/api/v1/check', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ ip: '1.1.1.1' }),
});
const result = await response.json();
console.log(result);Using Python (requests)#
python
import requests
response = requests.post(
'https://vpnsignal.io/api/v1/check',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={'ip': '1.1.1.1'},
)
result = response.json()
print(result)Understanding the Response#
A successful response looks like this:
json
{
"ip": "1.1.1.1",
"is_vpn": false,
"is_proxy": false,
"is_tor": false,
"is_relay": false,
"is_hosting": true,
"risk_score": 30,
"recommendation": "allow",
"company": {
"name": "Cloudflare, Inc.",
"type": "hosting"
},
"location": {
"country": "US",
"city": "San Francisco"
}
}| Field | Description |
|---|---|
risk_score | 0-100 score indicating risk level |
recommendation | allow, verify, or block |
is_vpn | True if IP belongs to a VPN provider |
is_proxy | True if IP is a known proxy |
is_tor | True if IP is a Tor exit node |
Next Steps#
- Learn about risk scoring to understand how scores are calculated
- View the API reference for complete endpoint documentation
- Handle errors gracefully in your application