Search shipments, containers, and tracking requests
curl --request GET \
--url https://api.terminal49.com/v2/search \
--header 'Authorization: <api-key>'import requests
url = "https://api.terminal49.com/v2/search"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.terminal49.com/v2/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.terminal49.com/v2/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.terminal49.com/v2/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.terminal49.com/v2/search")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.terminal49.com/v2/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "abc12345-6789-40ef-9012-3456789abcde",
"type": "shipment",
"attributes": {
"entity_type": "shipment",
"number": "MEDUA1234567",
"shipment_id": null,
"scac": "MSCU",
"port_of_lading_name": "Shanghai",
"port_of_discharge_name": "Los Angeles",
"containers_count": 3,
"tracking_stopped": false,
"tracking_stopped_reason": null,
"status": null,
"failed_reason": null,
"ref_numbers": [
"PO-2026-001"
],
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-03-01T14:22:00.000Z"
}
},
{
"id": "def45678-9012-43ab-9cde-f0123456789a",
"type": "cargo",
"attributes": {
"entity_type": "cargo",
"number": "MSCU1234567",
"shipment_id": "abc12345-6789-40ef-9012-3456789abcde",
"scac": "MSCU",
"port_of_lading_name": null,
"port_of_discharge_name": null,
"containers_count": null,
"tracking_stopped": null,
"tracking_stopped_reason": null,
"status": null,
"failed_reason": null,
"ref_numbers": [],
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-03-01T14:22:00.000Z"
}
}
]
}{
"errors": [
{
"detail": "Query parameter is required"
}
]
}{
"errors": [
{
"status": "401",
"title": "Unauthorized",
"detail": "Invalid or missing API token."
}
]
}Search
Search
Full-text search across shipments, containers, and tracking requests in your Terminal49 account by BL number, container number, or reference number.
GET
/
search
Search shipments, containers, and tracking requests
curl --request GET \
--url https://api.terminal49.com/v2/search \
--header 'Authorization: <api-key>'import requests
url = "https://api.terminal49.com/v2/search"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.terminal49.com/v2/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.terminal49.com/v2/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.terminal49.com/v2/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.terminal49.com/v2/search")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.terminal49.com/v2/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "abc12345-6789-40ef-9012-3456789abcde",
"type": "shipment",
"attributes": {
"entity_type": "shipment",
"number": "MEDUA1234567",
"shipment_id": null,
"scac": "MSCU",
"port_of_lading_name": "Shanghai",
"port_of_discharge_name": "Los Angeles",
"containers_count": 3,
"tracking_stopped": false,
"tracking_stopped_reason": null,
"status": null,
"failed_reason": null,
"ref_numbers": [
"PO-2026-001"
],
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-03-01T14:22:00.000Z"
}
},
{
"id": "def45678-9012-43ab-9cde-f0123456789a",
"type": "cargo",
"attributes": {
"entity_type": "cargo",
"number": "MSCU1234567",
"shipment_id": "abc12345-6789-40ef-9012-3456789abcde",
"scac": "MSCU",
"port_of_lading_name": null,
"port_of_discharge_name": null,
"containers_count": null,
"tracking_stopped": null,
"tracking_stopped_reason": null,
"status": null,
"failed_reason": null,
"ref_numbers": [],
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-03-01T14:22:00.000Z"
}
}
]
}{
"errors": [
{
"detail": "Query parameter is required"
}
]
}{
"errors": [
{
"status": "401",
"title": "Unauthorized",
"detail": "Invalid or missing API token."
}
]
}Authorizations
Use a Terminal49 API key in the Authorization header with the Token prefix.
Authorization: Token YOUR_API_KEY
Query Parameters
Search term to match against BL numbers, container numbers, reference numbers, and other indexed fields. Supports full-text search and partial (ILIKE) matching.
Response
Successful search results
Show child attributes
Show child attributes
Was this page helpful?
⌘I