# BRAINIAC Maritime Intelligence — AIS Track Gap Detector

> BRAINIAC Maritime Intelligence — AIS Track Gap Detector is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-14).

Analyzes a sequence of AIS position points for one or more vessels and detects significant tracking gaps that may indicate AIS signal loss, spoofing, or intentional transponder disabling.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/maritime-intelligence/ais-track-gap-detect?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-maritime-intelligence-ais-track-gap-detector-899f810d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kcg1ZS7niH_pzmjpz4tdF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-maritime-intelligence-ais-track-gap-detector-899f810d -d '<json body>'
```

Example prompt: I have a CSV of AIS position pings for vessel MMSI 123456789 covering November 2026 — can you scan it for any tracking gaps longer than 6 hours and tell me how far the ship moved during each gap and what the implied speed was?

## When to prefer this

Use this endpoint when you have caller-supplied AIS position data and need to detect tracking gaps without requiring a paid AIS subscription or external API key. It is ideal for compliance workflows, sanctions screening support, insurance underwriting, or investigative maritime analysis where you already have an AIS export. It performs pure geodesic math on supplied data and is transparent about its limitations (no real-time global coverage claimed). Prefer alternatives if you need live AIS feeds or real-time vessel tracking.

## Known failure modes

- Insufficient AIS points provided — gaps cannot be computed without at least two sequential position points per vessel
- Malformed timestamp formats causing parse errors
- AIS points missing lat/lon values, resulting in incomplete gap distance computation
- Exceeding maxItems (500 vessels or 20 files) limits
- CSV or JSON parsing failure if content is malformed
- No gaps found — returns gapCount: 0 with empty items array and status indicating clean track

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object containing: an array of gap items (each with start/end timestamps, start/end position IDs, gap duration in hours, great-circle distance in km, implied speed in knots, and whether it exceeds the threshold), a findings list with human-readable observations, total gap count, vessel count checked, whether paid AIS data was used, and a checkedAt timestamp. Limitations regarding data sources are included in the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "vessels": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "imo": {
      "type": "string",
      "maxLength": 20
     },
     "flag": {
      "type": "string",
      "maxLength": 80
     },
     "mmsi": {
      "type": "string",
      "maxLength": 20
     },
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "owner": {
      "type": "string",
      "maxLength": 200
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "callSign": {
      "type": "string",
      "maxLength": 40
     },
     "operator": {
      "type": "string",
      "maxLength": 200
     },
     "vesselType": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500
  },
  "aisPoints": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "toAt": "2026-11-01T12:00:00.000Z",
    "toId": "A3",
    "isGap": true,
    "fromAt": "2026-11-01T02:00:00.000Z",
    "fromId": "A2",
    "source": "Caller-supplied AIS export; Caller-supplied AIS export",
    "gapHours": 10,
    "vesselKey": "V1",
    "distanceKm": 124.2732,
    "paidAisUsed": false,
    "impliedSpeedKn": 6.7102,
    "thresholdHours": 6
   },
   {
    "toAt": "2026-11-02T00:00:00.000Z",
    "toId": "A4",
    "isGap": true,
    "fromAt": "2026-11-01T12:00:00.000Z",
    "fromId": "A3",
    "source": "Caller-supplied AIS export; Caller-supplied AIS export",
    "gapHours": 12,
    "vesselKey": "V1",
    "distanceKm": 471.2937,
    "paidAisUsed": false,
    "impliedSpeedKn": 21.2065,
    "thresholdHours": 6
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "ais_gap",
    "kind": "observation",
    "detail": "AIS gap of 10 hours between 2026-11-01T02:00:00.000Z and 2026-11-01T12:00:00.000Z.",
    "subject": "V1"
   },
   {
    "code": "ais_gap",
    "kind": "observation",
    "detail": "AIS gap of 12 hours between 2026-11-01T12:00:00.000Z and 2026-11-02T00:00:00.000Z.",
    "subject": "V1"
   }
  ],
  "gapCount": 2,
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Vessel identities, AIS points, waypoints, port samples, demurrage cases, sanctions entries, cargo events, and ownership records are copied only from labeled fields supplied by the caller, or from the key-free public OFAC SDN publication when fetchOfac is requested.",
   "No paid AIS service is used and no API key is required. Global real-time vessel coverage is not claimed.",
   "Track gaps, route deviations, and ETA values use only supplied positions/speeds and simple geodesic math. Missing values are not invented.",
   "Sanctions signals are name/IMO comparisons only. Exact matches are labeled as signals, not confirmed legal determinations. Possible matches require human review.",
   "Demurrage amounts use only caller-supplied laytime and rate inputs and are not legal invoices."
  ],
  "ofacFetched": false,
  "paidAisUsed": false,
  "vesselCount": 1,
  "apiKeyRequired": false,
  "paidProviderUsed": false,
  "globalRealtimeCoverageClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-maritime-intelligence-ais-track-gap-detector-899f810d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
