Back to Tool

Timestamp Converter API

Convert between Unix timestamps and date formats

Endpoint

POST/api/v1/timestamp-converter

Authentication

Include your API key in the request header:

X-API-Key: your_api_key_here

Get your API key from the Dashboard

Request Body

Content-Type: application/json

FieldTypeRequiredDescription
valuenumber|stringYesTimestamp or date string to convert
actionstringYes"toDate" (timestamp to date) or "toTimestamp" (date to timestamp)
formatstringNo"seconds" or "milliseconds" (default: seconds)

Response

FieldTypeDescription
successbooleanWhether the operation was successful
timestampnumberUnix timestamp in seconds
timestampMsnumberUnix timestamp in milliseconds
isostringISO 8601 date string
utcstringUTC date string
dateobjectDate components (year, month, day, etc.)

Code Examples

curl -X POST https://tools.shubhambadgujar.com/api/v1/timestamp-converter \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"value": 1704067200, "action": "toDate"}'

Pricing

$0.0010 per call

Get API Key

Rate Limits

  • • 100 requests per minute
  • • 10,000 requests per day
  • • Max request size: 10MB

Need Help?

Contact us at support@shubhambadgujar.com