254066eccf0688ea7336de5395c6fe9d:64889eb7813bdb57439c2025640fc4d4a692de931858005ddb85a92118f847e073899e10d8638eae8f235014a043ba4c69a9a6ccf922850534605b7f13e0c060bdfa59092a8125a50832825601ab8165
x-api-token
in header. By using the RandomCoords APIs, you agree to the Terms and Conditions.GET https://api.randomcoords.com/v1/coordinates/regions
{ type: "regions"; results: number; data: { id: string; name: string; }[]; }
curl --location --request GET 'https://api.randomcoords.com/v1/coordinates/regions' --header 'x-api-token: 254066eccf0688ea7336de5395c6fe9d:64889eb7813bdb57439c2025640fc4d4a692de931858005ddb85a92118f847e073899e10d8638eae8f235014a043ba4c69a9a6ccf922850534605b7f13e0c060bdfa59092a8125a50832825601ab8165'
GET https://api.randomcoords.com/v1/coordinates/regions/{region}?limit={number}
Query Parameters: limit
(optional, max 100, default 1)
{ id: string; name: string; type: "region"; results: number; data: { id: string; country: string; city: string; iso2: string; coordinates: [number, number]; }[]; }
curl --location --request GET 'https://api.randomcoords.com/v1/coordinates/regions/south-america?limit=5' --header 'x-api-token: 254066eccf0688ea7336de5395c6fe9d:64889eb7813bdb57439c2025640fc4d4a692de931858005ddb85a92118f847e073899e10d8638eae8f235014a043ba4c69a9a6ccf922850534605b7f13e0c060bdfa59092a8125a50832825601ab8165'
GET https://api.randomcoords.com/v1/coordinates/countries
{ type: "countries"; results: number; data: { id: string; name: string; iso2: string; }[]; }
curl --location --request GET 'https://api.randomcoords.com/v1/coordinates/countries' --header 'x-api-token: 254066eccf0688ea7336de5395c6fe9d:64889eb7813bdb57439c2025640fc4d4a692de931858005ddb85a92118f847e073899e10d8638eae8f235014a043ba4c69a9a6ccf922850534605b7f13e0c060bdfa59092a8125a50832825601ab8165'
GET https://api.randomcoords.com/v1/coordinates/countries/{country}?limit={number}
Query Parameters: limit
(optional, max 100, default 1)
{ id: string; name: string; type: "country"; regions: string[]; iso2: string; results: number; data: { city: string; state?: string; coordinates: [number, number]; }[]; }
curl --location --request GET 'https://api.randomcoords.com/v1/coordinates/countries/united-states?limit=5' --header 'x-api-token: 254066eccf0688ea7336de5395c6fe9d:64889eb7813bdb57439c2025640fc4d4a692de931858005ddb85a92118f847e073899e10d8638eae8f235014a043ba4c69a9a6ccf922850534605b7f13e0c060bdfa59092a8125a50832825601ab8165'
x-api-token
in the header is not malformed.x-api-token
exists in the header. message
field:{ message: string; }