About
EAGLE POST API is a standard interface for logistics shipments. Using the API, you can request information
about the transportation of goods you have purchased from stores with which we cooperate. Our API is based on
the HTTP protocol and is compatible with mobile language developments.
Use API
About the request
Use the http POST method to send requests.
All requests and responses are in JSON format and UTF-8 encoding.
There is only one parameter for obtaining information about the transportation of the parcel:
Tracking number, which must not be a combination of 5 to 50 consecutive letters, numbers, and/or
hyphen.
Question title(required):
Content-Type: application/json
Request body (required) must be in JSON format
Get Tracking Details
To receive delivery details, you only need one parameter - the track number.
curl
PHP
Python
Java
Example Request
curl -X POST \
--header 'Content-Type:application/json' \
--data '[
{
"number": "270434455123"
}
]' \
https://rapid-post.com/api/trackAction
<?php
header('Content-Type: application/json');
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://rapid-post.com/api/trackAction',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '[
{
"number": "FC0124011513US"
}
]',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json'
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
echo $response;
import requests
url = "https://rapid-post.com/api/trackAction"
payload = [
{
"number": "270434455123"
}
]
headers = {
"content-type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
String value = "[\r\n {\r\n \"number\": \"270434455123\"\r\n }\r\n]";
RequestBody body = RequestBody.create(mediaType, value);
Request request = new Request.Builder()
.url("https://rapid-post.com/api/trackAction")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
response.body();
Example Response
{
"data": {
"accepted": {
"number": "FC0124011513US",
"shipper_info": {
"courier": "dhm courier",
"adress": "Beach Haven, NJ"
},
"tracking_info": {
"status": "Delivered",
"recv_adress": "8126 Veterans Mem Pkwy,Saint Peters, MO, 63376-1184",
"points": [
{
"time": "25.01.2023 - 11:00",
"stage": "Reception:",
"description": "Label created",
"adress": "null"
},
{
"time": "25.01.2023 - 18:44",
"stage": "Loading into transport:",
"description": "Nice to go to the department",
"adress": "null"
},
{
"time": "27.01.2023 - 10:10",
"stage": "Arrived at the sorting center:",
"adress": "295 Margaret St SE, Atlanta, GA 30315",
"description": "null"
},
{
"time": "28.01.2023 - 11:15",
"stage": "Left the sorting center:",
"adress": "295 Margaret St SE, Atlanta, GA 30315",
"description": "null"
},
{
"time": "30.01.2023 - 18:15",
"stage": "Delivered by courier to Mark Hesskamp customer:",
"adress": "8126 Veterans Mem Pkwy, Saint Peters, MO, 63376-1184, United States",
"description": "null"
}
]
},
"package_details": {
"weight": "2",
"volume": "null",
"total_pieces": "1",
"quantity": "1",
"packaging": "Package"
}
}
}
}
Answer explanation:
Element
Type
Description
data
object
Response data.
data.accepted
object
Shows data that has been successfully received and processed.
number.rejected
string
This shows that the tracking numbers could not be processed. An error code will be returned.
number
string
Track number.
shipper_info
object
Shipper information.
courier
string
The name of the company that transports the parcel.
shipper_info.adress
string
Shipper's address.
tracking_info
object
Parcel tracking information.
tracking_info.status
string
Shipment status.
tracking_info.recv_adress
string
The address where the parcel will be delivered.
tracking_info.points
object
Stages of the delivery process.
tracking_info.time
string
Date and time of the stage.
tracking_info.stage
string
Stage name.
tracking_info.description
object
Stage description.
tracking_info.adress
string
The address where the parcel was delivered. Has the same properties as tracking_info.recv_adress.
package_details
object
Parcel Information.
package_details.weight
string
Parcel weight in kg.
package_details.volume
string
Parcel volume.
package_details.total_pieces
string
Number of parcels.
package_details.quantity
string
Quantity in a package.
package_details.packaging
string
Parcel packaging.
List of HTTP Status Codes
Code
Description
404
Invalid request URL.
500
Server error.