Use This API to Get a List of All Ship Types in a Port Right Now
When it comes to understanding maritime traffic in real time, one of the most common needs is to get a list of all ship types currently in a port. Whether you’re monitoring port congestion, tracking vessel types for logistics, or building maritime dashboards, having real-time access to structured data is key.
What Do We Mean by “List of All Ship Types”?
Before we jump into how to get this data, let’s clarify what we mean by “ship types.” In the maritime tracking industry, vessels are grouped by type, such as:
Cargo ships
Tankers
Passenger vessels
Tugboats
Fishing boats
Military/navy vessels
High-speed craft
Yachts and pleasure craft
The vessel API returns this information in a structured format, making it easy to filter, analyze, and visualize ship types at any given location.
How to Get a List of All Ship Types in a Port?
The Location Traffic Tracking Endpoint lets you search all ships within a specified radius around a port or geographic coordinate. The response includes key vessel details like ship name, coordinates, speed, destination, and most importantly, the ship type and subtype.
This is the best way to generate a live list of all ship types located in a port or sea area.
API Example: List All Ship Types in a Port:
You can run a basic API query using the port’s UN/LOCODE or latitude/longitude and set a radius to define your search area.
Example API request to get all ships around the Port of Barcelona (ESBCN):
https://api.datalastic.com/api/v0/vessel_inradius?api-key=YOUR_API_KEY&port_unlocode=ESBCN&radius=5API Response:
This API call returns all vessels within a 5 nautical mile radius of the port.
point
port_unlocode "ESBCN"
radius 5
total 180
vessels
0
uuid "4db72282-967d-57f7-57f5-115e4e7400f8"
name "GREENOIL"
mmsi "224327160"
imo "9391177"
eni null
country_iso "ES"
type "Tanker"
type_specific "Oil Products Tanker"
lat 41.347935
lon 2.162735
speed 0
course 53
heading 57
destination "ES BCN"
last_position_epoch 1746427080
last_position_UTC "2025-05-05T06:38:00Z"
eta_epoch 1742773200
eta_UTC "2025-03-23T23:40:00Z"
distance 0.329672120984574
1
uuid "0ea0090f-7faf-c74f-0235-479b1115760a"
name "LIGHT VENTURE"
mmsi "477594100"
imo "9868895"
eni null
country_iso "HK"
type "Cargo"
type_specific "Bulk Carrier"
lat 41.345371666666665
lon 2.158201666666667
speed 0
course 280.6
heading 53
destination "BARCELONA"
last_position_epoch 1746427354
last_position_UTC "2025-05-05T06:42:34Z"
eta_epoch 1744728360
eta_UTC "2025-04-15T14:46:00Z"
distance 0.420926095580852
2
uuid "2cd26b50-938d-6570-5266-bfd00ed04ffe"
name "MONTCLAR"
mmsi "224569790"
imo "9439723"
eni null
country_iso "ES"
type "Tug"
type_specific "Tug"
lat 41.34628166666667
lon 2.152546666666667
speed 0.1
course 316.4
heading 511
destination "BARCELONA"
last_position_epoch 1746427233
last_position_UTC "2025-05-05T06:40:33Z"
eta_epoch 1746213780
eta_UTC "2025-05-02T19:23:00Z"
distance 0.452380560372544From this, you can see that the API returns different ships with different ship types, such as:
Tanker
Cargo
Passenger
Tug
Fishing
SAR (Search and Rescue)
Military Ops
Pleasure Craft
Dredger
HSC (High-Speed Craft)
and over 300 other combinations available in Datalastic’s database
Filter By Ship Type:
If you want to retrieve only specific types of vessels (for example, only cargo ships), you can add the type or type_specific parameters OR to exclude types, you can also use the exclude parameter:
https://api.datalastic.com/api/v0/vessel_inradius?api-key=YOUR_API_KEY&port_unlocode=ESBCN&radius=5&type=cargoComplete List of Ship Types Available:
Datalastic supports over 300 vessel types and subtypes. Some examples include:
Cargo – Hazard A (Major)
Tanker – Hazard C (Minor)
Passenger Ferry
Container Ship
Offshore Tug/Supply Ship
LNG Tanker
Asphalt or Bitumen Tanker
High-Speed Craft
Sailing Vessel
Fishing Vessel
Military or Law Enforcement
For the full list of values accepted by the API, refer to the ship types reference.
How to get access to the data that Location Traffic Location API provides?
This can be done easily in 3 steps and you can access the data immediately:
- Obtain an API Key: To use the Datalastic API, you need to sign up for an account on Datalastic and obtain a unique API key.
- Documentation: Familiarize yourself with the Datalastic API documentation. This will give you a clear understanding of the endpoints available, how to structure your requests, and what kind of data you can retrieve.
- Use the location traffic tracking endpoint: Use the API to search for ships in the your desired port or sea area by specifying the geographic coordinates or the name of the port.
Read Other Maritime Articles
Maritime Weather API: Current and Hourly Data
If you've ever tried to bolt weather data onto a shipping or logistics tool, you know the annoying part isn't the weather data itself. It's that marine conditions and atmospheric conditions usually come from two different providers with two different schemas, and...
AIS Spoofing in the Red Sea: What’s Really Happening
A cargo ship off Yanbu suddenly reports a position it couldn’t possibly have reached. Its speed jumps to 45 knots, far beyond what a loaded tanker can realistically do. Minutes later, the signal disappears. Hours after that, the vessel reappears somewhere else...
How To Use ChatGPT To Track Ships in Real Time?
Tracking ships using ChatGPT is possible and an easy process when it is connected to a live maritime data source such as Datalastic. On its own, ChatGPT does not maintain a live database of ship positions. It may know general information about vessels, shipping...
How to Connect Datalastic to Claude and ChatGPT?
Connecting Datalastic to Claude and ChatGPT is an easy and fast process that you'll be surprised by it, following this tutorial. By connecting Datalastic through its Model Context Protocol (MCP) server, you can give AI assistants direct access to real-time maritime...
Find Vessels In The Gulf Of Oman
Tracking vessels in the Gulf of Oman is essential for understanding maritime traffic in one of the world’s most strategically important shipping corridors. This region connects the Arabian Sea with the Strait of Hormuz, acting as a gateway for global oil shipments,...
Enterprise Vessel Tracking API
An enterprise vessel tracking API is not defined by features alone. It is defined by scale, reliability, and the ability to perform under real-world pressure. In maritime operations, where systems rely on continuous data flows, even small inefficiencies can quickly...
Recent Comments