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