Reference Data
List Countries
Returns all countries sorted by name. Use the returned id values as the country_id filter when listing campaigns. Optionally search by name or ISO code.
GET
/pub_api/v3/countries
read:campaigns
Query Parameters
|
qoptional
string
|
Search by country name or ISO code. Case-insensitive partial match. Example: q=DE or q=germany. |
Response fields
FieldTypeDescription
data[].id
integer
Country ID. Pass as
country_id when filtering campaigns.
data[].iso
string
ISO 3166-1 alpha-2 code, e.g.
"IN", "US".
data[].name
string
Country display name in English.
Request
curl https://developers.cuelinks.com/pub_api/v3/countries?q=DE \ -H "Authorization: Token YOUR_API_KEY"
200 OK
200
{ "data": [ { "id": 55, "iso": "DE", "name": "Germany" } ] }