API Documentation
Integrate powerful IP intelligence and network diagnostic tools into your applications with our RESTful API
Introduction
Welcome to the Trace My IP API documentation. Our API provides programmatic access to our comprehensive suite of IP intelligence and network diagnostic tools. Build custom integrations, automate lookups, or enhance your applications with real-time IP data.
Base URL
Fast & Reliable
Sub-100ms response times
Secure
HTTPS encryption required
Rich Data
Comprehensive IP intelligence
Authentication
All API requests require authentication using an API key. Include your key in the request header:
⚠️ Security Best Practices
- Never expose your API key in client-side code
- Use environment variables to store your key
- Rotate your keys regularly
- Set up usage alerts to monitor quota
Rate Limits
| Plan | Requests/Hour | Requests/Day | Price |
|---|---|---|---|
| Free | 100 | 1,000 | $0 |
| Basic | 1,000 | 10,000 | $29/mo |
| Pro | 10,000 | 100,000 | $99/mo |
| Enterprise | Unlimited | Unlimited | Contact Us |
IP Geolocation API
Retrieve detailed geolocation data for any IP address including country, region, city, coordinates, ISP, and more.
/geo/{ip_address}
Example Request:
Response:
Parameters:
| Parameter | Type | Description |
|---|---|---|
ip_address |
string | IPv4 or IPv6 address to lookup |
DNS Lookup API
Query DNS records for any domain. Supports A, AAAA, MX, NS, TXT, SOA, CNAME, and PTR records.
/dns/{domain}
Example Request:
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
type |
string | DNS record type (A, AAAA, MX, NS, TXT, SOA, CNAME). Default: ALL |
Response:
WHOIS API
Retrieve domain registration details including owner information, creation date, expiry, and registrar.
/whois/{domain}
Example Request:
Response:
Error Handling
The API uses standard HTTP status codes and returns detailed error messages in JSON format.
| Status Code | Meaning | Description |
|---|---|---|
200 |
OK | Request successful |
400 |
Bad Request | Invalid parameters or malformed request |
401 |
Unauthorized | Missing or invalid API key |
404 |
Not Found | Resource not found |
429 |
Too Many Requests | Rate limit exceeded |
500 |
Server Error | Internal server error |
Error Response Format:
Ready to Get Started?
Sign up for a free API key and start integrating powerful IP intelligence into your applications today.