Cloudflare Trace

API

Free API to retrieve IP address, location, and request metadata

Visit Website

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)

script.js JS

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

Ipify API Search Google
ipapi.co Compare
Cloudflare's official /cdn-cgi/trace endpoint Search Google

People Also Ask about Cloudflare Trace

Cloudflare Trace vs Ipify APICloudflare Trace vs ipapi.coCloudflare Trace vs Cloudflare's official /cdn-cgi/trace endpoint Cloudflare Trace 2025 review

Tool Info

Pricing Free
Category Development
Platform Public API

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)

More Development Tools