Speed Converter API
Convert km/h ↔ mph ↔ m/s ↔ knots ↔ ft/s — all 5 units update instantly as you type.
Fast & Accurate
Get precise results instantly.
Easy Integration
Simple REST API with JSON response.
Developer Friendly
Clear docs and SDK examples.
Free to Start
5,000 free requests/month.
Endpoint
All requests should be made to the following endpoint:
GET https://api.tools.town/v1/converters/speed Authentication
This endpoint requires an API Key. Include your API key in the request header.
Request Parameters
Send a GET request with query parameters.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
value | number | ✓ | Numeric value to convert. | 100 |
from | string | ✓ | Source unit (m-s, km-h, mph, kn, ft-s). | km-h |
to | string | ✓ | Target unit. | mph |
Example Request
curl -G "https://api.tools.town/v1/converters/speed" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "value=100" \
--data-urlencode "from=km-h" \
--data-urlencode "to=mph" Example Response 200 OK
{
"success": true,
"data": {
"input": "0",
"output": "0",
"from": "string",
"to": "string",
"fromLabel": "string",
"toLabel": "string"
}
} Error Codes
| Code | Meaning |
|---|---|
| 400 | Bad Request — missing or invalid parameter |
| 401 | Unauthorized — API key missing or invalid |
| 429 | Rate limit exceeded — free tier: 5,000 requests/month |
| 500 | Internal Server Error — try again or contact support |