IP geolocation with VPN/proxy/Tor detection, reputation and risk score
Full LLM thinking from the 4-phase benchmark pipeline.
{
"service_type": "rest_api",
"base_url": "https://ip-api.io",
"auth_method": "api_key_header",
"auth_config": {
"header": "Authorization",
"prefix": null
},
"endpoints": [
{
"path": "/api/v1/ip",
"method": "GET",
"purpose": "IP geolocation and security lookup for a given IP address",
"params": {
"ip": {
"type": "string",
"required": true
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/v1/email/validate",
"method": "GET",
"purpose": "Comprehensive email validation and reputation analysis",
"params": {
"email": {
"type": "string",
"required": true
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/v1/email/advanced",
"method": "GET",
"purpose": "Advanced email validation with real-time SMTP verification and deliverability checks",
"params": {
"email": {
"type": "string",
"required": true
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/v1/risk-score",
"method": "GET",
"purpose": "Fraud risk scoring (0.0-1.0) for IP addresses and email addresses",
"params": {
"ip": {
"type": "string",
"required": false
},
"email": {
"type": "string",
"required": false
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/v1/tor",
"method": "GET",
"purpose": "Detect whether an IP address is a known Tor exit node",
"params": {
"ip": {
"type": "string",
"required": true
}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/v1/asn",
"method": "GET",
"purpose": "ASN lookup by IP address",
"params": {
"ip": {
"type": "string",
"required": true
}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/v1/rate-limit",
"method": "GET",
"purpose": "Retrieve current quota usage, remaining requests, and subscription details",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/v1/usage",
"method": "GET",
"purpose": "API usage statistics and consumption history",
"params": {},
"response_format": "json",
"is_primary": false
}
],
"pricing_model": {
"type": "tiered",
"details": {},
"free_tier": {
"requests": 1000,
"period": "month"
},
"paid_tiers": []
},
"rate_limits": {
"rpm": null,
"tpm": null,
"daily": null,
"concurrent": null
},
"capabilities": [
"ip_geolocation",
"threat_detection",
"vpn_detection",
"proxy_detection",
"tor_detection",
"email_validation",
"smtp_verification",
"disposable_email_detection",
"risk_scoring",
"asn_lookup",
"usage_statistics",
"reputation_analysis",
"timezone_lookup",
"network_classification"
],
"agent_readiness": {
"supports_x402": false,
"supports_streaming": false,
"has_sandbox": false,
"sdks": [],
"agent_auth_methods": [
"api_key",
"email_signup"
]
}
}```json
{
"tests": [
{
"name": "ip_geolocation_happy_path",
"endpoint": "/api/v1/ip/8.8.8.8",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns geolocation and security intelligence for 8.8.8.8 including ip, isp, asn, location, suspicious_factors",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "ip", "type": "string"}
},
{
"name": "ip_geolocation_invalid_format",
"endpoint": "/api/v1/ip/not-an-ip",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects malformed IP address with 400 and structured error body",
"metrics": ["status_code", "accuracy"],
"validation": {"field": "ip", "type": "string"}
},
{
"name": "ip_geolocation_private_range",
"endpoint": "/api/v1/ip/10.0.0.1",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 422,
"intent": "validation",
"expected_behavior": "Rejects private/reserved IP range with 422 Unprocessable Entity",
"metrics": ["status_code"],
"validation": {"field": "ip", "type": "string"}
},
{
"name": "email_validate_happy_path",
"endpoint": "/api/v1/email/john.doe@company.com",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns validation with email, is_disposable, has_mx_records, mx_records, syntax",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "email", "type": "string"}
},
{
"name": "email_validate_invalid_format",
"endpoint": "/api/v1/email/not-an-email",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects malformed email with 400 and structured error body",
"metrics": ["status_code"],
"validation": {"field": "email", "type": "object"}
},
{
"name": "email_advanced_happy_path",
"endpoint": "/api/v1/email/advanced/test@yandex.ru",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns advanced validation with reachable, syntax, smtp, disposable, role_account, free, has_mx_records",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "reachable", "type": "string"}
},
{
"name": "risk_score_ip_happy_path",
"endpoint": "/api/v1/risk-score/203.0.113.195",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns risk score 0.0-1.0 with risk_level enum and factors breakdown",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "score", "type": "number"}
},
{
"name": "risk_score_email_happy_path",
"endpoint": "/api/v1/risk-score/email/john.doe@company.com",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns email risk score with risk_level and email_factors breakdown",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "score", "type": "number"}
},
{
"name": "tor_detection_happy_path",
"endpoint": "/api/v1/tor/185.220.101.50",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns is_tor boolean and tor_node_count for a known Tor exit node IP",
"metrics": ["latency", "status_code"],
"validation": {"field": "is_tor", "type": "boolean"}
},
{
"name": "asn_lookup_happy_path",
"endpoint": "/api/v1/asn/8.8.8.8",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns asn, organization, network, is_datacenter, country for the IP",
"metrics": ["latency", "status_code"],
"validation": {"field": "ip", "type": "string"}
},
{
"name": "rate_limit_info_happy_path",
"endpoint": "/api/v1/ratelimit",
"method": "GET",
"headers": {"Authorization": "{{api_key}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
0/14 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| ip_geolocation_happy_path | GET /api/v1/ip/8.8.8.8 | 401 | 376ms |
| ip_geolocation_invalid_format | GET /api/v1/ip/not-an-ip | 401 | 131ms |
| ip_geolocation_private_range | GET /api/v1/ip/10.0.0.1 | 401 | 131ms |
| email_validate_happy_path | GET /api/v1/email/john.doe@company.com | 401 | 141ms |
| email_validate_invalid_format | GET /api/v1/email/not-an-email | 401 | 126ms |
| email_advanced_happy_path | GET /api/v1/email/advanced/test@yandex.ru | 401 | 129ms |
| risk_score_ip_happy_path | GET /api/v1/risk-score/203.0.113.195 | 401 | 129ms |
| risk_score_email_happy_path | GET /api/v1/risk-score/email/john.doe@company.com | 401 | 128ms |
| tor_detection_happy_path | GET /api/v1/tor/185.220.101.50 | 401 | 130ms |
| asn_lookup_happy_path | GET /api/v1/asn/8.8.8.8 | 401 | 129ms |
{"model": "deepseek", "data": {"overall": 22, "dimensions": {"token_efficiency": 8.0, "first_try_success": 2.0, "response_parseability": 6.0, "error_clarity": 5.0, "doc_quality": 5.0, "auth_simplicity": 6.0, "latency": 10.0, "consistency": 5.0}, "pricing_normalized": {"cost_per_1k_requests": null, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": 1000, "estimated_monthly_cost_light": null, "estimated_monthly_cost_heavy": null}, "issues": [{"severity": "critical", "detail": "All 14 tests failed auth. The benchmark appears to have been run WITHOUT a valid API key against a key-gated API. Every request returned 401 'Valid API key is required'. This is a benchmark configuration issue \u2014 no valid credentials were provided.", "endpoint": "all"}, {"severity": "high", "detail": "Two auth tests targeting /api/v1/ratelimit returned 400 Bad Request instead of 401, suggesting the endpoint path may be wrong (spec lists /api/v1/rate-limit but test used /api/v1/ratelimit). Path naming mismatch between spec and reality.", "endpoint": "/api/v1/ratelimit"}, {"severity": "high", "detail": "/api/v1/usage/summary returned 400 Bad Request \u2014 the endpoint path in the spec (/api/v1/usage) does not match the test path, or the endpoint requires additional params. Endpoint discovery is unreliable.", "endpoint": "/api/v1/usage/summary"}, {"severity": "medium", "detail": "REST spec shows path-based params (e.g. /api/v1/ip/8.8.8.8) but spec param definition lists query-style 'ip' param. Ambiguity in how params are passed.", "endpoint": "/api/v1/ip"}, {"severity": "medium", "detail": "Validation tests could not be evaluated because auth blocked all requests before validation logic ran. Cannot confirm the API returns structured 4xx errors for malformed input.", "endpoint": "/api/v1/ip/{ip}"}, {"severity": "low", "detail": "Error responses are plain text strings ('Valid API key is required...') rather than structured JSON error objects, reducing parseability for agents.", "endpoint": "all"}], "recommendations": ["Re-run the benchmark with a valid API key obtained from https://ip-api.io \u2014 all current failures are due to missing credentials, not API defects.", "Verify the actual endpoint paths: the spec lists /api/v1/rate-limit and /api/v1/usage, but tests hit /api/v1/ratelimit and /api/v1/usage/summary which returned 400. Publish accurate paths.", "Standardize error responses as structured JSON objects (e.g. {\"error\": {\"code\": ..., \"message\": ...}}) instead of plain-text strings, so agents can programmatically parse errors.", "Document whether parameters are passed as path segments (/api/v1/ip/{ip}) or query strings (?ip=...). The spec is ambiguous.", "Provide a public sandbox or trial key so agents can self-onboard and test without human intervention."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/ip-apiio">
<img src="https://prowl.world/badge/ip-apiio.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard