---
title: "Convert a date to a Unix timestamp (JSON body)"
method: POST
path: "/api/toolkit/date-to-unix-timestamp"
tags: ["x402"]
---

# Convert a date to a Unix timestamp (JSON body)

`POST /api/toolkit/date-to-unix-timestamp`

## Request

- Base URL: `https://yruz.one`
- URL: `https://yruz.one/api/toolkit/date-to-unix-timestamp`
- Auth: none required

Any date string to a Unix timestamp. No account or API key. Without PAYMENT-SIGNATURE the response is HTTP 402 with an x402 v2 payment challenge; pay and resend the identical request. Input as query string (GET) or JSON body (POST), max 64 KB; the payment is bound to the exact input. Paid calls are counted as usage of the tool on yruz.one/toolkit. Price: 0.002 USDC per call.

## Headers

- `PAYMENT-SIGNATURE` string

## Request body

- object
  - `date` string: date (required)
  - `tz` string: IANA timezone

## Response `200`

Tool result

- object
  - `tool` string
  - `category` string
  - `result` object
  - `web` string

## Other responses

- `400`: Invalid input
- `402`: Payment Required
- `413`: Input over 64 KB
- `422`: Target did not answer (network tools)

---

[API](https://skmtc.dev/yruz/apis/yruz-api.md) · [All operations](https://skmtc.dev/yruz/apis/yruz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yruz/apis/yruz-api/revisions/17883cb21a4a?raw)
