Skip to content

Get IP Address, TimeStamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version & more by Cloudflare

Notifications You must be signed in to change notification settings

fawazahmed0/cloudflare-trace-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 

Repository files navigation

Cloudflare Trace API

Get IP Address, TimeStamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version & more by Cloudflare

Endpoints:

https://one.one.one.one/cdn-cgi/trace
https://1.0.0.1/cdn-cgi/trace
https://cloudflare-dns.com/cdn-cgi/trace
https://cloudflare-eth.com/cdn-cgi/trace
https://workers.dev/cdn-cgi/trace
https://pages.dev/cdn-cgi/trace
https://cloudflare.tv/cdn-cgi/trace
https://icanhazip.com/cdn-cgi/trace

Return Format:

fl=Cloudflare WebServer Instance
h=WebServer Hostname
ip=IP Address of client
ts=Epoch Time in seconds.millis (Similar to `date +%s.%3N` in bash)
visit_scheme=https or http
uag=User Agent
colo=IATA location identifier
sliver=Whether the request is splitted
http=HTTP Version
loc=Country Code
tls=TLS or SSL Version
sni=Whether SNI encrypted or plaintext
warp=Whether client over Cloudflares Wireguard VPN
gateway=Whether client over Cloudflare Gateway
rbi=Whether client over Cloudflares Remote Browser Isolation
kex=Key exchange method for TLS

Cloudflare Geolocation API

Endpoint:

https://speed.cloudflare.com/meta

Return Format:

{
  "hostname": "speed.cloudflare.com",
  "clientIp": "69.193.168.152",
  "httpProtocol": "HTTP/1.1",
  "asn": 13254,
  "asOrganization": "My Organisation",
  "colo": "JFK",
  "country": "US",
  "city": "New York City",
  "region": "New York",
  "postalCode": "10001",
  "latitude": "40.730610",
  "longitude": "-73.935242"
}

Endpoint:

https://speed.cloudflare.com/__down

Return Data In Headers:

{
  "cf-meta-asn": "13254",
  "cf-meta-city": "New York City",
  "cf-meta-colo": "JFK",
  "cf-meta-country": "US",
  "cf-meta-ip": "69.193.168.152",
  "cf-meta-latitude": "40.730610",
  "cf-meta-longitude": "-73.935242",
  "cf-meta-postalcode": "10001",
  "cf-meta-request-time": "1724183717263",
  "cf-meta-timezone": "America/New_York"
}

Other Resources:

Convert Return Format to JSON

IATA Full List

IATA Cloudflare List

Other Useful Endpoints by cloudflare:

DNS Over HTTPS API

About

Get IP Address, TimeStamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version & more by Cloudflare

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published