# transit402.dev Citi Bike Nearest Pickup Stations

> transit402.dev Citi Bike Nearest Pickup Stations is a paid API for AI agents from transit402.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns nearby Citi Bike stations with counts of available classic bikes and e-bikes, ranked by proximity to a given coordinate

## Facts

- Endpoint: POST https://transit402.dev/citibike/nearest
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/transit402-dev-23228004
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kTz6Z8CHJ-TEBK1xH0uys

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability transit402-dev-23228004 -d '<json body>'
```

Example prompt: I'm at 40.7484, -73.9967 — find me the 5 nearest Citi Bike stations that have bikes available, especially any with e-bikes.

## When to prefer this

Use this endpoint when an agent needs to find a Citi Bike station for pickup (not return) near a specific coordinate, especially when filtering by e-bike availability or minimum bike count. Prefer this over generic transit endpoints when the user specifically wants bike share, and over the sibling dock-return endpoint when the user wants to start a ride, not end one.

## Known failure modes

- Invalid or out-of-range coordinates (e.g. lat/lng outside NYC service area) return no results or an error
- limit parameter outside 1–10 range is rejected
- Citi Bike feed unavailable causes upstream timeout or stale data
- Location in a borough or neighborhood with no Citi Bike coverage returns empty results

## How this service works

Nearby Citi Bike pickup stations with available bikes and e-bikes

## Output

A ranked list of up to 10 nearby Citi Bike stations including station name, coordinates, number of classic bikes available, number of e-bikes available, and distance from the queried location.

## Example request

```json
{
 "lat": 40.7484,
 "lng": -73.9967,
 "limit": 5
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat": {
   "type": "number",
   "description": "Latitude in WGS84 decimal degrees."
  },
  "lng": {
   "type": "number",
   "description": "Longitude in WGS84 decimal degrees."
  },
  "limit": {
   "type": "integer",
   "default": 5,
   "maximum": 10,
   "minimum": 1,
   "description": "Optional number of nearby results to return (1–10, defaults to 5). Fetch the full set to filter by user constraints (min bikes, max walk time, e-bikes only, specific lines/routes), then present the top 3 to the user."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/transit402-dev-23228004/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from transit402.dev](https://www.zero.xyz/host/transit402.dev/llms.txt)
