API Endpoints
Ocean Tracking
Get Containers
2 min
this api enables users to track different details of the cargo that the particular user has subscribed furthermore, users can also retrieve filtered cargo details of specific container number or mbl number using the query parameters { "tab" "examples", "url" "https //tnt api rpalabs io/api/v1/track and trace/ocean/containers", "name" "get container", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[ { "kind" "optional", "name" "container", "type" "string", "description" "filter the query and retrive the data having specific container number, shows empty list if not found" }, { "kind" "optional", "name" "mbl", "type" "string", "description" "filter the query and retrive the data having specific mbl number, shows empty list if not found" } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "bearer access token from login api" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "rzjawukvoxfexatglewze", "code" "{\n \\"containers\\" \[\n {\n \\"tracking events\\" \[\n {\n \\"event location\\" \\"constanta, ro\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"rocnd\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"export received at cy\\",\n \\"event time\\" \\"2021/12/15 0 00 00\\"\n },\n {\n \\"event location\\" \\"constanta, ro\\",\n \\"vessel name\\" \\"msc nilgun\\",\n \\"event location code\\" \\"rocnd\\",\n \\"voyage number\\" \\"ac150r\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"export loaded on vessel\\",\n \\"event time\\" \\"2022/1/4 0 00 00\\"\n },\n {\n \\"event location\\" \\"gioia tauro, it\\",\n \\"vessel name\\" \\"msc nilgun\\",\n \\"event location code\\" \\"itgit\\",\n \\"voyage number\\" \\"ac203a\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"full transshipment discharged\\",\n \\"event time\\" \\"2022/1/24 0 00 00\\"\n },\n {\n \\"event location\\" \\"gioia tauro, it\\",\n \\"vessel name\\" \\"msc nilgun\\",\n \\"event location code\\" \\"itgit\\",\n \\"voyage number\\" \\"ac203a\\",\n \\"is estimated\\" true,\n \\"event description\\" \\"board arrive\\",\n \\"event time\\" \\"2022/1/24 0 00 00\\"\n },\n {\n \\"event location\\" \\"gioia tauro, it\\",\n \\"vessel name\\" \\"msc nilgun\\",\n \\"event location code\\" \\"itgit\\",\n \\"voyage number\\" \\"ac203a\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"board arrive\\",\n \\"event time\\" \\"2022/1/24 0 00 00\\"\n },\n {\n \\"event location\\" \\"gioia tauro, it\\",\n \\"vessel name\\" \\"msc judith\\",\n \\"event location code\\" \\"itgit\\",\n \\"voyage number\\" \\"xa207a\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"full transshipment loaded\\",\n \\"event time\\" \\"2022/2/15 0 00 00\\"\n },\n {\n \\"event location\\" \\"gioia tauro, it\\",\n \\"vessel name\\" \\"msc judith\\",\n \\"event location code\\" \\"itgit\\",\n \\"voyage number\\" \\"207a\\",\n \\"is estimated\\" true,\n \\"event description\\" \\"departure from load port\\",\n \\"event time\\" \\"2022/2/15 0 00 00\\"\n },\n {\n \\"event location\\" \\"gioia tauro, it\\",\n \\"vessel name\\" \\"msc judith\\",\n \\"event location code\\" \\"itgit\\",\n \\"voyage number\\" \\"207a\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"departure from load port\\",\n \\"event time\\" \\"2022/2/15 0 00 00\\"\n },\n {\n \\"event location\\" \\"savannah, us\\",\n \\"vessel name\\" \\"msc judith\\",\n \\"event location code\\" \\"ussav\\",\n \\"voyage number\\" \\"207a\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"carrier release\\",\n \\"event time\\" \\"2022/2/25 0 00 00\\"\n },\n {\n \\"event location\\" \\"savannah, us\\",\n \\"vessel name\\" \\"msc judith\\",\n \\"event location code\\" \\"ussav\\",\n \\"voyage number\\" \\"207a\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"import discharged from vessel\\",\n \\"event time\\" \\"2022/3/8 0 00 00\\"\n },\n {\n \\"event location\\" \\"savannah, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"ussav\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"import loaded on rail\\",\n \\"event time\\" \\"2022/3/9 0 00 00\\"\n },\n {\n \\"event location\\" \\"savannah, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"ussav\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"import rail departure\\",\n \\"event time\\" \\"2022/3/12 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" true,\n \\"event description\\" \\"import estimated to arrive at ramp\\",\n \\"event time\\" \\"2022/3/14 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"import arrived at destination rail ramp\\",\n \\"event time\\" \\"2022/3/15 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"full available for delivery\\",\n \\"event time\\" \\"2022/3/16 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"import unloaded from rail\\",\n \\"event time\\" \\"2022/3/16 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\" free time to expire\\",\n \\"event time\\" \\"2022/3/18 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"import to consignee\\",\n \\"event time\\" \\"2022/4/1 0 00 00\\"\n },\n {\n \\"event location\\" \\"portland, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"uspdx\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"full delivered to consignee\\",\n \\"event time\\" \\"2022/4/9 0 00 00\\"\n },\n {\n \\"event location\\" \\"nashville, us\\",\n \\"vessel name\\" \\"\\",\n \\"event location code\\" \\"usbna\\",\n \\"voyage number\\" \\"\\",\n \\"is estimated\\" false,\n \\"event description\\" \\"empty received at cy\\",\n \\"event time\\" \\"2022/4/9 0 00 00\\"\n }\n ],\n \\"vessel\\" {\n \\"vessel name\\" \\"msc judith\\",\n \\"carrier code\\" \\"medu\\",\n \\"voyage number\\" \\"207a\\"\n },\n \\"id\\" \\"62bc3e889efa9e2d96aa2fd9\\",\n \\"updated at\\" \\"2022/3/29 23 31 48\\",\n \\"mbl number\\" \\"meduro431163\\",\n \\"container number\\" \\"msmu6202330\\",\n \\"tracking finished time\\" \\"2022/4/13 7 39 26\\",\n \\"port\\" {\n \\"port of discharge\\" \\"savannah, us\\",\n \\"place of delivery\\" \\"portland, us\\",\n \\"place of receipt\\" \\"slatina, ro\\",\n \\"place of delivery code\\" \\"uspdx\\",\n \\"port of discharge code\\" \\"ussav\\",\n \\"port of loading\\" \\"constanta, ro\\",\n \\"place of receipt code\\" \\"rosla\\",\n \\"port of loading code\\" \\"rocnd\\"\n }\n }\n ]\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "rzjawukvoxfexatglewze" }, "examples" { "languages" \[ { "id" "p8lw7raoyklydiia0vdes", "code" "curl location request get 'https //tnt api rpalabs io/api/v1/track and trace/ocean/containers?container=string\&mbl=string' \\\\\n header 'accept application/json'", "language" "curl", "customlabel" "" }, { "id" " y 4 itnbfzbz5d tkei", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //tnt api rpalabs io/api/v1/track and trace/ocean/containers?container=string\&mbl=string',\n 'headers' {\n 'accept' 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "language" "nodejs", "customlabel" "" }, { "id" "nilns5znpkpecvjizltef", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //tnt api rpalabs io/api/v1/track and trace/ocean/containers?container=string\&mbl=string\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "mzyl ey5vambgegorhaxe", "code" "import http client\n\nconn = http client httpsconnection(\\"tnt api rpalabs io\\")\npayload = ''\nheaders = {\n 'accept' 'application/json'\n}\nconn request(\\"get\\", \\"/api/v1/track and trace/ocean/containers?container=string\&mbl=string\\", payload, headers)\nres = conn getresponse()\ndata = res read()\nprint(data decode(\\"utf 8\\"))", "language" "python", "customlabel" "" }, { "id" "xzplftmnisobwdhuhv8d6", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //tnt api rpalabs io/api/v1/track and trace/ocean/containers?container=string\&mbl=string\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "p8lw7raoyklydiia0vdes" }, "description" "get container details by container number and mbl number", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } see the error handling page for troubleshooting any errors âī¸ need some help? if you encounter a problem or require assistance, please contact our support team with details regarding your request at support\@rippey ai a representative will connect with you soon đ

