067407f6ba81fc48f1389d0d1c0602f1:98c5e1b747a498b5498bc2f04ca7b0991f5c78c4e35f2c88ec43eb2a9866326aa991f83f58d77a9f7a3584ef51f78d69b266715da99e4db2b84c2d234c096bd34bc87a236bac342623ce5d15387f3d7f
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: 067407f6ba81fc48f1389d0d1c0602f1:98c5e1b747a498b5498bc2f04ca7b0991f5c78c4e35f2c88ec43eb2a9866326aa991f83f58d77a9f7a3584ef51f78d69b266715da99e4db2b84c2d234c096bd34bc87a236bac342623ce5d15387f3d7f'
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: 067407f6ba81fc48f1389d0d1c0602f1:98c5e1b747a498b5498bc2f04ca7b0991f5c78c4e35f2c88ec43eb2a9866326aa991f83f58d77a9f7a3584ef51f78d69b266715da99e4db2b84c2d234c096bd34bc87a236bac342623ce5d15387f3d7f'
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: 067407f6ba81fc48f1389d0d1c0602f1:98c5e1b747a498b5498bc2f04ca7b0991f5c78c4e35f2c88ec43eb2a9866326aa991f83f58d77a9f7a3584ef51f78d69b266715da99e4db2b84c2d234c096bd34bc87a236bac342623ce5d15387f3d7f'
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: 067407f6ba81fc48f1389d0d1c0602f1:98c5e1b747a498b5498bc2f04ca7b0991f5c78c4e35f2c88ec43eb2a9866326aa991f83f58d77a9f7a3584ef51f78d69b266715da99e4db2b84c2d234c096bd34bc87a236bac342623ce5d15387f3d7f'
x-api-token
in the header is not malformed.x-api-token
exists in the header. message
field:{ message: string; }