開発者向けリファレンス

REST API ドキュメント

Timestamp API ドキュメント

予測しやすいリクエストとレスポンス形式で、タイムスタンプ変換、検証、フォーマット処理をアプリに組み込めます。

ベース URL

https://maketimestamp.com

認証

公開サンプルでは認証は不要です。本番環境では API key またはセッション認証を追加してください。

エンドポイント

GET
/api/timestamp/current

Return the current Unix timestamp, ISO string, UTC date, and timezone metadata.

POST
/api/timestamp/convert

Convert a Unix timestamp to ISO 8601, RFC 3339, UTC, or a named timezone.

POST
/api/timestamp/validate

Validate seconds, milliseconds, microseconds, nanoseconds, ISO 8601, and RFC 3339 inputs.

POST
/api/timestamp/format

Format timestamp values for logs, APIs, databases, Discord, or custom display strings.

リクエストパラメータ

timestampnumber | string

Required for conversion

Unix seconds, milliseconds, microseconds, nanoseconds, or date string.

timezonestring

Optional

IANA timezone such as UTC, America/New_York, Europe/London, or Asia/Shanghai.

formatstring

Optional

Output format: iso, rfc3339, unix, local, utc, discord, or custom.

precisionstring

Optional

Auto-detected by default. Set seconds, milliseconds, microseconds, or nanoseconds when needed.

レスポンス形式

{
  "code": 0,
  "message": "ok",
  "data": {
    "timestamp": 1785078000,
    "iso": "2026-07-26T15:00:00.000Z",
    "timezone": "UTC",
    "precision": "seconds"
  }
}