← 返回
开发者工具 Key 中文

IsItWater

Check if geographic coordinates are over water or land using the IsItWater API.
使用 IsItWater API 检查地理坐标位于水域还是陆地。
johnnagro johnnagro 来源
开发者工具 clawhub v1.0.0 1 版本 99886.2 Key: 需要
★ 3
Stars
📥 1,695
下载
💾 23
安装
1
版本
#latest

概述

IsItWater

Determine whether a latitude/longitude coordinate is over water using the IsItWater API.

Setup

Before making API calls, check whether the user has an API key configured:

  1. Check if ISITWATER_API_KEY is set in the environment.
  2. If it is not set:
    • Inform the user: "You need an IsItWater API key. You can get one at https://isitwater.com"
    • Offer to help them sign up using the browser tool — navigate to https://isitwater.com, create an account, and generate an API key from the dashboard.
    • Once the user has a key, guide them to configure it in ~/.openclaw/openclaw.json:
{
  "skills": {
    "entries": {
      "isitwater": {
        "apiKey": "YOUR_API_KEY_HERE"
      }
    }
  }
}
  • Alternatively, the user can export the environment variable directly: export ISITWATER_API_KEY=YOUR_API_KEY_HERE
  1. Once the key is available, proceed with the API calls below.

Water Lookup

Check whether a coordinate is over water or land.

Endpoint: GET https://api.isitwater.com/v1/locations/water

Headers:

  • Authorization: Bearer $ISITWATER_API_KEY

Query Parameters:

ParameterTypeRequiredDescription
-------------------------------------------------------------
latnumberyesLatitude, between -90 and 90
lonnumberyesLongitude, between -180 and 180

Example curl:

curl -s "https://api.isitwater.com/v1/locations/water?lat=41.7658&lon=-72.6734" \
  -H "Authorization: Bearer $ISITWATER_API_KEY"

Example response (land):

{
  "request_id": "abc123",
  "water": false,
  "features": ["earth"],
  "latitude": "41.7658",
  "longitude": "-72.6734"
}

Example response (water):

{
  "request_id": "def456",
  "water": true,
  "features": ["earth", "ocean"],
  "latitude": "36.0",
  "longitude": "-30.0"
}

Response Fields:

FieldTypeDescription
-----------------------------------------------------------------------------------------------------------------------------
request_idstringUnique identifier for the request
waterbooleantrue if the coordinate is over water, false if over land
featuresstring[]Geographic features at the point — e.g. earth, ocean, lake, river, glacier, nature_reserve
latitudestringThe latitude that was queried
longitudestringThe longitude that was queried

Cost: 1 credit per lookup.

Account Info

Check the user's account details and remaining credit balance.

Endpoint: GET https://api.isitwater.com/v1/accounts/me

Headers:

  • Authorization: Bearer $ISITWATER_API_KEY

Example curl:

curl -s "https://api.isitwater.com/v1/accounts/me" \
  -H "Authorization: Bearer $ISITWATER_API_KEY"

Response Fields:

FieldTypeDescription
-----------------------------------------------------------------------
idstringAccount identifier
namestringAccount name
balancenumberRemaining credits
auto_recharge_enabledbooleanWhether auto-recharge is turned on

Cost: Free (no credits consumed).

Error Handling

Status CodeMeaningDescription
-----------------------------------------------------------------------------------
200OKRequest succeeded
400Bad RequestInvalid latitude or longitude values
401UnauthorizedMissing or invalid API key
402Payment RequiredAccount has no remaining credits

Error responses return a JSON body:

{
  "error": "description of the problem"
}

Tips

  • Each water lookup costs 1 credit. Use the Account Info endpoint to check the user's balance before making many requests.
  • When the user provides a place name instead of coordinates (e.g. "Is the Sahara Desert water?"), geocode the location first to get lat/lon, then call the water lookup endpoint.
  • The features array can contain multiple overlapping values for a single point — for example, a point might return both lake and nature_reserve.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 19:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 272 📥 99,846
data-analysis

Stock Watcher

robin797860
管理和监控个人股票自选列表,支持利用同花顺数据添加、删除、列出股票及汇总近期表现。适用于用户希望追踪特定股票、获取表现汇总或管理自选列表时。
★ 112 📥 45,640
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 205 📥 66,155