Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fawazahmed0/cloudflare-trace-api
- Owner: fawazahmed0
- Created: 2021-07-06T03:41:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T13:44:59.000Z (9 months ago)
- Last Synced: 2024-07-31T21:53:12.240Z (6 months ago)
- Topics: cloudflare-api, country, epoch-time, geolocation, ipaddress, timestamp, useragent
- Homepage: https://one.one.one.one/cdn-cgi/trace
- Size: 34.2 KB
- Stars: 96
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- public-apis - Cloudflare Trace
- fucking-public-apis - Cloudflare Trace
- Awesome-API-Provider - Cloudflare Trace
- public-apis - Cloudflare Trace
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)