GeoDB Cities

FREEMIUM
By wirefreethought
Updated 3 months ago
Data
9.6/10
Popularity Score
129ms
Latency
100%
Success Rate
GabrielChouinardLetourneau5 months ago
How can I send a request without any limit of results? Hello, I need to send a request so that I can have all of the data necessary to afterwards search in the results given. Thank you in advance
wirefreethoughta month ago
Looking at my reply again, I realize I may not have answered your question. There is no way to retrieve all results without any limit in a single request using the online instance. This is done deliberately, both as a way to incentivize usage of higher-tier plans and also to mitigate potential DoS attacks. If you're still intent on getting unlimited results in one request, you can do so by hosting the service yourself. Contact us through the dev portal site to find out what would be involved to set this up.
wirefreethought5 months ago
If you are referring to the number of results returned per request, that is controlled by the 'limit' param. This param has a maximum value, depending on the plan you've subscribed to. To retrieve all results - after setting 'limit' to the maximum allowed value - you will have to issue multiple requests, incrementing the 'offset' param as needed to get successive pages. (Optionally, you may just use the HATEOAS links in the response.) Please see this link for more details: http://geodb-cities-api.wirefreethought.com/docs/guides/getting-started/pagination
Hi Developer, feel free to post your answer:

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