메인 콘텐츠로 건너뛰기
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"