Skip to navigation

List States

Returns the states and provinces of every country, sorted by id in ascending order.

Results are paginated, with 50 states per page by default and a maximum of 250. Use page and limit to retrieve the rest, and Get Count of States to get the total. Because United States states have the lowest IDs, the first page of default results contains only United States states. To get the states of a single country, use List Countryʼs States.

Authentication

X-Auth-Tokenstring

OAuth scopes

UI NamePermissionParameter
Information & Settingsmodifystore_v2_information
Information & Settingsread-onlystore_v2_information_read_only

Authentication header

HeaderArgumentDescription
X-Auth-Tokenaccess_tokenFor more about API accounts that generate access_tokens, see our Guide to API Accounts.

Further reading

For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.

For more about BigCommerce OAuth scopes, see our Guide to API Accounts.

For a list of API status codes, see API Status Codes.

Path parameters

store_hashstringRequired
Permanent ID of the BigCommerce store.

Query parameters

limitintegerOptional1-250Defaults to 50

Number of results to return per page. A limit above 250 returns a 413 error.

pageintegerOptional>=1Defaults to 1
Page number to return.

Response

A list of states.
idintegerOptional

Numeric ID of the state/province.

statestringOptional

Name of the state/province.

state_abbreviationstringOptional

Abbreviation for the state/province.

country_idintegerOptional

Numeric ID of the state’s/province’s associated country.