ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 4/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/jisuapi/train
Or

What 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

  1. "查一下明天从上海到北京的所有高铁,并列出它们的出发时间和票价。"
  2. "查询 G34 次列车的具体行程,它会在哪些站停靠,分别是几点?"
  3. "我想买 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 station2s for discovery, then narrow down your selection using line for schedule details and ticket for final verification.

Metadata

Author@jisuapi
Stars1947
Views0
Updated2026-03-04
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-jisuapi-train": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#travel#train#transportation#jisuapi#query
Safety Score: 4/5

Flags: network-access, external-api, code-execution