single
Returns a postal for the selected IP.
The /postal API lets users input an IP address to get back the corresponding postal or zip code in a simple string format.
get/{ip}/postal
Request
- Base URLhttps://ipinfo.io
- Auth
- HTTP basic
- or HTTP bearer
- or API key in query parameter token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ipstring required
A single IPv4 or IPv6 IP address.
Response
Postal code or zip code for the IP address.
Changes
No recorded changes to this operation across all 1 revision of this API.