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