TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/samgutentag/bcycle-map/llms.txt
Use this file to discover all available pages before exploring further.
/current endpoint returns the most recent snapshot that the poller wrote to Cloudflare KV for the requested system. This is the primary data source for the live map’s station pins, stats card, and sparkline widget — it contains everything the frontend needs in a single request.
Endpoint
Path parameters
The unique system identifier. Must match a system registered in the systems index.Example:
bcycle_santabarbaraResponse
On success the worker readssystem:<systemId>:latest from KV and returns the raw JSON blob with Content-Type: application/json and Cache-Control: max-age=60.
Top-level fields
Static metadata about the system sourced from the GBFS
system_information feed.Unix timestamp (seconds) of the poll tick that produced this snapshot.
Array of station objects combining static info (location, name) with live counts.
Highest total
sum(num_bikes_available) the poller has ever observed. A proxy for total fleet size. Grows monotonically; converges within a day or two of first polling.Rolling 24-element window of per-hour min/max bikes-available stats. Used by the sparkline widget.
Unix seconds when the system-wide bike count last changed. Used to render a “changed X min ago” badge.
Error responses
| Status | Body | Meaning |
|---|---|---|
404 | not found | No KV data exists for this systemId. The system may not be registered or the poller has not run yet. |
Example request
Example response
The poller writes a new KV snapshot approximately every 5 minutes. Combined with the 60-second edge cache, data you receive may be up to 65 seconds behind the most recent poll tick. For near-real-time activity (bike departures/arrivals), use the lower-latency
/activity endpoint (max-age=20).