闲社服务运行正常AI智能体自动化平台
o

俄亥俄州立API

技能标识:ohio-state-api

Get public data from The Ohio State University Content APIs (content.osu.edu) across campus services (bus, buildings, dining, events, academic calendar, libraries, rec sports, parking, directory, student orgs, athletics, food trucks, BuckID merchants). Use when you need OSU campus data, want to build an OSU data feature, or need a repeatable way to fetch/inspect OSU API JSON.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

俄亥俄州立API

使用方法

选项A:直接HTTP获取(最快)

使用内置的fetch助手从OSU内容API拉取JSON数据。

  • - 通过完整URL获取:
- node ohio-state-api/scripts/osu-fetch.mjs https://content.osu.edu/v2/api/v1/dining/locations
  • - 通过服务+路径获取:
- node ohio-state-api/scripts/osu-fetch.mjs --service dining --path /locations

注意:--path参数可以带或不带前导/(两种方式均可)。

如果响应数据较大,可添加--extract <点路径>(例如--extract data)仅打印子树。

选项A2:curl(无需Node)

如果只需要原始JSON且已安装curl,可参考ohio-state-api/references/OSU_API.md:

  • - 完整URL:
- curl -sS -H accept: application/json https://content.osu.edu/v2/api/v1/dining/locations
  • - 带查询参数:
- curl -sS -H accept: application/json https://content.osu.edu/v2/classes/search?q=cse&p=1

可选:通过管道传递给jq以提高可读性:

  • - curl -sS -H accept: application/json https://content.osu.edu/v2/api/v1/dining/locations | jq .

选项B:MCP服务器(最适合MCP兼容客户端)

本技能将原始MCP服务器打包在ohio-state-api/mcp-server/目录下。

构建方法:

  • - cd ohio-state-api/mcp-server && npm install && npm run build

然后配置MCP客户端运行:

  • - 命令:node
  • 参数:[/ABSOLUTE/PATH/TO/ohio-state-api/mcp-server/build/index.js]

运行后,可使用以下工具:

  • - getbusroutes、getbusvehicles
  • getbuildings、searchbuildings、getbuildingdetails
  • getdininglocations、getdiningmenu
  • getcampusevents、geteventsbydaterange
  • searchclasses
  • getparking_availability

(完整列表请参见ohio-state-api/mcp-server/README.md及ohio-state-api/mcp-server/src/中的工具定义。)

获取OSU数据请求的推荐工作流程

  1. 1. 确定服务领域(餐饮、公交、建筑、活动等)。
  2. 优先使用列表/搜索端点,然后通过ID进入详情端点。
  3. 对于基于时间的数据,始终包含:
- 查询窗口(绝对日期/时间),以及 - 检索时间戳。
  1. 4. 向用户返回数据时,总结关键字段,并尽可能附上原始JSON作为附件。

常用基础URL(公开)

以下URL由内置MCP服务器使用,并可与osu-fetch.mjs配合使用:

  • - 体育:https://content.osu.edu/v3/athletics
  • 公交:https://content.osu.edu/v2/bus
  • 建筑:https://content.osu.edu/v2/api
  • 日历:https://content.osu.edu/v2/calendar
  • 课程:https://content.osu.edu/v2/classes
  • 餐饮:https://content.osu.edu/v2/api/v1/dining
  • 目录:https://content.osu.edu
  • 活动:https://content.osu.edu/v2
  • 餐车:https://content.osu.edu/v2/foodtruck
  • 图书馆:https://content.osu.edu/v2/library
  • 商户:https://content.osu.edu/v2
  • 停车:https://content.osu.edu/v2/parking/garages
  • 休闲体育:https://content.osu.edu/v3
  • 学生组织:https://content.osu.edu/v2/student-org

示例(可复制粘贴)

  • - 餐饮地点:
- curl -sS -H accept: application/json https://content.osu.edu/v2/api/v1/dining/locations
  • - 停车位可用性:
- curl -sS -H accept: application/json https://content.osu.edu/v2/parking/garages/availability
  • - 建筑搜索(使用jq进行客户端过滤):
- curl -sS -H accept: application/json https://content.osu.edu/v2/api/buildings | jq -r .data.buildings[] | select((.name // ) | test(union;i)) | \(.buildingNumber)\t\(.name)

额外参考

  • - API参考文档:ohio-state-api/references/OSU_API.md

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ohio-state-api-1776342810 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ohio-state-api-1776342810 技能

通过命令行安装

skillhub install ohio-state-api-1776342810

下载

⬇ 下载 ohio-state-api v0.1.0(免费)

文件大小: 39.54 KB | 发布时间: 2026-4-17 13:55

v0.1.0 最新 2026-4-17 13:55
Initial public release of ohio-state-api.

- Provides easy access to The Ohio State University Content APIs covering a wide range of campus data (bus, dining, buildings, events, library, parking, and more).
- Supports direct HTTP fetch via a helper script, or use with curl for raw JSON.
- Bundles an MCP-compatible Node.js server for tool-based access.
- Includes usage examples, workflow tips, and documentation for common API endpoints.
- Designed for developers and users needing a repeatable way to fetch or inspect Ohio State campus API data.
返回顶部