S

Schedule & Timezone Tools · Cron Next

by Schedule & Timezone Tools

POSTBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

Cron next-run calculator — generate future times for bounded five-field POSIX cron schedules in IANA timezones with explicit daylight-saving (DST) policies.

Endpoint

POST https://schedule-tools.use.x402atlas.com/cron-next

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://schedule-tools.use.x402atlas.com/cron-next", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "after": "2024-03-28T12:00:00Z",
    "ambiguous_time": "reject",
    "count": 5,
    "expression": "0 9 * * 1-5",
    "nonexistent_time": "shift_forward",
    "timezone": "Europe/London"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://schedule-tools.use.x402atlas.com/cron-next" \
  -H "Content-Type: application/json" \
  -d '{"after":"2024-03-28T12:00:00Z","ambiguous_time":"reject","count":5,"expression":"0 9 * * 1-5","nonexistent_time":"shift_forward","timezone":"Europe/London"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "after": "2024-03-28T12:00:00Z",
  "algorithm_version": "schedule-v1",
  "ambiguous_time": "reject",
  "candidate_minutes_checked": 11460,
  "count": 5,
  "expression": "0 9 * * 1-5",
  "go_toolchain_version": "go1.26.3",
  "iana_tzdata_version": "2026a",
  "nonexistent_time": "shift_forward",
  "occurrences": [
    {
      "local": {
        "abbreviation": "GMT",
        "local_time": "2024-03-29T09:00:00+00:00",
        "offset_seconds": 0,
        "timezone": "Europe/London"
      },
      "utc": "2024-03-29T09:00:00Z"
    },
    {
      "local": {
        "abbreviation": "BST",
        "local_time": "2024-04-01T09:00:00+01:00",
        "offset_seconds": 3600,
        "timezone": "Europe/London"
      },
      "utc": "2024-04-01T08:00:00Z"
    },
    {
      "local": {
        "abbreviation": "BST",
        "local_time": "2024-04-02T09:00:00+01:00",
        "offset_seconds": 3600,
        "timezone": "Europe/London"
      },
      "utc": "2024-04-02T08:00:00Z"
    },
    {
      "local": {
        "abbreviation": "BST",
        "local_time": "2024-04-03T09:00:00+01:00",
        "offset_seconds": 3600,
        "timezone": "Europe/London"
      },
      "utc": "2024-04-03T08:00:00Z"
    },
    {
      "local": {
        "abbreviation": "BST",
        "local_time": "2024-04-04T09:00:00+01:00",
        "offset_seconds": 3600,
        "timezone": "Europe/London"
      },
      "utc": "2024-04-04T08:00:00Z"
    }
  ],
  "operation": "cron-next",
  "timezone": "Europe/London",
  "tzdata_source": "bridge-embedded",
  "warnings": []
}

Payment details

Pay to0x8c128f1ee62bb5e47867cfbae2ad89be325df1b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from Schedule & Timezone Tools & similar services