Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/week-number

Returns the week number, week-year, number of weeks in that year and the week's first and last day for up to 200 dates under ISO 8601 (Monday start, week 1 holds 4 January), the US convention (Sunday start, week 1 holds 1 January) or a custom weekStart/minimalDays rule, and checks an asserted week or week-year (2027-01-01 is ISO 2026-W53). Built for an agent reading or writing week-based dates in

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/week-number

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/week-number", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"date":"2027-01-01","claimedWeek":53,"claimedWeekYear":2026},{"date":"2026-12-31"}],"system":"iso"}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "date": "2027-01-01",
      "claimedWeek": 53,
      "claimedWeekYear": 2026
    },
    {
      "date": "2026-12-31"
    }
  ],
  "system": "iso"
}