GeoDB Cities

FREEMIUM
By wirefreethought
Updated 2 days ago
Data
9.7/10
Popularity Score
142ms
Latency
100%
Success Rate

GeoDB Cities API Documentation

Get global city, region, and country data. Filter cities by name prefix, country, location, time-zone, and even minimum population. Display results in multiple languages. Sort by name, country code, elevation, and population - or any combination of these. Get distances between cities. Get all country regions. Get all cities in a given region. RESTful API adheres to industry best-practices, including HATEOAS-style links to facilitate paging results. Data is periodically refreshed from GeoNames and WikiData. Backed by cloud-based load-balanced infrastructure for resiliency and performance! If you'd like to host the service internally, contact us for details through the dev portal site. Data licensed under Creative Commons, http://creativecommons.org/licenses/by/3.0

View API Details
locale
GETLocales
GETCurrencies
GETTime-Zones
GETTime-Zone Date-Time
GETTime-Zone Time
GETLanguages
geo
GETCities
GETCity Details
GETCountries
GETCountry Details
GETCountry Regions
GETCountry Region Details
GETCountry Region Cities
GETCities Near City
GETCity Date-Time
GETCity Time
GETCity Distance
GETCities Near Location
GETAdministrative Division Details
GETCities Near Division
GETDivisions Near Division
GETDivisions Near Location
GETCountry Region Divisions
GETAdministrative Divisions
GETLocales

Get all known locales.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
offsetNUMBER
OPTIONALThe zero-ary offset index into the results
limitNUMBER
OPTIONALThe maximum number of results to retrieve
hateoasModeBOOLEAN
OPTIONALInclude HATEOAS-style links in results
Code Snippet
unirest.get("https://wft-geo-db.p.rapidapi.com/v1/locale/locales")
.header("X-RapidAPI-Host", "wft-geo-db.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://wft-geo-db.p.rapidapi.com/v1/locale/locales
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://wft-geo-db.p.rapidapi.com/v1/locale/locales")
.header("X-RapidAPI-Host", "wft-geo-db.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication