Note: You will need modern fonts to be able to view
Flags
- Specify
--ipv4 | --ipv6or similar foripv4|ipv6only data
-
Simple (
text) : /-->https://ip.ajam.dev/
Returns plain
IPv4 | IPv6
curl -qfsSL "https://ip.ajam.dev"
-
Detailed (
csv) : /csv-->https://ip.ajam.dev/csv
Returns csv
IPv4 | IPv6,GeoInfo&User-Agent
!#Using: curl + column
curl -qfsSL "https://ip.ajam.dev/csv" | column -ts ','
curl -qfsSL "https://ip.ajam.dev/csv" | column -ts ','
Example Responseip city country flag region latitude longitude org timezone user-agent readme
18.227.3.14 Sao Paulo BR Sao Paulo -23.53350 -46.63590 Amazon.com America/Sao_Paulo curl/7.88.1 https://github.com/Azathothas/ip.ajam.dev
-
Detailed (
html) : /html-->https://ip.ajam.dev/html
Returns HTML
IPv4 | IPv6,GeoInfo&User-Agent
-
Detailed (
json) : /json-->https://ip.ajam.dev/json
Returns json
IPv4 | IPv6,GeoInfo&User-Agent
!#Using: curl + https://github.com/jqlang/jq
curl -qfsSL "https://ip.ajam.dev/json" | jq '.'
curl -qfsSL "https://ip.ajam.dev/json" | jq '.'
Example Response{
"ip": "18.227.3.14",
"city": "Sao Paulo",
"country": "BR",
"flag": "",
"region": "Sao Paulo",
"latitude": "-23.53350",
"longitude": "-46.63590",
"org": "Amazon.com",
"timezone": "America/Sao_Paulo",
"user-agent": "curl/7.88.1",
"readme": "https://github.com/Azathothas/ip.ajam.dev"
}
-
Detailed (
text) : /text-->https://ip.ajam.dev/text
Returns text
IPv4 | IPv6,GeoInfo&User-Agent
curl -qfsSL "https://ip.ajam.dev/text"
Example Responseip=18.227.3.14
city=Sao Paulo
country=BR
flag=
region=Sao Paulo
latitude=-23.53350
longitude=-46.63590
org=Amazon.com
timezone=America/Sao_Paulo
user-agent=curl/7.88.1
readme=https://github.com/Azathothas/ip.ajam.dev
-
Detailed (
xml) : /xml-->https://ip.ajam.dev/xml
Returns xml
IPv4 | IPv6,GeoInfo&User-Agent
!#Using: curl + https://github.com/sibprogrammer/xq
curl -qfsSL "https://ip.ajam.dev/xml" | xq
curl -qfsSL "https://ip.ajam.dev/xml" | xq
Example Responsexml version="1.0" encoding="UTF-8"?>
<data>
<ip>18.227.3.14ip>
<city>Sao Paulocity>
<country>BRcountry>
<flag>flag>
<region>Sao Pauloregion>
<latitude>-23.53350latitude>
<longitude>-46.63590longitude>
<org>Amazon.comorg>
<timezone>America/Sao_Paulotimezone>
<user-agent>curl/7.88.1user-agent>
<readme>https://github.com/Azathothas/ip.ajam.devreadme>
data>
-
Detailed (
yaml) : /yaml-->https://ip.ajam.dev/yaml
Returns yaml
IPv4 | IPv6,GeoInfo&User-Agent
!#Using: curl + https://github.com/mikefarah/yq
curl -qfsSL "https://ip.ajam.dev/yaml" | yq '.'
curl -qfsSL "https://ip.ajam.dev/yaml" | yq '.'
Example Responseip: "18.227.3.14"
city: "Sao Paulo"
country: "BR"
flag: ""
region: "Sao Paulo"
latitude: "-23.53350"
longitude: "-46.63590"
org: "Amazon.com"
timezone: "America/Sao_Paulo"
user-agent: "curl/7.88.1"
readme: "https://github.com/Azathothas/ip.ajam.dev"
Deploy (Note to Self)
!# Install Wrangler: https://developers.cloudflare.com/workers/wrangler/install-and-update/
npm install "wrangler@latest" -g
!# Clone Source
git clone --filter="blob:none" "https://github.com/Azathothas/ip.ajam.dev"
cd "./ip.ajam.dev"
code "./ip.ajam.dev"
!# Deploy
npm install ; wrangler login
wrangler deploy
!# Dashboard >> Workers & Pages >> ip-api >> Settings >> Custom Domains >> Add: ip.ajam.dev
npm install "wrangler@latest" -g
!# Clone Source
git clone --filter="blob:none" "https://github.com/Azathothas/ip.ajam.dev"
cd "./ip.ajam.dev"
code "./ip.ajam.dev"
!# Deploy
npm install ; wrangler login
wrangler deploy
!# Dashboard >> Workers & Pages >> ip-api >> Settings >> Custom Domains >> Add: ip.ajam.dev