Get Current Date and Time
Return the current server time formatted in an IANA timezone.
POST
/v2/utils/current-dateRequest
curl -X POST "https://moltsetz.vercel.app/v2/utils/current-date" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"region": "America/New_York"
}'Body
| Field | Type | Required | Description and limits |
|---|---|---|---|
region | string | Required | IANA timezone name.For example America/New_York or Asia/Kolkata |
Pagination
This endpoint is not paginated.
Credits
One request credit is recorded only when this endpoint returns a 2xx response. Authentication, validation, rate-limit, and not-found responses do not consume a credit.
Response
| Field | Type | Description |
|---|---|---|
datetime | string | Localized date and time. |
timestamp | integer | Unix timestamp in seconds. |
timezone | string | Accepted IANA timezone. |
Example response
{
"datetime": "2026-08-02 05:50:00",
"timestamp": 1785664200,
"timezone": "America/New_York"
}Errors
| Status | Code | When |
|---|---|---|
422 | INVALID_INPUT | A required value is missing, malformed, or outside its documented limits. |
401 | UNAUTHORIZED | The x-api-key header is missing or invalid. |
402 | CREDITS_EXHAUSTED | A limited plan has no request credits remaining. |
405 | METHOD_NOT_ALLOWED | The endpoint is called with an unsupported HTTP method. |
429 | RATE_LIMIT_EXCEEDED | The API key exceeds its plan-wide requests-per-second limit. |
500 | DATA_SERVICE_ERROR | The data service cannot complete the request. |
{
"success": false,
"error": {
"code": "INVALID_INPUT",
"message": "A field-specific validation message"
}
}