[
  {
    "path": "README.md",
    "content": "# Cloudflare Trace API\nGet IP Address, TimeStamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version &amp; more by Cloudflare\n\n#### Endpoints:\nhttps://one.one.one.one/cdn-cgi/trace <br>\nhttps://1.0.0.1/cdn-cgi/trace <br>\nhttps://cloudflare-dns.com/cdn-cgi/trace <br>\nhttps://cloudflare-eth.com/cdn-cgi/trace <br>\nhttps://workers.dev/cdn-cgi/trace <br>\nhttps://pages.dev/cdn-cgi/trace <br>\nhttps://cloudflare.tv/cdn-cgi/trace <br>\nhttps://icanhazip.com/cdn-cgi/trace <br>\n\n#### Return Format:\n<pre>\nfl=Cloudflare WebServer Instance\nh=WebServer <a href=\"https://en.wikipedia.org/wiki/Hostname\">Hostname</a>\nip=IP Address of client\nts=<a href=\"https://en.wikipedia.org/wiki/Unix_time\">Epoch Time</a> in seconds.millis (Similar to `date +%s.%3N` in bash)\nvisit_scheme=https or http\nuag=<a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent\">User Agent</a>\ncolo=<a href=\"https://en.wikipedia.org/wiki/IATA_airport_code\">IATA location identifier</a>\nsliver=Whether the request is splitted\nhttp=<a href=\"https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol\">HTTP Version</a>\nloc=<a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">Country Code</a>\ntls=<a href=\"https://en.wikipedia.org/wiki/Transport_Layer_Security\">TLS</a> or SSL Version\nsni=Whether <a href=\"https://en.wikipedia.org/wiki/Server_Name_Indication\">SNI</a> encrypted or plaintext\nwarp=Whether client over <a href=\"https://1.1.1.1/\">Cloudflares Wireguard VPN</a>\ngateway=Whether client over <a href=\"https://www.cloudflare.com/teams/gateway/\">Cloudflare Gateway</a>\nrbi=Whether client over <a href=\"https://www.cloudflare.com/learning/access-management/what-is-browser-isolation/\">Cloudflares Remote Browser Isolation</a>\nkex=<a href=\"https://en.wikipedia.org/wiki/Key_exchange\">Key exchange</a> method for TLS\n</pre>\n\n## Cloudflare Geolocation API\n\n#### Endpoint:\nhttps://speed.cloudflare.com/meta\n\n#### Return Format:\n```json\n{\n  \"hostname\": \"speed.cloudflare.com\",\n  \"clientIp\": \"69.193.168.152\",\n  \"httpProtocol\": \"HTTP/1.1\",\n  \"asn\": 13254,\n  \"asOrganization\": \"My Organisation\",\n  \"colo\": \"JFK\",\n  \"country\": \"US\",\n  \"city\": \"New York City\",\n  \"region\": \"New York\",\n  \"postalCode\": \"10001\",\n  \"latitude\": \"40.730610\",\n  \"longitude\": \"-73.935242\"\n}\n```\n\n#### Endpoint:\nhttps://speed.cloudflare.com/__down  \n\n#### Return Data In Headers:\n```json\n{\n  \"cf-meta-asn\": \"13254\",\n  \"cf-meta-city\": \"New York City\",\n  \"cf-meta-colo\": \"JFK\",\n  \"cf-meta-country\": \"US\",\n  \"cf-meta-ip\": \"69.193.168.152\",\n  \"cf-meta-latitude\": \"40.730610\",\n  \"cf-meta-longitude\": \"-73.935242\",\n  \"cf-meta-postalcode\": \"10001\",\n  \"cf-meta-request-time\": \"1724183717263\",\n  \"cf-meta-timezone\": \"America/New_York\"\n}\n\n```\n\n#### Other Resources:\n[Convert Return Format to JSON](https://stackoverflow.com/a/68304489/2437224)\n\n[IATA Full List](https://cdn.jsdelivr.net/gh/fawazahmed0/iata-list@main/iata.json)\n\n[IATA Cloudflare List](https://speed.cloudflare.com/locations)\n\n#### Other Useful Endpoints by cloudflare:\n\n[DNS Over HTTPS API](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json)\n"
  }
]