Help & API Reference
Get your public IP address (plain text — works with curl, wget, HTTPie, etc.):
Basic Usage
curl -q -LSsf https://ifcfg.us/ipForce IPv4 or IPv6:
curl -q -LSsf -4 ifcfg.uscurl -q -LSsf -6 ifcfg.usFeatures
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/jsonForce 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/countrycurl -q -LSsf https://ifcfg.us/country-isocurl -q -LSsf https://ifcfg.us/citycurl -q -LSsf https://ifcfg.us/coordinatescurl -q -LSsf https://ifcfg.us/asncurl -q -LSsf https://ifcfg.us/asn-orgLook Up Another IP
Query any IP address for GeoIP data:
curl -q -LSsf https://ifcfg.us/8.8.8.8curl -q -LSsf https://ifcfg.us/8.8.8.8/jsoncurl -q -LSsf https://ifcfg.us/2001:4860:4860::8888/jsonPort Reachability
Check if a port is open on the requesting IP:
curl -q -LSsf https://ifcfg.us/port/22curl -q -LSsf https://ifcfg.us/port/443API Formats
- Plain text — default for curl/wget/CLI user-agents and empty User-Agent
- JSON —
Accept: application/jsonheader, or/jsonsuffix - 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
- Download Tor Browser
- Open Tor Browser and wait for it to connect
- 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}.