Velohost Velohost

Developer interface

Unix Timestamp API

Convert Unix timestamps and UTC datetimes programmatically.

The Velohost Unix Timestamp API provides a fast and stateless interface for converting between Unix timestamps and UTC datetime values.

It is ideal for logging systems, scripts, debugging tools, and automated workflows.

Base API URL

All endpoints listed below are relative to this base URL.

Base API URL https://api.velohost.co.uk/unix-timestamp/

Rate limiting

This API is protected by a global rate limit to ensure fair usage and platform stability.

  • Limit: 30 requests per 10 seconds per IP address
  • Burst traffic is allowed
  • No authentication required
  • Requests exceeding the limit return HTTP 429

This limit applies across all Velohost public APIs.

Error responses

The API uses standard HTTP status codes to indicate errors.

429 Too Many Requests

Returned when the global rate limit is exceeded.

{
  "detail": "Rate limit exceeded"
}
          
400 Bad Request

Returned when a required parameter is missing or invalid.

Endpoints

Current Unix time

Returns the current UTC time and Unix timestamp.

Request
GET /now
Response
 
{
  "utc": {
    "iso": "2025-12-28T20:12:05Z",
    "unix_seconds": 1766952725,
    "unix_milliseconds": 1766952725472
  },
  "source": "datetime_utc"
}

Unix to UTC

Converts a Unix timestamp (seconds or milliseconds) into UTC.

Request
GET /to-utc?timestamp=1766952725
Response
 
{
  "input": "1766952725",
  "detected_unit": "seconds",
  "utc": {
    "iso": "2025-12-28T20:12:05Z",
    "unix_seconds": 1766952725,
    "unix_milliseconds": 1766952725000
  },
  "source": "datetime_utc"
}

UTC to Unix

Converts an ISO-8601 UTC datetime into Unix timestamps.

Request
GET /to-unix?datetime=2025-12-28T20:12:05Z
Response
 
{
  "input": "2025-12-28T20:12:05Z",
  "utc": {
    "iso": "2025-12-28T20:12:05Z",
    "unix_seconds": 1766952725,
    "unix_milliseconds": 1766952725000
  },
  "source": "datetime_utc"
}

Learn more

Explore the tool, documentation, and guides.