Random Country Code Generator
API Documentation
GET
https://randomdatatool.com/api/address/countrycodeQuery Parameters
| Parameter | Type | Description |
|---|---|---|
| count | int | Number of entries to return. Default: 10. Max: 1000. |
| to_upper_case | bool | Transform the result string to uppercase. |
Response JSON
{
"status": "success",
"data": [
],
"count": 2
}
"status": "success",
"data": [
"HT",
"BR"
"count": 2
}
Implementation
curl -X GET "https://randomdatatool.com/api/address/countrycode?to_upper_case=true&count=10"