Understanding the Country object and its role in the Ping Proxies API
Attribute | Type | Description |
---|---|---|
country_id | string | Unique two-letter identifier for the country (ISO 3166-1 alpha-2 code) |
country_name | string | Full name of the country |
country_alias | string | Alternative or shortened identifier for the country |
continent_id | string | Identifier of the continent where the country is located |
country_is_european_union | boolean | Indicates if the country is a member of the European Union |
Endpoint | Description |
---|---|
GET /public/user/country/retrieve/{country_id} | Retrieve a specific country |
GET /public/user/country/search | Search countries with various filters |
GET /public/user/subdivision/search?country_id={country_id} | Get subdivisions in a specific country |
country_id
uses the ISO 3166-1 alpha-2 standard (e.g., “us” for United States, “gb” for United Kingdom)country_is_european_union
flag is particularly useful for compliance with GDPR and other EU-specific regulationscountry_id
is commonly used to identify region-specific offerings