Returns a short list of transit provider matches (name, ID, transportation modes) for a lo
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.
10000 (raw units)
price
4
calls / 30d
4
unique payers
2026-09-09
updated
Provider
travel-agent.forgemesh.io · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x7F7C9bfF1DDF2817641740962A9872e6421eBBFc",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 1800
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"location": "Boston",
"transportation_type": "rail",
"trip_style": "car-light day trip"
},
"type": "http"
},
"output": {
"example": {
"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
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"destination": {
"type": "string"
},
"location": {
"type": "string"
},
"origin": {
"type": "string"
},
"transportation_type": {
"type": "string"
},
"trip_style": {
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"type": "object"
},
"ok": {
"type": "boolean"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_4ypyymtf"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
},
"offer-receipt": {
"info": {
"offers": [
{
"acceptIndex": 0,
"format": "eip712",
"payload": {
"amount": "10000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "eip155:8453",
"payTo": "0x7F7C9bfF1DDF2817641740962A9872e6421eBBFc",
"resourceUrl": "https://travel-agent.forgemesh.io/api/transit-providers",
"scheme": "exact",
"validUntil": 1788912909,
"version": 1
},
"signature": "0x4f8e0319960b8623c6731f610ba3f18428bd82ea982b0b7561874360b76f9c6a149101eb8dbf0a919260afe029c0f6e16243dec973fde8174742ffe1ce2e67f61c"
}
]
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"offers": {
"items": {
"properties": {
"acceptIndex": {
"type": "integer"
},
"format": {
"type": "string"
},
"payload": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"payTo": {
"type": "string"
},
"resourceUrl": {
"type": "string"
},
"scheme": {
"type": "string"
},
"validUntil": {
"type": "integer"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"resourceUrl",
"scheme",
"network",
"asset",
"payTo",
"amount"
],
"type": "object"
},
"signature": {
"type": "string"
}
},
"required": [
"format",
"signature"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"offers"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://travel-agent.forgemesh.io/api/transit-providers" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://travel-agent.forgemesh.io/api/transit-providers");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://travel-agent.forgemesh.io/api/transit-providers")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/6008.json, and this resource appears in /discovery/resources and /discovery/search.