Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fawazahmed0/cloudflare-trace-api

Get IP Address, TimeStamp, User Agent, Country Code, IATA, HTTP Version, TLS/SSL Version & more by Cloudflare
https://github.com/fawazahmed0/cloudflare-trace-api

cloudflare-api country epoch-time geolocation ipaddress timestamp useragent

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:
```json
{
"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:
```json
{
"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](https://stackoverflow.com/a/68304489/2437224)

[IATA Full List](https://cdn.jsdelivr.net/gh/fawazahmed0/iata-list@main/iata.json)

[IATA Cloudflare List](https://speed.cloudflare.com/locations)

#### Other Useful Endpoints by cloudflare:

[DNS Over HTTPS API](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json)