ifconfig.ac API, version 1.6.1 curl ifconfig.ac your IP address curl ifconfig.ac/json everything about your connection as JSON YOUR ADDRESS /ip IP address /host reverse DNS name (also: /hostname) /country /country-code country name, two-letter code (also: /country_code) /region /city /zip region, city, postal code (also: /postal) /lat /lon coordinates (also: /latitude, /longitude) /tz IANA time zone (also: /timezone) /isp /org /asn provider, organization, AS number /connection direct, datacenter, mobile or vpn_proxy YOUR REQUEST /ua User-Agent header (also: /user-agent) /lang Accept-Language header (also: /language) /encoding /mime /referer Accept-Encoding, Accept, Referer /forwarded /method X-Forwarded-For, request method /headers all request headers /tls TLS protocol and cipher NETWORK AND REPUTATION /score privacy score from network signals /net AS holder, BGP prefix, RPKI, abuse contact /notation your IP in every notation (also: /notations, /forms) /dnsbl blocklists (IPv4), forward-confirmed reverse DNS (also: /blocklist, /rbl) /lookup/{ip} the same data for any public address EVERYTHING AT ONCE /all all fields as text /json all fields as JSON SERVICE /openapi.json machine-readable description (OpenAPI) /help this text FORMATS Text by default. JSON: add .json to the path or ?format=json to the query. curl ifconfig.ac/city.json curl 'ifconfig.ac/city?format=json' ?format=text always gives plain text, in a browser too. YAML for single fields: .yaml or ?format=yaml. Lookup accepts three spellings: /lookup/8.8.8.8/json /lookup/8.8.8.8.json /lookup/8.8.8.8?format=json LIMIT Your limit: 30 requests per minute. Every response carries the headers: X-RateLimit-Limit requests allowed per minute X-RateLimit-Remaining requests left right now X-RateLimit-Reset seconds until a slot frees up Over the limit the answer is 429 with a Retry-After header (seconds). ERRORS 400 invalid_ip /lookup: not an IP address 400 private_ip /lookup: private or reserved address 404 not_found no such endpoint 405 method_not_allowed only GET, HEAD and OPTIONS 429 rate_limited over the limit Errors are plain text. If you asked for JSON (.json, /json, ?format=json) they are JSON: {"error":{"status":404,"code":"not_found","message":"No such endpoint: /nope","docs":"https://ifconfig.ac/help"}} DATA IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0 Русский: curl 'ifconfig.ac/help?lang=ru'