Excel

Export container tracking data to CSV for seamless Excel and BI tool integration.

Tracking shipping containers manually or through web dashboards can be time-consuming and inflexible. This integration allows you to automate container tracking queries and export the results to a CSV file, which is compatible with:

  • Excel
  • Google Sheets
  • Business Intelligence tools (Power BI, Tableau, etc.)
  • Any data processing pipeline

This makes it easy to analyze, share, and visualize shipping data as part of your logistics workflow.


๐Ÿ“ฅ Download

Download the integration package:

๐Ÿ‘

The archive contains:

  • tracking_notebook.ipynb โ€” the Jupyter Notebook script
  • shipment.csv โ€” a sample input file
  • data.csv โ€” a sample output file
  • README.md โ€” this documentation
๐Ÿ“

You can run the notebook in Visual Studio Code or launch it online using Jupyter Lab.


๐Ÿ› ๏ธ What It Does

  • Reads shipment.csv to find the shipments and sealines to be tracked

  • Queries the container tracking API

  • Generates data.csv with all container events:

    • Location
    • Vessel
    • Event description
    • Event code
    • Status

One row per container โ€” if your shipment has multiple containers, each will have its own line.


๐Ÿ” Before You Start

Make sure to enter your API key at the top of the notebook:

API_KEY = "your-api-key-here"

Without this, the script wonโ€™t be able to access the tracking API.


๐Ÿงฉ Easy to Customize

The notebook is written in Python and fully annotated for clarity. Itโ€™s easy to modify for advanced use cases.