# GeoDB Cities API API

> The GeoDB API focuses on getting global city and region data. Easily obtain country, region, and city data for use in your apps! <ul> <li>Filter cities by name prefix, country, location, time-zone, and even minimum population.</li> <li>Sort cities by name, country code, elevation, and population - or any combination of these.</li> <li>Get all country regions.</li> <li>Get all cities in a given region.</li> <li> Display results in multiple languages.</li> <li>RESTful API adheres to industry best-practices, including HATEOAS-style links to facilitate paging results. </li> <li>Backed by cloud-based load-balanced infrastructure for resiliency and performance!</li> <li>Data is periodically refreshed from GeoNames and WikiData.</li> </ul> <p>Notes: <ul> <li> Since the database is periodically updated, this may <strong>very rarely</strong> result in certain cities being marked deleted (e.g., duplicates removed). By default, endpoints returning city data will exclude cities marked deleted. However, in the unlikely event that this occurs while your app is paging through a set of affected results - and you care about the paged results suddenly changing underneath - specify <tt>includeDeleted=SINCE_YESTERDAY</tt> (or <tt>SINCE_LAST_WEEK</tt> if you're really paranoid!). </li> </ul> <hr/> <h3>Useful Resources</h3> <ul> <li> SDKs <ul> <li> <a href='https://www.npmjs.com/package/wft-geodb-angular-client'>Angular</a>, <a href='https://github.com/wirefreethought/geodb-sample-angular-app'>Sample App</a> </li> <li><a href='https://github.com/wirefreethought/geodb-java-client'>Java</a></li> <li><a href='https://www.npmjs.com/package/wft-geodb-js-client'>JavaScript</a></li> </ul> <li><a href='swagger.json'>Swagger Docs</a></li> <li><a href='http://creativecommons.org/licenses/by/3.0/'>Usage License</a></li> </li> </ul>.

GeoDB Cities API is a development API from mashape.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 26 endpoints.

## At a glance

- Category: [Development](https://www.openparable.com/apis/category/development)
- Provider: mashape.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://wft-geo-db.p.rapidapi.com/v1
- Documentation: https://mashape.com/
- OpenAPI description: https://api.apis.guru/v2/specs/mashape.com/geodb/1.0.0/swagger.json
- Version: 1.0.0
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://wft-geo-db.p.rapidapi.com/v1/geo/adminDivisions" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /geo/adminDivisions` — Find administrative divisions
- `GET /geo/adminDivisions/{divisionId}` — Get administrative division details
- `GET /geo/adminDivisions/{divisionId}/nearbyCities` — Find cities near division
- `GET /geo/adminDivisions/{divisionId}/nearbyDivisions` — Find divisions near division
- `GET /geo/cities` — Find cities
- `GET /geo/cities/{cityId}` — Get city details
- `GET /geo/cities/{cityId}/dateTime` — Get city date-time
- `GET /geo/cities/{cityId}/distance` — Get city distance
- `GET /geo/cities/{cityId}/locatedIn` — Get city admin region
- `GET /geo/cities/{cityId}/nearbyCities` — Find cities near city
- `GET /geo/cities/{cityId}/time` — Get city time
- `GET /geo/countries` — Find countries
- `GET /geo/countries/{countryId}` — Get country details
- `GET /geo/countries/{countryId}/regions` — Find country regions
- `GET /geo/countries/{countryId}/regions/{regionCode}` — Get region details
- `GET /geo/countries/{countryId}/regions/{regionCode}/adminDivisions` — Find country region administrative divisions
- `GET /geo/countries/{countryId}/regions/{regionCode}/cities` — Find country region cities
- `GET /geo/locations/{locationId}/nearbyCities` — Find cities near location
- `GET /geo/locations/{locationId}/nearbyDivisions` — Find divisions near location
- `GET /locale/currencies` — Find currencies
- `GET /locale/languages` — Get languages
- `GET /locale/locales` — Get locales
- `GET /locale/timezones` — Get time-zones
- `GET /locale/timezones/{zoneId}` — Get time-zone
- `GET /locale/timezones/{zoneId}/dateTime` — Get time-zone date-time
- `GET /locale/timezones/{zoneId}/time` — Get time-zone time

## Questions

### Does the GeoDB Cities API API need an API key?

Yes. The GeoDB Cities API API uses API key authentication; the documentation explains how to get credentials.

### Does the GeoDB Cities API API support HTTPS?

Yes, the GeoDB Cities API API is served over HTTPS.

### How many endpoints does the GeoDB Cities API API have?

Its OpenAPI description lists 26 endpoints in version 1.0.0. All of them are shown on this page.

### What are alternatives to the GeoDB Cities API API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

## Similar development APIs

- [Cloudflare](https://www.openparable.com/apis/cloudflare): Manage DNS, CDN, Workers and other services; documented with an official OpenAPI 3.0 spec
- [Azure DevOps](https://www.openparable.com/apis/azure-devops): The Azure DevOps basic components of a REST API request/response pair
- [IPify](https://www.openparable.com/apis/ipify): A simple IP Address API
- [App Store Connect API](https://www.openparable.com/apis/app-store-connect): The data structure that represents an app store connect api resource.
- [StackExchange](https://www.openparable.com/apis/stackexchange): Q&A forum for developers
- [IPinfo](https://www.openparable.com/apis/ipinfo): Another simple IP Address API
- [IBM Text to Speech](https://www.openparable.com/apis/ibm-text-to-speech): Convert text to speech
- [SiteIntel](https://www.openparable.com/apis/siteintel): Extract metadata, tech stack, emails, and screenshots from any URL
- [DigitalOcean Status](https://www.openparable.com/apis/digitalocean-status): Status of all DigitalOcean services
- [Netlify](https://www.openparable.com/apis/netlify): Netlify is a hosting service for the programmable web
- [Docker Hub](https://www.openparable.com/apis/docker-hub): Interact with Docker Hub
- [MineSkin API](https://www.openparable.com/apis/mineskin): Client implementations: Java: https://github.com/InventivetalentDev/MineskinClient NodeJS: https://github.com/InventivetalentDev/mineskin-client Examples: https://github.com/MineSkin/examples

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/geodb-cities-mashape (OpenParable). Cite the canonical URL above.
