Integrate WorldSail's tracking capabilities directly into your applications. Our RESTful API provides real-time access to tracking data, shipment management, and analytics.
Get started with just a few lines of code. Our API is designed to be intuitive and easy to integrate.
// Track a parcel using the tracking number
const response = await fetch('https://api.WorldSail.com/v1/track/LT-2026-8821', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
{
"tracking_number": "LT-2026-8821",
"status": "delivered",
"origin": "New York, USA",
"destination": "London, UK",
"eta": "2026-06-21",
"recipient": "John Smith",
"weight": "2.5 kg",
"current_location": {
"lat": 51.5074,
"lng": -0.1278,
"address": "London, UK"
},
"timeline": [
{ "status": "Order Processed", "date": "2026-06-18 09:30" },
{ "status": "In Transit", "date": "2026-06-19 08:15" },
{ "status": "Delivered", "date": "2026-06-21 14:30" }
]
}
Complete set of endpoints to manage your tracking operations.
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/track/:tracking_number | Get tracking details for a parcel |
| POST | /v1/track | Create a new tracking record |
| PUT | /v1/track/:tracking_number | Update tracking information |
| DELETE | /v1/track/:tracking_number | Delete a tracking record |
| GET | /v1/track/:tracking_number/history | Get tracking history for a parcel |
| GET | /v1/clients | List all clients |
Seamlessly integrate WorldSail with your favorite platforms and services.
All API requests must be authenticated using an API key. We support both Bearer token and API key header authentication methods.
Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY
// Example: PHP cURL request
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.WorldSail.online/v1/track/LT-2026-8821',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
]
]);
$response = curl_exec($curl);
You can get your API key by signing up for a WorldSail account and visiting the API section in your dashboard. Free and paid plans are available.
Free plans have a limit of 1,000 requests per minute. Professional and Enterprise plans have higher limits. Contact our sales team for custom rate limits.
Yes, we provide official SDKs for Python, JavaScript, PHP, and Ruby. Check our GitHub repository for documentation and examples.
Webhooks allow you to receive real-time notifications when shipment status changes. Configure webhook URLs in your dashboard and we'll send POST requests with the tracking data.
Get your API key and start building today. Join 500+ developers already using our API.