メインコンテンツへスキップ
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"