# Maritime Logistics Analytics - Port & Shipping Data (`ntriqpro/maritime-logistics-intel`) Actor

Analyze shipping routes, port efficiency, and maritime supply chains. Track global trade logistics.

- **URL**: https://apify.com/ntriqpro/maritime-logistics-intel.md
- **Developed by:** [daehwan kim](https://apify.com/ntriqpro) (community)
- **Categories:** Business, Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$120.00 / 1,000 maritime logistics queries

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Maritime Logistics Intelligence

Maritime logistics performance and shipping risk intelligence from 4 authoritative data sources.

### Overview

This Actor aggregates shipping and trade data across:
1. **World Bank Logistics Performance Index (LPI)** — 5 sub-indicators (infrastructure, international shipments, logistics competence, timeliness, overall score)
2. **Eurostat Port Statistics** — Gross weight of goods handled in European ports
3. **NOAA Marine Weather Alerts** — Active maritime hazards (US coastal areas only)
4. **UN Comtrade** — International trade flows (export volumes + year-over-year change)

**Output:** Composite logistics score (0–100) + congestion risk assessment + raw source data.

### Input

- **`countryCode`** (required): Two-letter ISO country code (e.g., 'SG', 'NL', 'US')
- **`portRegion`** (optional): Region filter ('east-asia', 'europe', 'north-america', 'middle-east')

#### Examples

```json
{
  "countryCode": "SG"
}
````

```json
{
  "countryCode": "NL",
  "portRegion": "europe"
}
```

### Output

```json
{
  "query": {
    "countryCode": "SG",
    "portRegion": "east-asia"
  },
  "worldBankLPI": {
    "overallScore": 4.0,
    "infrastructure": 4.1,
    "internationalShipments": 3.8,
    "logisticsCompetence": 4.0,
    "timeliness": 4.2,
    "rank": 1
  },
  "eurostatPort": {
    "grossWeightMillionTonnes": 542.1
  },
  "noaaMarine": {
    "activeAlerts": 3,
    "alerts": [
      {
        "state": "CA",
        "event": "Small Craft Advisory",
        "headline": "Small Craft Advisory issued for coastal waters",
        "severity": "Minor"
      }
    ]
  },
  "comtrade": {
    "totalExportsUsd": 515000000000,
    "yoyChangePercent": 2.1
  },
  "logisticsScore": 92,
  "congestionRiskScore": 15,
  "sources": [
    "World Bank Logistics Performance Index (CC-BY 4.0)",
    "Eurostat Port Statistics (CC-BY 4.0)",
    "NOAA National Weather Service Marine Alerts (Public Domain)",
    "UN Comtrade Trade Data (CC-BY 3.0 IGO)"
  ],
  "disclaimer": "...",
  "timestamp": "2026-04-08T15:30:00.000Z"
}
```

### Data Sources

#### World Bank LPI

- **License:** CC-BY 4.0
- **Coverage:** 160+ countries
- **Indicators:** 5 sub-indices + overall score (1–5 scale)
- **Frequency:** Every 2 years (2018, 2020, 2022, 2023 available)

#### Eurostat Port Data

- **License:** CC-BY 4.0 (free re-use)
- **Coverage:** European Union + EFTA ports
- **Metric:** Gross weight (million tonnes) handled annually
- **Note:** Non-European countries return `null`

#### NOAA Marine Alerts

- **License:** Public Domain
- **Coverage:** Coastal United States only
- **Types:** Marine warnings, advisories, hazard statements
- **Update Frequency:** Real-time

#### UN Comtrade

- **License:** CC-BY 3.0 IGO
- **Coverage:** 200+ countries
- **Metric:** Total exports (USD) + year-over-year % change
- **Years:** Current year + previous year comparison

### Scoring Methodology

#### Logistics Score (0–100)

Aggregated from World Bank LPI 5 sub-indicators:

```
Logistics Score = (average of 5 LPI indices) × 20
```

#### Congestion Risk Score (0–100)

Composite assessment from:

- **Marine alerts count:** Active NOAA alerts × 5 (max 40)
- **Trade contraction:** YoY export decline > 5% adds 20 points
- **Poor infrastructure:** LPI < 3 adds 15 points

### ⚠️ Legal Disclaimer

This Actor aggregates publicly available logistics and trade data from:

- The World Bank Logistics Performance Index (CC-BY 4.0)
- Eurostat (CC-BY 4.0 / free re-use allowed)
- NOAA National Weather Service Marine Alerts (Public Domain)
- UN Comtrade (CC-BY 3.0 IGO)

**NOT shipping, logistics, or trade advice.** This Actor provides historical data aggregation only.

- Does NOT forecast shipping delays, port congestion, or freight rates
- Does NOT recommend shipping routes, carriers, or trading decisions
- Does NOT replace official maritime weather warnings
- Does NOT constitute logistics, trade, or investment advice
- For active marine emergencies: contact US Coast Guard or local maritime authorities
- Historical data does not predict future logistics performance

#### Attribution

When republishing data from this Actor:

- "Data source: The World Bank Logistics Performance Index (CC BY 4.0)"
- "Data source: Eurostat (© European Union, free re-use allowed)"
- "Data source: NOAA National Weather Service"
- "Data source: UN Comtrade (CC BY 3.0 IGO)"

### Pricing

**Pay-per-event model:** $0.12 USD per query (charged on successful completion).

### Error Handling

- API timeouts: 15 seconds per actor run
- Partial data is acceptable — if 1 source fails, others still return
- Regional filters are case-insensitive
- Non-existent country codes return empty data with disclaimer

### Region Filters (Informational)

The Actor accepts region hints but does not filter results by region:

- `east-asia`: Singapore, Malaysia, Thailand, Vietnam, HK, etc.
- `europe`: EU + EFTA countries
- `north-america`: US, Canada, Mexico
- `middle-east`: UAE, Saudi Arabia, Qatar, etc.

### Support

For data accuracy or coverage issues, refer to original sources:

- World Bank: https://www.worldbank.org/en/topic/logisticsperformance
- Eurostat: https://ec.europa.eu/eurostat/
- NOAA: https://www.weather.gov/
- UN Comtrade: https://comtradeapi.un.org/

# Actor input Schema

## `countryCode` (type: `string`):

Two-letter ISO country code (e.g., 'SG' for Singapore, 'NL' for Netherlands, 'US' for United States). Required.

## `portRegion` (type: `string`):

Optional region filter: 'east-asia', 'europe', 'north-america', 'middle-east'. If omitted, analyzes all ports for the country.

## Actor input object example

```json
{
  "countryCode": "SG",
  "portRegion": "east-asia"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "countryCode": "SG",
    "portRegion": "east-asia"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ntriqpro/maritime-logistics-intel").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "countryCode": "SG",
    "portRegion": "east-asia",
}

# Run the Actor and wait for it to finish
run = client.actor("ntriqpro/maritime-logistics-intel").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "countryCode": "SG",
  "portRegion": "east-asia"
}' |
apify call ntriqpro/maritime-logistics-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ntriqpro/maritime-logistics-intel",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Maritime Logistics Analytics - Port & Shipping Data",
        "description": "Analyze shipping routes, port efficiency, and maritime supply chains. Track global trade logistics.",
        "version": "1.0",
        "x-build-id": "a0eLHSYQtA3cKAmyT"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ntriqpro~maritime-logistics-intel/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ntriqpro-maritime-logistics-intel",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ntriqpro~maritime-logistics-intel/runs": {
            "post": {
                "operationId": "runs-sync-ntriqpro-maritime-logistics-intel",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ntriqpro~maritime-logistics-intel/run-sync": {
            "post": {
                "operationId": "run-sync-ntriqpro-maritime-logistics-intel",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "countryCode"
                ],
                "properties": {
                    "countryCode": {
                        "title": "Country Code (ISO 2-letter)",
                        "type": "string",
                        "description": "Two-letter ISO country code (e.g., 'SG' for Singapore, 'NL' for Netherlands, 'US' for United States). Required."
                    },
                    "portRegion": {
                        "title": "Port Region (Optional)",
                        "type": "string",
                        "description": "Optional region filter: 'east-asia', 'europe', 'north-america', 'middle-east'. If omitted, analyzes all ports for the country."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
