Developers

Bathymetry,
by API.

AI-powered bathymetry processing API. Access satellite-derived depth data programmatically from your applications.

Fast Processing
Secure Authentication
RESTful API
Quickstart

Getting Started

1

Create an API Key

Visit your dashboard to generate a new API key. Keep it secure - it won't be shown again!

2

Make Your First Request

Use your API key in the Authorization header to authenticate requests.

3

Process Bathymetry Data

Scout for satellite imagery, process bathymetry, and download TIFF results.

Authentication

All API requests require authentication using your API key in the Authorization header:

Authorization: Bearer nav_your_api_key_here

Base URL

All endpoints are relative to this base URL:

https://www.navbathy.com/api/v1
Reference

API Endpoints

POST

/navbathy/scout

Scout for available satellite imagery in a specified area and date range.

Request Body

{
  "bounds": {
    "north": 29.8,
    "south": 29.7,
    "east": 48.6,
    "west": 48.5
  },
  "start_date": "2024-01-01",
  "end_date": "2024-12-31"
}

Response

{
  "success": true,
  "images_found": 12,
  "area_sqkm": 11.4,
  "credits_required": 60,
  "credits_remaining": 998940,
  "scenes": [
    {
      "scene_id": "S2A_20240115_T38SMB_0",
      "date": "2024-01-15",
      "satellite": "Sentinel-2A",
      "cloud_cover": 5.2
    }
  ]
}

cURL Example

curl -X POST https://www.navbathy.com/api/v1/navbathy/scout \
  -H "Authorization: Bearer nav_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"bounds":{"north":29.8,"south":29.7,"east":48.6,"west":48.5},"start_date":"2024-01-01","end_date":"2024-12-31"}'
POST

/navbathy/process

Process bathymetry data for a specific scene to generate a depth TIFF.

Request Body

{
  "scene_id": "S2A_20240115_T38SMB_0",
  "bounds": {
    "north": 29.8,
    "south": 29.7,
    "east": 48.6,
    "west": 48.5
  }
}

Response

{
  "success": true,
  "job_id": "job_abc123xyz",
  "status": "processing",
  "area_sqkm": 11.4,
  "credits_charged": 60,
  "credits_remaining": 998880,
  "estimated_completion": "2024-01-15T10:35:00Z"
}
GET

/navbathy/jobs/:id

Check the status of a bathymetry processing job. While it runs the response is { "job_id", "status", "progress" }; once complete it carries a result object.

Response

{
  "job_id": "job_abc123xyz",
  "status": "completed",
  "result": {
    "scene_id": "S2A_20240115_T38SMB_0",
    "datetime": "2024-01-15T07:12:31Z",
    "collection": "sentinel-2-l2a",
    "tiff_url": "https://backend.example.com/out_depth/bathymetry_xyz.tif",
    "contours_url": "https://backend.example.com/out_depth/bathymetry_xyz_contours.geojson",
    "engine_used": "today",
    "fallback_reason": null,
    "vertical_datum": "geoid",
    "lat_height_m": null,
    "native_resolution_m": 10,
    "model_version": null,
    "beyond_limit_url": null,
    "beyond_limit_fraction": null,
    "survey_areas_url": null,
    "survey_area_km2": null,
    "murky_area_km2": null,
    "too_deep_area_km2": null,
    "survey_limit_m": null
  }
}

Engine and datum fields

  • engine_used: today or fusion, the engine that produced the result.
  • fallback_reason: why the requested engine was not used (for example timeout, aoi_too_large), otherwise null.
  • vertical_datum: LAT, geoid, lake (inland lakes: metres below the lake's mean water level, from ICESat-2) or none (uncalibrated). It states what the depth values mean.
  • lat_height_m: height of LAT used for the conversion, or null.
  • native_resolution_m: native resolution of the result in metres.
  • model_version: fusion model version, or null for the today engine.
  • beyond_limit_url / beyond_limit_fraction: URL of a GeoTIFF mask of pixels where the satellite cannot measure depth and a sonar survey is recommended (1 = beyond satellite range in this water, 2 = murky water, light cannot reach the bottom; 0 = depth measured) and the fraction of the water it covers, or null. Depth is blank wherever the mask is 1 or 2.
  • survey_areas_url / survey_area_km2 / murky_area_km2 / too_deep_area_km2: GeoJSON (EPSG:4326) of the sonar survey areas, one polygon per area with reason (murky or too_deep), label and area_km2, and the area totals in km², or null.
  • survey_limit_m: the satellite depth limit below the output datum used for the "beyond satellite range" areas, or null when no ICESat-2 depths were available.

cURL Example

curl -X GET https://www.navbathy.com/api/v1/navbathy/jobs/job_abc123xyz \
  -H "Authorization: Bearer nav_your_api_key_here"

Vertical datum

From 24 October 2026, calibrated depth is metres below LAT (Lowest Astronomical Tide), positive down; check vertical_datum on every result.

Account Management

GET

/account/credits

Check your current credit balance and usage statistics.

GET

/account/keys

List all your API keys and their usage statistics.

POST

/account/keys

Create a new API key for your account.

Rate Limits

API requests are rate-limited per API key:

  • Standard: 100 requests per hour
  • Premium: 500 requests per hour

Rate limit headers are included in every response:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1642442400

Error Handling

The API uses standard HTTP status codes:

200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
402Payment Required - Insufficient credits
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Error Response Format

{
  "success": false,
  "error": "Insufficient credits",
  "message": "You need 60 credits but only have 45",
  "code": "INSUFFICIENT_CREDITS"
}