single
Returns the current postal code or zip code.
The /postal API endpoint provides a straightforward method for retrieving the current postal code or zip code. When this endpoint is queried, the API responds with a simple string indicating the postal code for the current IP address.
get/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.
Response
Postal code or zip code for the IP address.
Changes
No recorded changes to this operation across all 1 revision of this API.