17track

FREEMIUM
By apidojo
Updated a month ago
Logistics
8.1/10
Popularity Score
2476ms
Latency
96%
Success Rate

17track API Documentation

API to query realtime tracking information of packages by tracking code as on 17track official site

View API Details
GETtrack
GETtrack

Get tracking information by tracking codes

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
codesSTRING
REQUIREDPass this param multiple times to fetch tracking info of different packages, ex : &codes=1Z533WF70300100653&codes=9405509699937846959165
Optional Parameters
timeZoneOffsetSTRING
OPTIONALGMT+7 -> 7 x 60 = 420 or GMT-7 -> -7 x 60 = -420
Code Snippet
unirest.get("https://apidojo-17track-v1.p.rapidapi.com/track?timeZoneOffset=0&codes=1Z533WF70300100653")
.header("X-RapidAPI-Host", "apidojo-17track-v1.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://apidojo-17track-v1.p.rapidapi.com/track
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://apidojo-17track-v1.p.rapidapi.com/track?timeZoneOffset=0&codes=1Z533WF70300100653")
.header("X-RapidAPI-Host", "apidojo-17track-v1.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