TripGo API

v1.0.1

Comprehensive interface for the TripGo API, covering routing, public transport, trips, and location services. Use for multimodal journey planning, public tra...

0· 247·0 current·0 all-time
byGuanyu Zhang@guanyu-zhang
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the artifacts: bash scripts and reference docs implement TripGo routing, geocoding, trips, and public-transport endpoints. The only required credential (TRIPGO_API_KEY) and required binaries (curl, jq) are appropriate for this purpose.
Instruction Scope
SKILL.md and sampled scripts instruct the agent to build JSON, URL-encode parameters, and call TripGo endpoints. Scripts validate/encode inputs with jq and urlencode; webhook registration is documented and SKILL.md recommends a webhook allowlist. I saw no instructions to read unrelated system files, sweep environment variables beyond those documented, or send data to unexpected external endpoints.
Install Mechanism
No install spec is provided (instruction-only for installation), so nothing is downloaded or extracted during install. The shipped code are bash scripts and docs — no external install URLs or package downloads were used.
Credentials
Only the TripGo API key (TRIPGO_API_KEY) is required in registry metadata; SKILL.md documents a couple of optional env vars (TRIPGO_BASE_URL, TRIPGO_WEBHOOK_ALLOWLIST, TRIPGO_ALLOW_UNSAFE_WEBHOOK) that are relevant to behavior. No unrelated credentials or broad secrets are requested.
Persistence & Privilege
Skill is not forced-always (always:false) and does not request system-level persistence or modification of other skills. It can be invoked autonomously by the agent (disable-model-invocation:false), which is the platform default, and is not by itself a problem here.
Assessment
This skill appears to be a straightforward TripGo API wrapper. Before installing: 1) Only provide a TripGo API key you control (do not reuse other service credentials). 2) If you plan to use webhook registration, set TRIPGO_WEBHOOK_ALLOWLIST to restrict allowed callback domains and avoid setting TRIPGO_ALLOW_UNSAFE_WEBHOOK to true in production. 3) Review the included scripts if you will run them on your host, and ensure curl and jq (and python3 if you rely on pretty-printing) are present. 4) Be aware the skill will make network requests to the configured TripGo base URL and any webhook URLs you register; only register trusted callback endpoints. 5) If you want to prevent autonomous invocation, adjust agent settings (note: disable-model-invocation is false by default on the platform).

Like a lobster shell, security has layers — review code before you run it.

latestvk97ebva5zx94620xmyytzres318223jb

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

Binscurl, jq
EnvTRIPGO_API_KEY
Primary envTRIPGO_API_KEY

SKILL.md

TripGo API Skill

This skill provides a complete interface to the TripGo API, enabling agents to perform multimodal routing, retrieve public transport information, manage trips, and perform geocoding.

Overview

The TripGo API is a platform for multimodal transport, allowing users to plan trips combining public transport, car, bike, taxi, rideshare, and more. This skill encapsulates the API endpoints into modular scripts and documentation references.

A key advantage is mode-aware trip comparison from the same origin/destination context, enabling assistants to return practical route choices with transport-type tradeoffs in one workflow. It also works exceptionally well with location-discovery skills (e.g., Google Places / goplaces): resolve a place first, then pass coordinates/IDs into TripGo routing to produce actionable journey options, including fare signals and cost estimates (e.g., taxi fares) when provided by upstream operators.

Configuration

To use this skill, you must set the following environment variables:

  • TRIPGO_API_KEY: Your TripGo API key (header: X-TripGo-Key). Get it here: https://skedgo.com/tripgo-api/
  • TRIPGO_BASE_URL: (Optional) Base URL for the API. Defaults to https://api.tripgo.com/v1.
  • TRIPGO_WEBHOOK_ALLOWLIST: (Optional, recommended) Comma-separated allowlist of webhook domains (e.g. example.com,webhooks.example.org).
  • TRIPGO_ALLOW_UNSAFE_WEBHOOK: (Optional, default false) Set to true to bypass webhook allowlist checks for trusted/manual debugging only.

Runtime Requirements

Install these binaries before running scripts:

  • curl (required): API requests
  • jq (required): JSON validation, safe JSON construction, and URL encoding
  • python3 (optional): pretty-printing for a few scripts

Security Notes

  • Scripts that accept JSON parameters validate those values with jq before sending requests.
  • Scripts that send query parameters URL-encode user-provided values.
  • Webhook hook registration enforces https:// and domain allowlisting by default (TRIPGO_WEBHOOK_ALLOWLIST) to reduce exfiltration risk.
  • API key usage is expected: requests send X-TripGo-Key to the configured TripGo base URL.

Directory Structure

  • SKILL.md: This file.
  • references/: Detailed documentation for each API section.
  • scripts/: Executable Bash scripts for each API endpoint.

References (references/)

Documentation is organized by API section. Load these files to understand specific endpoints, parameters, and response structures.

  • references/configuration.md: Regions, TSPs, and POIs.
  • references/routing.md: Journey planning and routing (A-to-B, multi-point).
  • references/trips.md: Trip management (save, update, real-time hooks).
  • references/ttp.md: Travelling Tourist Problem (Deprecated).
  • references/geocode.md: Search and autocompletion.
  • references/locations.md: Location services and POIs.
  • references/public-transport.md: Public transport operators, routes, services, and real-time data.

Scripts (scripts/)

Each script corresponds to a specific API endpoint. They are designed to be executed directly or used as templates.

Naming Convention: scripts/<section>-<function-name>.sh

Configuration

  • scripts/configuration-available-regions.sh
  • scripts/configuration-tsps-per-region.sh
  • scripts/configuration-pois-for-a-transport-mode.sh

Routing

  • scripts/routing-a-to-b-trips.sh
  • scripts/routing-a-to-b-to-c-trip.sh
  • scripts/routing-all-day-routing-between-events.sh
  • scripts/routing-all-day-routing-between-events-deprecated.sh (Deprecated)

Trips

  • scripts/trips-retrieve-previously-computed-trip.sh
  • scripts/trips-save-trip-for-later-use.sh
  • scripts/trips-update-trip-with-real-time-data.sh
  • scripts/trips-gets-hooked-urls.sh
  • scripts/trips-hooks-a-trip-to-real-time-updates.sh
  • scripts/trips-removes-a-hooks-from-a-trip.sh
  • scripts/trips-mark-trip-as-planned-by-a-user.sh

TTP (Deprecated)

  • scripts/ttp-create-travelling-tourist-problem-deprecated.sh
  • scripts/ttp-delete-travelling-tourist-problem-deprecated.sh
  • scripts/ttp-delete-travelling-tourist-problem-solution-deprecated.sh

Geocode

  • scripts/geocode-search-and-autocompletion.sh

Locations

  • scripts/locations-pois-for-a-circular-region.sh
  • scripts/locations-pois-for-map-region-using-cell-ids.sh
  • scripts/locations-additional-details-for-a-coordinate.sh

Public Transport

  • scripts/public-transport-operators-for-a-region-or-group-of-regions.sh
  • scripts/public-transport-routes-for-a-region-or-operator.sh
  • scripts/public-transport-details-of-a-route.sh
  • scripts/public-transport-services-for-a-route.sh
  • scripts/public-transport-departure-timetable-for-a-stop.sh
  • scripts/public-transport-real-time-information-for-a-service.sh
  • scripts/public-transport-get-details-of-a-service.sh
  • scripts/public-transport-get-real-time-alerts.sh

Usage Constraints

  • Do NOT invent parameters. All scripts use parameters explicitly documented in references/.
  • Deprecated Endpoints: Some scripts are marked as deprecated (e.g., TTP section). Use with caution or avoid if possible.
  • Verification: If a parameter or field is marked as "To be confirmed" in the references, verify with a live API call before relying on it in production.
  • Environment: Ensure TRIPGO_API_KEY is set in the environment before running any script.

Example

Searching for a location:

export TRIPGO_API_KEY="your_key_here"
./scripts/geocode-search-and-autocompletion.sh --query "Sydney Opera House" --near "(-33.8688,151.2093)"

Planning a trip:

./scripts/routing-a-to-b-trips.sh --from "(lat,lng)" --to "(lat,lng)" --region "AU_NSW_Sydney"

Files

37 total
Select a file
Select a file to preview.

Comments

Loading comments…