jisu-train
使用极速数据火车查询 API,支持站站时刻查询、车次经停查询和余票查询,返回出发到达时间、用时、票价与余票数量等信息。
Why use this skill?
Integrate Jisu-Train into OpenClaw to fetch real-time railway schedules, ticket availability, and stop information for Chinese train routes with ease.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jisuapi/trainWhat This Skill Does
The jisu-train skill is a powerful extension for the OpenClaw AI agent that integrates directly with the JisuAPI train database. It serves as a comprehensive tool for travelers, providing real-time data on railway logistics. The skill allows the agent to perform three primary functions: searching for direct routes between two cities (station-to-station), checking the full itinerary and stop schedule for a specific train number, and verifying real-time ticket availability. By processing queries about departure and arrival times, travel duration, and seat classes (including pricing and remaining inventory), this skill transforms OpenClaw into a personal travel assistant capable of handling complex trip planning tasks.
Installation
To integrate this skill, ensure you have the OpenClaw environment properly initialized. Execute the following command in your terminal:
clawhub install openclaw/skills/skills/jisuapi/train
After installation, you must obtain an API key from JisuAPI Train Service. Once secured, export it as an environment variable to allow the agent to authenticate: export JISU_API_KEY="your_appkey_here". This setup ensures the script can communicate securely with the remote server.
Use Cases
- Route Planning: Identify all available high-speed or standard train connections between any two Chinese cities for a given date. Compare durations and ticket prices to optimize your itinerary.
- Itinerary Management: Use the specific train number feature to check every station stop and expected arrival time, which is essential if you are planning to board or alight at intermediate stations.
- Travel Logistics: Before heading to the station, use the ticket availability function to check if specific seat tiers (e.g., first-class, second-class, business) are still available, saving you from potential travel disruptions.
Example Prompts
- "查一下明天从上海到北京的所有高铁,并列出它们的出发时间和票价。"
- "查询 G34 次列车的具体行程,它会在哪些站停靠,分别是几点?"
- "我想买 4 月 3 号杭州去北京的火车票,现在还有票吗?帮我查下余票情况。"
Tips & Limitations
- Data Accuracy: Always ensure you provide the correct city names (in Chinese) to avoid lookup failures.
- Date Formatting: When requesting specific dates, adhere to the YYYY-MM-DD format to prevent parsing errors.
- API Limits: Keep in mind that the JisuAPI may have rate limits or usage quotas based on your subscription tier; check their dashboard periodically to avoid service interruptions.
- Error Handling: If the agent returns a 201 or 202 error code, double-check your input parameters—ensure the train number is valid or that the start/end station names are correctly typed.
- Efficiency: Chain your requests: use
station2sfor discovery, then narrow down your selection usinglinefor schedule details andticketfor final verification.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jisuapi-train": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
jisu-geoconvert
使用极速数据经纬度地址转换 API,在百度/Google 坐标系下实现经纬度与地址的相互转换。
jisu-shouji
使用极速数据手机号码归属地 API,根据手机号查询归属省市、运营商及卡类型。
jisu-huangli
使用极速数据黄历查询 API 按年月日查询农历、星座、生肖、宜忌、吉神凶神等黄历信息。
jisu-express
使用极速数据快递查询 API 查询快递物流轨迹、签收状态,支持自动识别快递公司及顺丰/中通/跨越手机号后四位校验。
jisu-enterprise
使用极速数据企业工商信息 API,查询企业基本信息、名称搜索结果、变更记录以及股东高管信息。