ifconfig

About

Supported clients

Any HTTP compatible client is supported, including your browser, cURL, HTTPie, GNU Wget and FreeBSD fetch.

ClientCommand
cURL$ curl ip.e7d.io
HTTPie$ http -b ip.e7d.io
GNU Wget$ wget -qO- ip.e7d.io
fetch$ fetch -qo- ip.e7d.io

Output formats

Different output formats are supported: HTML, JSON, Text, XML and YAML.
The response will use the first compatible output format listed in the "Accept" header, and JSON is always used as fallback.

The Output format can also be forced through URL:

FormatLink
HTMLip.e7d.io/html
JSONip.e7d.io/json
JSONPip.e7d.io/jsonp
Textip.e7d.io/text
XMLip.e7d.io/xml
YAMLip.e7d.io/yaml

Specific field query

Every field visible in the JSON, XML and YAML format can be queried specifically.

To do so, use the URL to query them, using a slashed syntax:

FormatLink
IPip.e7d.io/ip
Host nameip.e7d.io/host
ASN[1]ip.e7d.io/asn
Countryip.e7d.io/country
Cityip.e7d.io/city
Postal codeip.e7d.io/postal
Subdivisions[2]ip.e7d.io/subdivisions
Coordinatesip.e7d.io/location
Time zoneip.e7d.io/timezone
Client portip.e7d.io/port
HTTP methodip.e7d.io/method
HTTP refererip.e7d.io/referer
HTTP headersip.e7d.io/headers

Query generator

 

FAQ

Is using this service from automated scripts/tools permitted?

Yes.

Is IPv6 supported?

Yes.

Is this service rate-limited?

Yes. 500 requests are accepted every 60 seconds.

In between requests will get a "429 Too Many Requests" error, with a Retry-After response header having a pair of values indicating when the next query will succeed.

Successful requests will get "RateLimit" headers indicating:

Can I run my own service?

Yes, the source code is available on GitHub.

External resources

This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.

References

  1. ^ Autonomous system number
  2. ^ Administrative subdivisions are specific to each country and may or may not be specified.