Public APIs
Cloudflare Trace favicon

Cloudflare Trace

Development

Get IP Address, Timestamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version & More.

Cloudflare Trace's website screenshot

About Cloudflare Trace

Cloudflare Trace API provides access to Cloudflare's built-in trace and geolocation endpoints, exposing request metadata such as IP address, timestamp, user agent, country code, IATA colo location, HTTP version, and TLS/SSL version. It documents several existing Cloudflare endpoints (including one.one.one.one/cdn-cgi/trace and speed.cloudflare.com/meta) and the fields each one returns, such as WARP and Gateway usage flags, SNI status, key exchange method, ASN, city, region, postal code, and latitude/longitude.

It is aimed at developers who want to query IP, location, and connection details without deploying their own server, using publicly available Cloudflare infrastructure endpoints. The repository also links to a companion tool for converting the plain-text trace output into JSON, and to Cloudflare's DNS-over-HTTPS API as a related resource.

Key features

  • Returns client IP address, timestamp, and user agent via Cloudflare trace endpoints
  • Provides country code and IATA colo location identifier
  • Reports HTTP version and TLS/SSL version used by the client
  • Detects WARP, Cloudflare Gateway, and Remote Browser Isolation usage
  • Cloudflare Geolocation API returns city, region, postal code, latitude and longitude

Frequently asked questions

Is this a free API?

Yes, it uses public Cloudflare endpoints like one.one.one.one/cdn-cgi/trace and speed.cloudflare.com/meta with no listed cost.

What data can I get from it?

It returns data such as IP address, timestamp, user agent, country code, IATA colo, HTTP version, and TLS/SSL version, plus geolocation data like city, region, and coordinates.

Does it require an API key or SDK?

No, it works by making requests directly to existing Cloudflare endpoints such as https://1.1.1.1/cdn-cgi/trace and https://speed.cloudflare.com/meta.

Who is this for?

Developers who need client IP, geolocation, or connection metadata (e.g. TLS version, ASN, timezone) without running their own infrastructure.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product