Back to Tool
⏰
Timestamp Converter API
Convert between Unix timestamps and date formats
Endpoint
POST
/api/v1/timestamp-converterAuthentication
Include your API key in the request header:
X-API-Key: your_api_key_hereGet your API key from the Dashboard
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| value | number|string | Yes | Timestamp or date string to convert |
| action | string | Yes | "toDate" (timestamp to date) or "toTimestamp" (date to timestamp) |
| format | string | No | "seconds" or "milliseconds" (default: seconds) |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation was successful |
| timestamp | number | Unix timestamp in seconds |
| timestampMs | number | Unix timestamp in milliseconds |
| iso | string | ISO 8601 date string |
| utc | string | UTC date string |
| date | object | Date 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"}'Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com