POST
datetime
unix_timestamp
1 creditConvert a date string to a Unix timestamp, or a Unix timestamp to an ISO 8601 date string.
Endpoint
POST /api/v1/tools/datetime/unix_timestamp
Body Parameters
action
string
optional
default: "to_timestamp"
Options:
to_timestamp
from_timestamp
timestamp
integer | number | null
optional
default: null
date_string
string | null
optional
default: null
Example
input
Request
{
"action": "from_timestamp",
"timestamp": 1705312200
}
output
Response
{
"iso": "2024-01-15T09:50:00+00:00"
}
Response Format
HTTP/1.1 200 OK
SUCCESS
{
"success": true,
"data": {
"iso": "2024-01-15T09:50:00+00:00"
},
"meta": {
"tool": "unix_timestamp",
"credits_consumed": 1
}
}
HTTP/1.1 422 Unprocessable Entity
ERROR
{
"success": false,
"data": null,
"error": {
"code": "validation_error",
"message": "The given data was invalid."
}
}
Sign in to try this tool directly from the docs.
Code Examples
Request Example
lightbulb
Developer Tip
Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.