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