USPS

FREE
By zakutynsky
Updated 5 months ago
Logistics
2.5/10
Popularity Score
396ms
Latency
100%
Success Rate

USPS API Documentation

USPS Tracking/Delivery Confirmation Label APIs

View API Details
POSTgetDeliveryStatus
POSTgetProofOfDeliveryCopy
POSTgetProofOfDeliveryNotification
POSTsetEmailForTrackingNotification
POSTgetDeliveryStatus

Lets customers determine the delivery status of their Priority Mail, Express Mail, and Package Services.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
trackIdLIST
REQUIREDList of track id.
userIdCREDENTIALS
REQUIREDYour application's bitly client id.
Code Snippet
unirest.post("https://USPSzakutynskyV1.p.rapidapi.com/getDeliveryStatus")
.header("X-RapidAPI-Host", "USPSzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://USPSzakutynskyV1.p.rapidapi.com/getDeliveryStatus
Request Method: POST
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.post("https://USPSzakutynskyV1.p.rapidapi.com/getDeliveryStatus")
.header("X-RapidAPI-Host", "USPSzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication