AIS Hub API

Transportation / API Key Intermediate HTTP
Varies by plan (check documentation)

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

track name and artist
album metadata
audio preview URLs
popularity score
genre classification

Example Response

JSON 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

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "http://www.aishub.net/api";
// 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

Authentication failed The username parameter is missing or the API key is invalid.
Include username=YOUR_API_KEY in every request; the key is issued after registering at aishub.net.
No vessel data returned The MMSI is not tracked by any AIS Hub receiver at the current time.
Try a large commercial vessel MMSI in a busy port; vessels out of receiver range will not appear.
HTTP connection issue The API base URL uses HTTP which may be blocked by some clients.
Configure your HTTP client to allow non-HTTPS requests or use a server-side proxy.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 2/20
🔒 Security 5/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS NO
CORS UNKNOWN
Category Transportation
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →