← Back to marketplace

Timestamp Converter

Convert between Unix timestamps and ISO 8601 date strings. Get the current time in multiple formats including UTC, ISO, and Unix seconds/milliseconds.

infra
by APIHub2 endpoints100% uptime14ms avg

Endpoints

POST/timestamp/convert
$0.0010/req

Convert between formats. Body: {"unix": 1700000000} or {"iso": "2024-01-01T00:00:00Z"}

Request schema

unixinteger
isostring
GET/timestamp/now
$0.0010/req

Get current timestamp in unix, unix_ms, ISO, and UTC formats.

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/timestamp-converter/timestamp/convert" \
  -d '{"unix":1700000000,"iso":"2026-04-25T12:00:00Z"}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/timestamp-converter/timestamp/convert \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"unix":1700000000,"iso":"2026-04-25T12:00:00Z"}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Timestamp Converter.

POST /timestamp/convert$0.0010/req
-
GET /timestamp/now$0.0010/req
-