Charter Boats API
AI Integrations

Search Locations (AI)

Search sailing destinations with diacritics-safe matching and boat counts

GET/ai/locations

Search for charter bases, marinas, islands, and cities. Uses normalized matching that handles diacritics and special characters. Returns locations with boat counts.

Authentication

No authentication required. Rate limited to 60 requests per 10 minutes.

Query Parameters

ParameterTypeRequiredDescription
qstringYesSearch query (minimum 2 characters). Marina name, city, island, or country.
limitintegerNoMax results (default: 5, max: 20)

Request

curl "https://charter.boats/api/ai/locations?q=Lefkada&limit=10"

Response

{
  "locations": [
    {
      "id": 4521,
      "name": "D-Marin Lefkas",
      "city": "Lefkada",
      "country": "Greece",
      "type": "marina",
      "lat": 38.8335,
      "lon": 20.7068,
      "boat_count": 45,
      "url": "https://charter.boats/locations/4521"
    },
    {
      "id": 4523,
      "name": "Lefkas Town Quay",
      "city": "Lefkada",
      "country": "Greece",
      "type": "harbour",
      "lat": 38.8329,
      "lon": 20.7102,
      "boat_count": 3,
      "url": "https://charter.boats/locations/4523"
    }
  ]
}

Response Fields

FieldTypeDescription
locationsarrayMatching locations
locations[].idnumberLocation ID
locations[].namestringLocation name
locations[].citystring|nullCity
locations[].countrystring|nullCountry
locations[].typestringLocation type: marina, harbour, anchorage, etc.
locations[].latnumberLatitude
locations[].lonnumberLongitude
locations[].boat_countintegerNumber of published boats at this location
locations[].urlstringLink to location page on charter.boats

Errors

StatusMessage
400Search query must be at least 2 characters

On this page