The Shippo Address API
Download OpenAPI description
Overview
URL
Shippo Support
Languages
Servers
https://api.goshippo.com
Request
Returns validation test results along with a recommended address.
Validates both US and international addresses.
US required combinations
state_province + city_locality + address_line_1
or
address_line_1 + postal_code
International required combinations
city_locality + address_line_1
Security
Shippo_Token
Query
The organization of the addressee
Example: organization=Shippo
The first line of the address
Example: address_line_1=731 Market Street
The second line of the address
Example: address_line_2=#200
The city or locality of the address
Example: city_locality=San Francisco
The state, province, county, or municipal division
Example: state_province=CA
The postal code or zip code
Example: postal_code=94103
- https://api.goshippo.com/v2/addresses/validate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.goshippo.com/v2/addresses/validate?name=Wilson&organization=Shippo&address_line_1=731%20Market%20Street&address_line_2=%23200&city_locality=San%20Francisco&state_province=CA&postal_code=94103&country_code=US' \
-H 'Authorization: ShippoToken <API_TOKEN>'Response
application/json
{ "original_address": { "address_line_1": "string", "address_line_2": "string", "city_locality": "string", "state_province": "string", "postal_code": "string", "country_code": "string", "name": "string", "organization": "string", "phone": "string", "email": "user@example.com" }, "recommended_address": { "address_line_1": "string", "address_line_2": "string", "city_locality": "string", "state_province": "string", "postal_code": "string", "country_code": "string", "name": "string", "organization": "string", "phone": "string", "email": "user@example.com", "complete_address": "string", "confidence_result": { … } }, "analysis": { "validation_result": { … }, "address_type": "unknown", "changed_attributes": [ … ] }, "geo": { "latitude": 0, "longitude": 0 } }