Find the best way around the city

In real time. MTA subway, MTA bus, and Citi Bike — one API for any NYC agent.

$0.02 per check
Verifiable Service Deployed on EigenCloud

Real-time MTA + Citi Bike, answered from one API

496subway stations
2,400+Citi Bike stations
2,229bus stops
All 5 boroughs · live MTA GTFS-RT + SIRI + Lyft GBFS
Click a prompt to see the response.

Pre-cached from live MTA and Lyft feeds. For fresh data in your agent: GET /subway/nearest?lat=&lng= · OpenAPI · skill.md

How an agent chains this with other services

One prompt, multiple tool calls, one answer. NYC Transit Live is one block in a broader agent flow.

Prompt
Heading home from 45th & 3rd Ave to McCarren Park in 5 min. Put me on an e-bike if one's close. Email me the plan.
Agent plan · 5 steps
  1. 1 Resolve 45th & 3rd Ave40.7525, -73.9725 and McCarren Park40.7202, -73.9520 from the agent's own context. No API call.
  2. 2 Call transit402.dev/subway/nearest + /citibike/nearest at origin in parallel. Filter bike results to ebikes_available > 0.
  3. 3 Call transit402.dev/subway/nearest + /citibike/dock at destination in parallel.
  4. 4 Score each option by walk + wait + ride. Pick e-bike if it's within 15% of the fastest subway option and a station has ebikes_available ≥ 1.
  5. 5 Call stableemail.dev/send with the top pick + subway fallback.
Email sent · 34 seconds after prompt

"E-bike wins by 3 min. Pick up at E 47 St & 3rd Ave (4 e-bikes, 1 min walk), ride the Williamsburg Bridge, dock at N 12 St & Bedford Ave (8 open docks). Total 18 min. Subway fallback: 7 to Grand Central → L from Union Sq to Bedford, next train in 3 min."

transit402.dev · 4 calls · $0.08 stableemail.dev · 1 email · $0.04 Total: $0.12

Mix and match with any x402-paid service. Directory: x402scan · AgentCash

1

Set up AgentCash

Creates a wallet and shows your USDC deposit address — fund with at least $0.10 before the next step.

$ npx agentcash onboard
2

Make a test call

Hits a live endpoint for $0.02 and prints the response — confirms your wallet pays end-to-end.

$ npx agentcash try https://transit402.dev
3

Add to your agent

Registers the API in your agent's config so it can pay automatically on every call.

$ npx agentcash add https://transit402.dev
1

Paste into your AI assistant

Privy's skill agent sets up a wallet and handles x402 payments automatically — no CLI needed.

SETUP PROMPT

Set up https://agents.privy.io/skill.md
1

Paste into your AI assistant

Creates a Tempo smart wallet, funds it with USDC, and enables x402 payments on any supported API.

SETUP PROMPT

Read https://tempo.xyz/SKILL.md and set up a Tempo Wallet. Fund it with USDC.
Citi Bike
$0.02
/citibike/nearest
/citibike/dock

Real-time bike availability via GBFS. Find available bikes or open docks with walking time estimates.

Subway
$0.02
/subway/nearest

496 stations. GTFS-RT feeds from the MTA, updated every 30 seconds. Live arrivals with line, direction, and ETA.

1 2 3 4 5 6 7 A C E B D F M G J Z L N Q R W S SIR
Bus
$0.02
/bus/nearest

Real-time arrival predictions via MTA SIRI. Routes, destinations, and ETAs for nearby bus stops.

All endpoints: lat required · lng required · limit optional (default 3, max 10)