Welcome to Cyclemate API
Cyclemate provides 2 public APIs for bike routing. These APIs are designed to help developers build cycling-focused applications with rich routing capabilities and bike-share integration.Authentication
An API key is required. All API requests must include your key as a bearer token in theAuthorization header:
Getting an API key
API access is granted per application — signing up for a Cyclemate account on its own doesn’t provision a key for third-party use. For third-party developers:- Contact our team to request API access
- We’ll issue you an API key
- Include the key in the
Authorizationheader on every request
Example request
Rate Limiting
Requests are rate-limited to keep the service fast and fair for everyone. Authenticated requests are allowed a higher rate than anonymous ones. If you need higher limits for your application, contact us. Each response includes anX-RateLimit-Remaining header so you can track your remaining budget for the current window.
Exceeding Rate Limits
If you exceed your rate limit, you’ll receive a429 Too Many Requests response:
retry_after field indicates how many seconds to wait before making another request.
Best Practices
- Cache responses when possible to reduce API calls
- Implement exponential backoff when receiving 429 responses
- Batch requests when feasible
- Contact us if you need higher rate limits for your application
Public APIs
Directions
Turn-by-turn directions with super-safe bike routing
Multi-Modal Routing
Multi-modal routing with bike-share integration
Response Format
All API endpoints return JSON responses with the following general structure: Success Response:Coordinate Format
All coordinates in the API use the standard[longitude, latitude] format (GeoJSON standard), unless otherwise specified.
- Longitude: -180 to 180 (East-West position)
- Latitude: -90 to 90 (North-South position)