API Documentation
RESTful JSON API for IP address, ASN, and network intelligence.
Quick Start
curl https://api.ipctl.io/v1/ip/1.1.1.1
# Response:
{
"data": {
"ip": "1.1.1.1",
"ip_version": 4,
"reverse_dns": "one.one.one.one",
"is_bogon": false,
"asn": { "asn": 13335, "name": "CLOUDFLARENET", ... },
"geo": { "country_code": "US", "country_name": "United States", ... },
"threat_score": 0,
"tags": []
}
}
# Threat intelligence (separate endpoint, 1 credit):
curl https://api.ipctl.io/v1/intel/1.1.1.1
# Response:
{
"data": {
"score": 60,
"intel": [
{ "tag": "tor-node", "severity": "medium" },
{ "tag": "c2", "severity": "critical" }
]
}
}curl https://api.ipctl.io/v1/ip/1.1.1.1 \ -H "X-API-Key: nq_your_key_here" # Or via Bearer token: curl https://api.ipctl.io/v1/ip/1.1.1.1 \ -H "Authorization: Bearer nq_your_key_here"
Authentication
API keys start with nq_. Pass them via X-API-Key header or Authorization: Bearer nq_xxx.
Rate limit headers are returned on every response:
X-RateLimit-Limit: 30 X-RateLimit-Remaining: 29 X-RateLimit-Reset: <unix timestamp, 60s from now> X-RateLimit-Limit-Day: 2000 X-RateLimit-Remaining-Day: 1999 X-RateLimit-Credits-Remaining: 49999 X-RateLimit-Credits-Reset: <start of next calendar month, ISO 8601>
Endpoints
IP address lookup: geolocation, ASN, BGP routes, RPKI status, and an overall threat score.
curl https://api.ipctl.io/v1/ip/1.1.1.1
Threat intelligence for an IP: overall score and an array of individual findings (tag, score, severity).
curl https://api.ipctl.io/v1/intel/1.1.1.1
ASN information including allocated and announced prefixes, BGP routing data, and registry details. Announced prefixes are paginated (default 100, max 1000). Use ?announced_limit=&announced_offset= to page.
curl https://api.ipctl.io/v1/asn/13335
Prefix information including more-specifics, BGP routes, RPKI/IRR status and RIR allocation data.
curl "https://api.ipctl.io/v1/prefix/1.1.1.0/24"
WHOIS-style registration data for an IP: network allocation, RIR, ASN, organization, abuse contact, and geolocation.
curl https://api.ipctl.io/v1/whois/1.1.1.1
Search across ASNs, prefixes and organizations by name or number. Pass ?q=cloudflare
curl "https://api.ipctl.io/v1/search?q=cloudflare"
Returns the full IP info for the caller's own IP address.
curl https://api.ipctl.io/v1/me/ip
Bulk IP lookup for up to 1,000 IPs in a single request. Returns geolocation, ASN, and basic threat score per IP. Requires API key.
curl -X POST https://api.ipctl.io/v1/bulk \
-H "X-API-Key: nq_xxx" \
-H "Content-Type: application/json" \
-d '{"ips":["1.1.1.1","8.8.8.8"]}'API Reference
The full API is described in an OpenAPI 3.1 specification. Use it to generate client libraries, import into Postman, or browse the interactive reference.
Pricing
All plans include full API access. Upgrade or downgrade anytime.
- All lookup endpoints
- IP, ASN, prefix lookups
- Basic threat score on /ip
- Everything in Free
- Bulk lookups (up to 100)
- Email support
- Everything in Starter
- Bulk up to 1,000
- Custom network flags
- SLA 99.9%
- Everything in Pro
- 2.5M requests/month
- Fraud detection use case
- Priority support
- Unlimited credits
- Dedicated infrastructure
- Custom integrations
- Priority SLA
All prices include applicable taxes (VAT/GST).