S

Schedule & Timezone Tools · Availability Intersect

by Schedule & Timezone Tools

POSTBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

Meeting availability intersection — find maximal common free time slots across participant calendars within a bounded window.

Endpoint

POST https://schedule-tools.use.x402atlas.com/availability-intersect

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/availability-intersect", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "minimum_duration_seconds": 1800,
    "participants": [
      {
        "id": "engineering",
        "intervals": [
          {
            "end": "2024-06-03T12:00:00Z",
            "start": "2024-06-03T09:00:00Z"
          }
        ],
        "mode": "available"
      },
      {
        "id": "design",
        "intervals": [
          {
            "end": "2024-06-03T11:30:00Z",
            "start": "2024-06-03T10:00:00Z"
          }
        ],
        "mode": "available"
      },
      {
        "id": "product",
        "intervals": [
          {
            "end": "2024-06-03T12:30:00Z",
            "start": "2024-06-03T10:30:00Z"
          }
        ],
        "mode": "available"
      }
    ],
    "window_end": "2024-06-03T13:00:00Z",
    "window_start": "2024-06-03T09:00:00Z"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://schedule-tools.use.x402atlas.com/availability-intersect" \
  -H "Content-Type: application/json" \
  -d '{"minimum_duration_seconds":1800,"participants":[{"id":"engineering","intervals":[{"end":"2024-06-03T12:00:00Z","start":"2024-06-03T09:00:00Z"}],"mode":"available"},{"id":"design","intervals":[{"end":"2024-06-03T11:30:00Z","start":"2024-06-03T10:00:00Z"}],"mode":"available"},{"id":"product","intervals":[{"end":"2024-06-03T12:30:00Z","start":"2024-06-03T10:30:00Z"}],"mode":"available"}],"window_end":"2024-06-03T13:00:00Z","window_start":"2024-06-03T09:00:00Z"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "algorithm_version": "schedule-v1",
  "minimum_duration_seconds": 1800,
  "operation": "availability-intersect",
  "participant_count": 3,
  "participant_ids": [
    "engineering",
    "design",
    "product"
  ],
  "slot_count": 1,
  "slots": [
    {
      "end": "2024-06-03T11:30:00Z",
      "start": "2024-06-03T10:30:00Z"
    }
  ],
  "warnings": [],
  "window": {
    "end": "2024-06-03T13:00:00Z",
    "start": "2024-06-03T09:00:00Z"
  }
}

Payment details

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

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Schedule & Timezone Tools & similar services