跳转到主要内容
GET
List of states
payload.state 填写此列表中的 code。列表为美国 50 个州和 DC,其他 country 返回空数组。接受 state 的引擎以及它给任务价格增加的积分见地区与位置。 此端点无需 API 密钥。列表很少变化,请在启动时获取并缓存。响应与 Cloro 一样是纯数组,并带有 Cache-Control: public, max-age=3600。

查询参数

country
string
必填

ISO 3166-1 alpha-2 country code, case-insensitive. Only US returns states.

Required string length: 2
Pattern: ^[A-Za-z]{2}$

响应

The states, in alphabetical order of name.

code
string
必填

USPS two-letter code, the value payload.state takes.

示例:

"CA"

name
string
必填
示例:

"California"