目录收录
Transitland API
Global transit data aggregation. Transitland 是一个全球交通数据聚合 API,提供公交、火车、地铁等公共交通站点和时刻表查询,覆盖多个国家和地区。
免费 API
目录收录
无需认证
CORS: Yes
- 来源类型
- 目录收录
- 可用方式
- 免费可用
- 认证方式
- 无需认证
- 协议格式
- REST
- 计费摘要
- 免费为主
- 稳定性说明
- 以来源方说明为准
面向 Agent
如何调用 Transitland API
供 Hermes、OpenClaw、浏览器自动化 Agent 等读取。优先解析 <head> 内 #boyapi-agent-spec JSON。
Hermes
OpenClaw
Coding Agent
Browser Agent
-
1. 确认调用目标
业务请求发往
https://transit.land/api/v1,不要向boyapi.com发送 Transitland 业务 API。 -
2. 构造 HTTP 请求
- 方法:
GET - 路径:
/stops - 鉴权:无需 API Key
- 方法:
-
3. 最小可执行示例
复制以下 cURL 试调:
curl -sS 'https://transit.land/api/v1/stops?lat=40.7128&lng=-74.0060&r=1000' -
4. 解析响应
返回站点数组,包含站点名称、坐标、运营商等信息。添加 .geojson 获取 GeoJSON 格式。
-
5. 环境与限制
CORS:
Yes。浏览器联调以实际结果为准。
机器可读规范(JSON)
application/json · #boyapi-agent-spec
{
"spec_version": "1.0",
"page_type": "boyapi_api_detail",
"api": {
"slug": "transitland",
"name": "Transitland"
},
"invocation": {
"method": "GET",
"base_url": "https://transit.land/api/v1",
"path": "/stops",
"full_url_example": "https://transit.land/api/v1/stops?lat=40.7128&lng=-74.0060&r=1000"
}
}
完整字段以 <head> 中 #boyapi-agent-spec 为准。
Agent 注意:boyapi.com 仅提供目录与文档,不提供第三方 API 代理网关。
接入信息
可用方式
- 目录定位
- 免费目录收录(public-apis)
- 认证要求
- 无需认证(auth=No)
- HTTPS
- 支持(https=Yes)
- CORS
- Yes — 可在浏览器前端直接调用
- 接口名称
- Transitland
- 典型端点
- GET /stops
- 功能描述
- Global transit data aggregation
平台支持
- 全球交通数据聚合
- 覆盖多个国家和地区
- 支持 GeoJSON 输出(追加 .geojson)
- CORS 支持
- 写操作需要认证