Unix Converter API
Integrate Unix timestamp conversion into your applications with our RESTful API. Fast, reliable, and developer-friendly.
Fast responsesSecure & reliableFree tier available
API Endpoints
GET
Convert Unix Timestamp to Date
GET /api/unix-to-date?timestamp=1640995200&timezone=UTC&format=iso
Parameters
timestamp- Unix timestamp (required)timezone- Target timezone (optional, default: UTC)format- Output format (optional, default: iso)
Response
{
"timestamp": 1640995200,
"date": "2022-01-01T00:00:00.000Z",
"formatted": "January 1, 2022",
"timezone": "UTC"
}
GET
Convert Date to Unix Timestamp
GET /api/date-to-unix?date=2022-01-01T00:00:00Z
Parameters
date- Date string (required)timezone- Input timezone (optional, default: UTC)
Response
{
"date": "2022-01-01T00:00:00.000Z",
"timestamp": 1640995200,
"milliseconds": 1640995200000,
"timezone": "UTC"
}
POST
Batch Conversion
POST /api/batch-convert
Request Body
{
"type": "unix-to-date",
"values": [1640995200, 1641081600],
"timezone": "UTC",
"format": "iso"
}
Response
{
"results": [
{
"input": 1640995200,
"output": "2022-01-01T00:00:00.000Z"
},
{
"input": 1641081600,
"output": "2022-01-02T00:00:00.000Z"
}
]
}
Code Examples
JavaScript / Node.js
// Convert Unix timestamp to date
const response = await fetch(
'https://api.unix-converter.com/unix-to-date?timestamp=1640995200'
);
const data = await response.json();
console.log(data.date); // 2022-01-01T00:00:00.000Z
// Convert date to Unix timestamp
const dateResponse = await fetch(
'https://api.unix-converter.com/date-to-unix?date=2022-01-01T00:00:00Z'
);
const dateData = await dateResponse.json();
console.log(dateData.timestamp); // 1640995200Python
import requests
# Convert Unix timestamp to date
response = requests.get(
'https://api.unix-converter.com/unix-to-date',
params={'timestamp': 1640995200}
)
data = response.json()
print(data['date']) # 2022-01-01T00:00:00.000Z
# Batch conversion
batch_data = {
'type': 'unix-to-date',
'values': [1640995200, 1641081600],
'timezone': 'UTC'
}
batch_response = requests.post(
'https://api.unix-converter.com/batch-convert',
json=batch_data
)
print(batch_response.json())Rate Limits & Pricing
Free Tier
$0
per month
- • 1,000 requests/day
- • Basic endpoints
- • Community support
- • No API key required
Popular
Pro
$9
per month
- • 100,000 requests/day
- • All endpoints
- • Priority support
- • API key authentication
- • Batch processing
Enterprise
Custom
pricing
- • Unlimited requests
- • Custom endpoints
- • Dedicated support
- • SLA guarantee
- • On-premise deployment