Sign Up

Log In

World Cities

FREEMIUM
By andruxnet
Updated 19 hours ago
Location
8.1/10
Popularity Score
265ms
Latency
100%
Success Rate

World Cities API Documentation

Get a list of cities that match a search criteria. Results in JSON and include city, state and country. Search criteria is also applied to states and countries.

Optionally, provide a "searchby" parameter that can be one of "city", "state" or "country" to narrow the results.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

GETQuery
GETQuery

Use a query with at least 3 characters to search for a city, state or country matching the query

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
querySTRING
OPTIONALIt can be part of the name of a city, state or country. At least 3 characters are needed.
searchbySTRING
OPTIONALOptionally search by city, state or country to narrow the results.
Request Snippet
unirest.get("https://andruxnet-world-cities-v1.p.rapidapi.com/?query=undefined&searchby=undefined")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

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://andruxnet-world-cities-v1.p.rapidapi.com/?query=undefined&searchby=undefined")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard