F

Forgemesh · Transit Providers

by Forgemesh

GETBase

$0.01

per call · USD Coin on Base

Returns a short list of transit provider matches (name, ID, transportation modes) for a location and transport type. Use to identify rail, metro, bus, or ferry options before booking.

Endpoint

GET https://travel-agent.forgemesh.io/api/transit-providers

4

Calls / 30d

4

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://travel-agent.forgemesh.io/api/transit-providers", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://travel-agent.forgemesh.io/api/transit-providers?location=Boston&transportation_type=rail&trip_style=car-light+day+trip" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "category": "mobility_options",
    "matches": [
      {
        "name": "MBTA",
        "provider_id": "mbta",
        "transportation": [
          "subway",
          "bus",
          "commuter rail",
          "ferry"
        ]
      }
    ],
    "why_not_high": [
      "Mobility guidance is provider/strategy-level and does not confirm live departures, fares, route availability, accessibility, or service disruptions."
    ]
  },
  "ok": true
}

Payment details

Pay to0x7f7c9bff1ddf2817641740962a9872e6421ebbfc
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Forgemesh & similar services