PrimeFreight Tracking API
PrimeFreight offers a tracking API that enables businesses to monitor ocean freight shipments. This API provides access to shipment information and status updates from shipping lines.What the API Does
-
Create tracking requests
- Use bill of lading or container numbers
- Provide carrier SCAC
- Kick off shipment tracking
-
Retrieve tracking information
- Check tracking request status
- Access shipment data when available
- View request details
-
Receive webhook notifications
- Real-time success/failure updates
- Shipment changes and status updates
-
Get container details
- Status, terminal info, relationships
- Availability, last free day, rail metadata (when available)
-
Get container raw events
- Past and future (estimated) milestones from carriers
- Original carrier event text with normalized event/timestamp fields
-
Get container transport events
- Vetted, normalized milestones for reliable timelines
- Reduced false positives with standardized event types
Authentication
Before calling other endpoints, obtain an access token.- Endpoint:
POST /auth/tokens - Headers:
Content-Type: application/json - Body (JSON):
{ "username": "primefreight", "password": "pass123" }
Authorization header for subsequent requests:
API Architecture
The API follows RESTful principles with JSON:API specification for consistent data formatting. All endpoints require authentication using bearer tokens.Core Endpoints
- POST /auth/tokens - Obtain an access token
- POST /tracking_requests - Create a new tracking request
- GET /tracking_requests/ - Retrieve tracking request details
- GET /containers/ - Retrieve container details
- GET /containers//raw_events - Retrieve container raw events
- GET /containers//transport_events - Retrieve container transport events
- Webhooks - Receive real-time status notifications
Technical Specifications
- API Version: v1
- Base URL:
https://api.primefreight.com - Data Format: JSON:API specification
- Authentication: Bearer token via
Authorizationheader - Webhook Support: Real-time event notifications
Use Cases
The PrimeFreight Tracking API serves basic tracking needs:Shipment Monitoring
- Track individual shipments using available identifiers
- Monitor tracking request status
- Receive notifications about tracking results
Integration
- Integrate tracking capabilities into existing systems
- Build custom tracking interfaces
- Automate tracking request creation
