Overview
AIS Hub aggregates real-time Automatic Identification System data from a global network of shore-based receivers to track marine vessels. It is used by maritime enthusiasts, port authorities, and logistics teams to monitor ship positions and voyage information. An API key is required and can be applied for through the AIS Hub website.
Beginner Tip
AIS data uses MMSI numbers, which are 9-digit identifiers that uniquely identify ships similar to how aircraft use ICAO codes. Start by querying a single vessel MMSI to understand the response format before building a fleet-tracking feature.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"name": "Bohemian Rhapsody",
"artist": "Queen",
"album": "A Night at the Opera",
"duration_ms": 354000,
"popularity": 92,
"preview_url": "https://p.scdn.co/mp3-preview/..."
} Field Reference
MMSI Maritime Mobile Service Identity, the unique 9-digit vessel identifier. NAME Vessel name as broadcast by the ship AIS transponder. LATITUDE Current latitude of the vessel in decimal degrees. LONGITUDE Current longitude of the vessel in decimal degrees. SOG Speed over ground in knots. DESTINATION Declared destination port as entered by the vessel crew. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "http://data.aishub.net/ws.php?username=YOUR_API_KEY&format=1&output=json&compress=0&mmsi=123456789";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →AZ511
AZ511 is the official Arizona Department of Transportation traffic data API providing real-time road conditions, incidents, and camera information for Arizona highways.
Bay Area Rapid Transit
⭐ Beginner's PickThe BART API provides real-time train arrival predictions, station information, and service advisories for the Bay Area Rapid Transit system in the San Francisco Bay Area.
Boston MBTA Transit
⭐ Beginner's PickThe Boston MBTA Transit API gives you real-time data for the Massachusetts Bay Transportation Authority, including train, bus, and ferry arrivals.
Compare Flight Prices
The Compare Flight Prices API lets you search and compare airfare across multiple travel platforms in a single request, helping you find the cheapest available flights.
Transport for Sweden
Transport for Sweden (Trafiklab) is a developer platform providing access to public transport data across all of Sweden.