Get Shipping Tracking detailed status using tracking number and carrier code.

FREEMIUM
By snapCX
Updated 4 months ago
Commerce
4.5/10
Popularity Score
311ms
Latency
-
Success Rate

Get Shipping Tracking detailed status using tracking number and carrier code. API Documentation

This API returns detailed tracking status (all tracking events) for a shipment. It supports these shipping carriers USPS, UPS, FEDEX and DHL. This requires two input parameters. Actual tracking number and carrier code.

View API Details
GETShipping Tracking Details
GETShipping Tracking Details

Returns detailed shipping tracking details using tracking number and carrier code. Supported carrier codes are USPS, UPS, FEDEX and DHL.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
trackIdSTRING
REQUIREDEnter Shipping tracking number.
carrierSTRING
REQUIREDValid values are USPS or UPS or FEDEX or DHL
Code Snippet
unirest.get("https://snapcx-shipping-tracking-v1.p.rapidapi.com/getTrackingDetails")
.header("X-RapidAPI-Host", "snapcx-shipping-tracking-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://snapcx-shipping-tracking-v1.p.rapidapi.com/getTrackingDetails
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://snapcx-shipping-tracking-v1.p.rapidapi.com/getTrackingDetails")
.header("X-RapidAPI-Host", "snapcx-shipping-tracking-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