{"uid":"cap_V63Sz-0MTRI--7hHmI6Wd","slug":"httpay-timestamp-api-1297d9da","name":"HTTPay Timestamp API","description":"Get current UTC timestamp in multiple formats (ISO 8601, Unix, relative). Pass ?format=iso|unix|relative|all (default: all). Pass ?ts=<unix-seconds> to convert a specific Unix timestamp. Uses Node.js built-in Date.","url":"https://httpay.xyz/api/timestamp","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Get current UTC timestamp in multiple formats (ISO 8601, Unix, relative). Pass ?format=iso|unix|relative|all (default: all). Pass ?ts=<unix-seconds> to convert a specific Unix timestamp. Uses Node.js built-in Date."}},"example":{"request":{},"response":{"day":12,"iso":"2026-06-12T04:38:42.268Z","hour":4,"meta":{"x402":true,"poweredBy":"Alfred Zhang 🫡"},"unix":1781239122,"year":2026,"month":6,"format":"all","minute":38,"second":42,"source":"Node.js built-in Date","unixMs":1781239122268,"isoDate":"2026-06-12","isoTime":"04:38:42","relative":"just now","dayOfWeek":"Friday","inputType":"now","utcString":"Fri, 12 Jun 2026 04:38:42 GMT","weekOfYear":24,"generatedAt":"2026-06-12T04:38:42.268Z"}},"exampleRequest":{},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_My6zL8rktjzxfAZ5MRPJ7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current UTC timestamp in ISO 8601, Unix epoch, relative, or all formats; can also convert a given Unix timestamp to multiple formats","exampleAgentPrompt":"What's the current UTC timestamp in all formats — ISO 8601, Unix, and relative?","exampleUseCases":null,"resultDescription":"A JSON object containing the current UTC time expressed in one or more formats: ISO 8601 string, Unix epoch integer (seconds), and/or relative time string (e.g. '5 seconds ago'), depending on the ?format parameter. If a ?ts Unix timestamp is provided, converts that specific moment instead of now.","failureModes":["Invalid format parameter returns an error or falls back to default 'all'","Malformed ?ts value (non-numeric or out-of-range) may return an error or unexpected result","Payment not included or invalid x402 USDC payment on Base returns 402 Payment Required","Network timeout returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a server-authoritative current UTC timestamp without setting up API keys or subscriptions, especially in agentic workflows requiring micropayment-based access. Prefer over client-side Date objects when you need a trusted, server-side time source. Also useful for quick Unix-to-ISO or Unix-to-relative timestamp conversions at minimal cost ($0.001 per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:22.889Z","isFirstParty":false}