Wayfinder test endpoints

FREE
By waynaut
Updated 4 months ago
Travel
-/10
Popularity Score
-
Latency
-
Success Rate

Wayfinder test endpoints API Documentation

Test Endpoints for Waynaut's Wayfinder new APIs!!! Preview of new features

View API Details
GETlocations
GETtransporttypes
POSTtravels
GET/travels/{searchid}
GETtravelsolution
GETtrips
GETlocations

Retrieve data about a location including the region, area and the country. The data can be localized using the 'Accept-Language' header (Available languages: 'en', 'it', 'de'. Default 'en').

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
qSTRING
REQUIREDThe search criteria for the request
Optional Parameters
prettyBOOLEAN
OPTIONALFormats JSON output so it's easier to read
sizeNUMBER
OPTIONALMax number of hits returned
admin1nameSTRING
OPTIONALAdministrative code 1 name
countrySTRING
OPTIONALCountry code (ISO 3166-1 alpha-2 code)
Code Snippet
unirest.get("https://waynaut-test.p.rapidapi.com/locations?pretty=false&size=20&country=IT&q=Milan")
.header("X-RapidAPI-Host", "waynaut-test.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://waynaut-test.p.rapidapi.com/locations
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://waynaut-test.p.rapidapi.com/locations?pretty=false&size=20&country=IT&q=Milan")
.header("X-RapidAPI-Host", "waynaut-test.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