QIMA Logo

Parameter Provinces by Country Guide

Latest Update Time: 2026-07-02 00:00:00

Use this API to retrieve all provinces (or states) for a specific country.

See the Parameter Introduction for base URL, authentication, and required headers.

Endpoint

GET https://ppapi.qima.com/parameter/v2/country/{countryId}/provinces

Prerequisites

Path Parameters

ParameterRequiredDescription
countryIdYesCountry ID, from Get All Countries or Search Countries.

Query Parameters

ParameterRequiredDescription
refreshNoSend false (default) to use the server cache, or true to force a fresh lookup.

Request Example

curl --location --request GET 'https://ppapi.qima.com/parameter/v2/country/23424781/provinces' \
  --header 'Ai-Api-Access-Token: {your api access token}' \
  --header 'Ai-User-Id: {your user ID}' \
  --header 'Authorization: Bearer {your token}' \
  --header 'Referer: https://preprodmy.qima.com/'

Successful Response

The example below requested countryId=23424781 (China) — the response is trimmed to 2 of many provinces.

{
    "message": null,
    "content": [
        { "label": "Anhui", "value": "12578022" },
        { "label": "Beijing", "value": "12578011" }
    ]
}

Response Field Notes

FieldNotes
content[].labelProvince/state display name.
content[].valueThe province ID. Use this as supplierProvinceID/factoryProvinceID, or pass it to Search Cities in a Province.

Common Errors

See common authentication errors for 401 and 403 responses.

Next Steps

  • Use a province's value to search for cities within it.