Tanker Polygon Events
The Polygon Event API enables historical and real-time tracking of tanker and gas vessels as they enter or exit defined maritime zones such as ports, canals, anchorages, terminals, and shipyards. Leveraging over 12 years of AXSMarine’s proprietary AIS data, this API provides structured insights into vessel movements across 60,000+ geofenced polygons.
A Polygon Event represents a vessel’s movement through a strategically defined maritime zone, triggered when the vessel enters and exits the area. Each event is captured through two key AIS signals: entry (the first AIS signal detected within the polygon) and out (the last AIS signal before the vessel leaves the polygon), as reflected in the API response.
Key Features
🚢 Vessel Activity Insights – Identify when a vessel enters and exits a geofenced area using the first and last AIS signals within the polygon. Each “Polygon Event” captures both entry and out parameters, providing a detailed snapshot of vessel operations.
📍 Geofenced Tracking – Monitor tanker and gas vessel movements across anchorages, canals, terminals, and more, using AXSMarine’s polygon-based detection system.
⏱ Event Duration – Calculate how long a vessel remains in a given zone, supporting congestion assessment, operational benchmarking, or loading/discharging activity tracking.
📊 Time Series Ready – Leverage historical Polygon Events to generate time series charts showing port activity, vessel throughput, and duration trends.
🚨 Activity Alerts – Detect live “open” events and trigger alerts when vessels enter or remain in key maritime zones.
🎯 Flexible Filtering – Query by:
- Vessel specifications (IMO, DWT, etc.)
- Polygon attributes (ID, name, type)
- Entry/exit timestamps and AIS signal data
- Filtering with
is_open_event = trueis recommended for tracking real-time vessel activity.
📚 Deep Historical Coverage – Access over 12 years of event data for tanker and gas vessels—ideal for forecasting, trend analysis, and operational intelligence.
📦 Efficient Pagination – Manage large datasets using link-based pagination via the "links" object (e.g., { "next": "" }). Results are limited to 10,000 events per page. For handling large datasets, refer to the pagination section.
🧾 Flat Response Format – Designed for easy integration with spreadsheets, BI dashboards, and time series platforms. The API returns a flat, structured response ideal for analytics and reporting.
Filter by ancestors
The ancestor_polygons parameter is a new filter introduced in the v5 API.
It allows you to target events based on the parent (or “ancestor”) of the polygons that contain the event, something that wasn’t possible with the existing parameters in v4.
What it does exactly
- Filters events whose polygon lies inside a parent polygon (e.g., a port, zone).
- Considers the parent polygon’s type via the
polygon_typesoption. In other words, you must first specify the type of polygon you’re looking for (port, berth, etc.) and then provide the corresponding parent identifiers.
Accepted value formats
UN/LOCODE |
| International port code (e.g., Rotterdam). |
Numeric ID |
| Internal ID of the parent polygon. |
Human‑readable name |
| Name of the port or zone. |
You can provide these values in two ways:
- Comma‑separated list
ancestor_polygons=NL,NLRTM - Repeated parameter
ancestor_polygons=NL&ancestor_polygons=NLRTM
Example request
https://apihub.axsmarine.com/tanker/ais/event/polygon/v5?polygon_types=zone&ancestor_polygons=NLRTM&page_size=50
In this example, the call will return events located in zone polygons that are contained within the parent polygons identified by the LOCODE NLRTM.
Why it’s useful
- Hierarchical geographic search – you can filter events not only by the polygon of interest but also by the larger geographic area that surrounds it.
- Noise reduction – by combining
polygon_typesandancestor_polygons, you limit results to relevant child polygons of a given geographic structure.
In summary, ancestor_polygons adds a layer of hierarchical filtering to requests, improving the accuracy and relevance of results obtained via the v5 API.
Header Parameters
Bearer token used for authentication.
Query Parameters
Maximum number of results per page.
Example 10
List of polygon Ids as array. Can be used either as an integer, separated by commas, or by repeating the parameter.
Examples
- commaSeparated:
19924,9673 - parameterRepeated:
polygon_ids=19924&polygon_ids=9673
List of polygon types as array. Can be used either as an string, separated by commas, or by repeating the parameter.
Examples
- commaSeparated:
zone,anchorage - parameterRepeated:
polygon_types=zone&polygon_types=anchorage
List of ancestor polygons as array. Can be used either as an string, separated by commas, or by repeating the parameter. Filters polygonEvents by the parent polygons that contain the event. Must be combined with polygon_types to narrow the search to specific child types. Values may be UN/LOCODE, Numeric ID, Human-readable name.
Examples
- commaSeparated:
NL,NLRTM - parameterRepeated:
ancestor_polygons=NL&ancestor_polygons=NLRTM
List of vessel unique IDs as array. Can be used either as a string, separated by commas, or by repeating the parameter. Examples
- commaSeparated:
89495,91826 - parameterRepeated:
vessel_ids=89495&vessel_ids=91826
List of vessel IMOs as array. Can be used either as a string, separated by commas, or by repeating the parameter.
Examples
- commaSeparated:
9722924,9496692 - parameterRepeated:
imos=9722924&imos=9496692
Vessel built from.
Recognized date format is YYYY-MM-DD
Example 2016-01-01
Vessel built to.
Recognized date format is YYYY-MM-DD
Example 2017-01-01
Vessel beam from.
Example 55
Vessel beam to.
Example 65
Vessel loa from.
Example 300
Vessel loa to.
Example 400
Vessel draft from.
Example 15
Vessel draft to.
Example 25
Vessel dwt from.
Example 200000
Vessel dwt to.
Example 300000
Vessel cubic from.
Example 300000
Vessel cubic to.
Example 350000
Entry date from. Date-time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss) and UTC.
Example 2025-04-01T00:00:00
Entry date to. Date-time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss) and UTC.
Example 2025-04-10T00:00:00
Entry heading from.
Example 180
Entry heading to.
Example 360
Entry draft from.
Example 5
Entry draft to.
Example 15
Entry speed from.
Example 5
Entry speed to.
Example 15
Out date from. Date-time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss) and UTC.
Example 2025-06-01T00:00:00
Out date to. Date-time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss) and UTC.
Example 2025-06-10T00:00:00
Out heading from.
Example 180
Out heading to.
Example 360
Out draft from.
Example 10
Out draft to.
Example 20
Out speed from.
Example 5
Out speed to.
Example 15
Is the event opened?
Example false
Polygon event updated after. Date-time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss) and UTC.
Example 2025-06-01T00:00:00
Response
Response Attributes
Object containing useful links for the API.