For the complete documentation index, see llms.txt. This page is also available as Markdown.

States list

Retrieves a paginated list of states/regions with their geographic identifiers.

This endpoint provides standardized state information for use in address forms, geographic filtering, and regional data management.

Endpoint

GET/v2/geo/state

Link

Request

Headers

Key

Value

Required

Authorization

123

Yes

Accept

application/json

Yes

Query Parameters

Parameter

Type

Description

Required

Example

filter

string

Optional filter for state names or codes.

No

"california"

meta.page

integer

Page number (starts from 0).

No

0

meta.pageSize

integer

Items count per page.

No

50


Response (200 OK)

Returns a paginated list of state/region objects with geographic identifiers and pagination metadata.

Response Fields

Items Array

Array of state objects with the following structure:

Field

Type

Description

Example

id

integer

Unique state ID.

5

iso

string

ISO country code the state belongs to.

"US"

code

string

State/region code (abbreviation).

"CA"

name

string

Full state/region name.

"California"

Meta Object

Pagination metadata for the response:

Field

Type

Description

Example

pageSize

integer

Number of items per page.

50

page

integer

Current page number (0-based).

0

total

string

Total number of items across all pages.

"50"


Examples

Request (All States with Pagination)

bash

Response

json

Request (Filtered by Name)

bash

Response (Filtered)

json

Request (Filtered by Code)

bash

Response (Code Filter)

json

Request (Default Pagination)

bash

Response (Default)

json


Error Responses

  1. Invalid Page Parameters:

    json

  2. Unauthorized:

    json

  3. Rate Limit Exceeded:

    json


Notes

  • Pagination: Default page size is typically 50 items if not specified

  • Filtering: The filter parameter searches both state names and codes

  • International Support: Includes states/regions from multiple countries (US, CA, GB, etc.)

  • ISO Codes: Uses standard ISO 3166 country codes

  • Sorting: Results are typically sorted by country ISO code and state name

  • Performance: Efficient for dropdown population and geographic data management

Common Use Cases:

  • Address form state/region dropdowns

  • Geographic filtering and reporting

  • Regional data analysis

  • Compliance with geographic requirements

  • Multi-country application support

Filter Behavior:

  • Case-insensitive search

  • Matches partial names and codes

  • Searches across all countries

  • Returns results from any matching field (name or code)

Real request example

Real response example

200 OK

Last updated