Cloudflare Trace
APIFree API to retrieve IP address, location, and request metadata
Overview
Cloudflare Trace API offers a RESTful interface to access comprehensive request metadata. A simple GET request returns JSON-formatted data including client IP address, timestamp, user agent string, country code, IATA airport code, HTTP version, TLS/SSL version, and additional request details. Designed for developers, it supports use cases like debugging client-side request issues, validating geolocation data for app features, or integrating basic IP and connection info into tools without requiring API keys or authentication.
Example Integration (JavaScript)
fetch('https://github.com/fawazahmed0/cloudflare-trace-api')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful interface
- JSON response format
- No authentication required
- Comprehensive request metadata
Frequently Asked Questions
? Is Cloudflare Trace API free to use?
Yes, the API is completely free with no hidden costs or subscription requirements.
? Does it require an API Key?
No, authentication is not needed—you can send a GET request directly to the endpoint without any keys.
? What is the response format?
The API returns data in JSON format, containing fields like IP address, timestamp, user agent, country code, IATA code, and more.
Top Alternatives
People Also Ask about Cloudflare Trace
Tool Info
Pros
- ⊕ Easy to integrate (simple GET endpoint)
- ⊕ No API key needed
- ⊕ Free unlimited access
- ⊕ Open source implementation
Cons
- ⊖ Potential rate limits for high-volume use
- ⊖ Limited to request-specific metadata
- ⊖ No official service level agreement (SLA)