API Documentation
Free REST API for timestamp conversions
Base URL
https://myepochtimeconverter.com/apiTimestamp to Date
Convert a Unix timestamp to human-readable date formats
Endpoint
GET /api/convert?timestamp={timestamp}Parameters
| Parameter | Type | Description |
|---|---|---|
| timestamp | string | Unix timestamp (required if date not provided) |
| format | string | seconds (default), milliseconds, microseconds, nanoseconds |
Example
/api/convert?timestamp=1787325042Response
{
"input": { "timestamp": "1787325042", "format": "seconds" },
"result": {
"utc": "Fri, 21 Aug 2026 15:10:42 GMT",
"iso": "2026-08-21T15:10:42.000Z",
"local": "8/21/2026, 3:10:42 PM",
"milliseconds": 1787325042000,
"seconds": 1787325042
}
}Date to Timestamp
Convert a date string to Unix timestamp
Endpoint
GET /api/convert?date={date}Parameters
| Parameter | Type | Description |
|---|---|---|
| date | string | ISO 8601 date string (required if timestamp not provided) |
Example
/api/convert?date=2026-08-21T15:00:00Response
{
"input": { "date": "2026-08-21T15:00:00" },
"result": {
"seconds": 1787324400,
"milliseconds": 1787324400000,
"microseconds": 1787324400000000,
"nanoseconds": 1787324400000000000,
"utc": "Fri, 21 Aug 2026 15:00:00 GMT",
"iso": "2026-08-21T15:00:00.000Z"
}
}Rate Limits
This API is free to use with no rate limits. However, please be respectful and don't abuse the service.
Support
For questions or issues, please contact us at support@myepochtimeconverter.com