Basic Usage

curl -q -LSsf https://ifcfg.us/ip

Force IPv4 or IPv6:

curl -q -LSsf -4 ifcfg.us
curl -q -LSsf -6 ifcfg.us

Features

Use the root or /ip endpoint to identify the requesting address, /{ip} to look up a specific IPv4 or IPv6 address, and the country, city, ASN, and coordinates endpoints for individual GeoIP fields. Responses support plain text, JSON, and HTML.

JSON Response

Returns full GeoIP data including country, city, ASN, and more:

curl -q -LSsf https://ifcfg.us/json

Force JSON via Accept header:

curl -q -LSsf -H "Accept: application/json" https://ifcfg.us/

Specific Fields

Each field is accessible as a plain-text endpoint:

curl -q -LSsf https://ifcfg.us/country
curl -q -LSsf https://ifcfg.us/country-iso
curl -q -LSsf https://ifcfg.us/city
curl -q -LSsf https://ifcfg.us/coordinates
curl -q -LSsf https://ifcfg.us/asn
curl -q -LSsf https://ifcfg.us/asn-org

Look Up Another IP

Query any IP address for GeoIP data:

curl -q -LSsf https://ifcfg.us/8.8.8.8
curl -q -LSsf https://ifcfg.us/8.8.8.8/json
curl -q -LSsf https://ifcfg.us/2001:4860:4860::8888/json

Port Reachability

Check if a port is open on the requesting IP:

curl -q -LSsf https://ifcfg.us/port/22
curl -q -LSsf https://ifcfg.us/port/443

API Formats

  • Plain text — default for curl/wget/CLI user-agents and empty User-Agent
  • JSON — Accept: application/json header, or /json suffix
  • HTML — browser user-agents, or Accept: text/html

Append .txt to any field endpoint for explicit plain text: curl -q -LSsf https://ifcfg.us/country.txt

Tor Access

This server is also reachable as a Tor hidden service — no exit node, and no intermediary ever sees your real IP:

Onion Address

zn57bsytz6uvbtilxiaqojtzrag7zgutrjvujckl47hlwwcl2d3pkgad.onion

How to Connect

  1. Download Tor Browser
  2. Open Tor Browser and wait for it to connect
  3. Copy the onion address above and paste it into the Tor Browser address bar

Using Tor provides additional privacy by hiding your IP address and encrypting your connection through the Tor network.

API Documentation

Rate Limits

Automated use is permitted. Please limit requests to 1 per minute. Requests exceeding this may receive a 429 response.

Frequently Asked Questions

Do I need an API key?

No. Public IP and GeoIP lookups are anonymous.

How do I look up another IP address?

Request the address as a path, with an optional output format such as: /8.8.8.8/json

Why are GeoIP fields missing?

GeoIP details are available when the server has its optional GeoIP databases configured and available. IP lookup still works without them.

Troubleshooting

429 Too Many Requests

Slow down and retry after the duration shown in the Retry-After response header.

404 Route not found

Check the path and use a supported endpoint such as /ip, /json, /country, or /{ip}.

More help