└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Cloudflare Trace API 2 | Get IP Address, TimeStamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version & more by Cloudflare 3 | 4 | #### Endpoints: 5 | https://one.one.one.one/cdn-cgi/trace
6 | https://1.0.0.1/cdn-cgi/trace
7 | https://cloudflare-dns.com/cdn-cgi/trace
8 | https://cloudflare-eth.com/cdn-cgi/trace
9 | https://workers.dev/cdn-cgi/trace
10 | https://pages.dev/cdn-cgi/trace
11 | https://cloudflare.tv/cdn-cgi/trace
12 | https://icanhazip.com/cdn-cgi/trace
13 | 14 | #### Return Format: 15 |
16 | fl=Cloudflare WebServer Instance
17 | h=WebServer Hostname
18 | ip=IP Address of client
19 | ts=Epoch Time in seconds.millis (Similar to `date +%s.%3N` in bash)
20 | visit_scheme=https or http
21 | uag=User Agent
22 | colo=IATA location identifier
23 | sliver=Whether the request is splitted
24 | http=HTTP Version
25 | loc=Country Code
26 | tls=TLS or SSL Version
27 | sni=Whether SNI encrypted or plaintext
28 | warp=Whether client over Cloudflares Wireguard VPN
29 | gateway=Whether client over Cloudflare Gateway
30 | rbi=Whether client over Cloudflares Remote Browser Isolation
31 | kex=Key exchange method for TLS
32 | 
33 | 34 | ## Cloudflare Geolocation API 35 | 36 | #### Endpoint: 37 | https://speed.cloudflare.com/meta 38 | 39 | #### Return Format: 40 | ```json 41 | { 42 | "hostname": "speed.cloudflare.com", 43 | "clientIp": "69.193.168.152", 44 | "httpProtocol": "HTTP/1.1", 45 | "asn": 13254, 46 | "asOrganization": "My Organisation", 47 | "colo": "JFK", 48 | "country": "US", 49 | "city": "New York City", 50 | "region": "New York", 51 | "postalCode": "10001", 52 | "latitude": "40.730610", 53 | "longitude": "-73.935242" 54 | } 55 | ``` 56 | 57 | #### Endpoint: 58 | https://speed.cloudflare.com/__down 59 | 60 | #### Return Data In Headers: 61 | ```json 62 | { 63 | "cf-meta-asn": "13254", 64 | "cf-meta-city": "New York City", 65 | "cf-meta-colo": "JFK", 66 | "cf-meta-country": "US", 67 | "cf-meta-ip": "69.193.168.152", 68 | "cf-meta-latitude": "40.730610", 69 | "cf-meta-longitude": "-73.935242", 70 | "cf-meta-postalcode": "10001", 71 | "cf-meta-request-time": "1724183717263", 72 | "cf-meta-timezone": "America/New_York" 73 | } 74 | 75 | ``` 76 | 77 | #### Other Resources: 78 | [Convert Return Format to JSON](https://stackoverflow.com/a/68304489/2437224) 79 | 80 | [IATA Full List](https://cdn.jsdelivr.net/gh/fawazahmed0/iata-list@main/iata.json) 81 | 82 | [IATA Cloudflare List](https://speed.cloudflare.com/locations) 83 | 84 | #### Other Useful Endpoints by cloudflare: 85 | 86 | [DNS Over HTTPS API](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json) 87 | --------------------------------------------------------------------------------