S

SameDayDesk · Extract Batch

by SameDayDesk

POSTBase

$0.01

per call · USD Coin on Base

Batch extract one to five public HTTPS URLs into bounded structured fields. One flat 0.01 USDC (10000 atomic Base USDC) quote buys a bounded attempt with hard request, byte, and wall-time ceilings. Charge is for the attempt, not a guarantee that every URL succeeds.

Endpoint

POST https://agents.samedaydesk.com/extract/batch

1

Calls / 30d

1

Unique payers / 30d

Sep 8

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://agents.samedaydesk.com/extract/batch", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "fields": [
      "title",
      "description",
      "headings"
    ],
    "urls": [
      "https://example.com/"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.samedaydesk.com/extract/batch" \
  -H "Content-Type: application/json" \
  -d '{"fields":["title","description","headings"],"urls":["https://example.com/"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "accounting": {
    "bytes": 528,
    "failed": 0,
    "partial": 0,
    "requests": 1,
    "retries": 0,
    "skippedDuplicate": 0,
    "succeeded": 1,
    "unknown": 0,
    "wallMs": 12
  },
  "boundary": {
    "automaticRetries": false,
    "guaranteedUrlSuccess": false,
    "introductoryPrice": true,
    "sourceFetchBeforeAuthorization": false
  },
  "charged": true,
  "costInputs": {
    "admittedBodyBytes": 528,
    "hostingCosts": "unknown",
    "modelCosts": "none",
    "monetaryMargin": null,
    "note": "accounting.bytes is uncompressed admitted application body bytes, including unresolved reservations, not socket wire billing",
    "requests": 1,
    "wallMs": 12
  },
  "jobId": "0000000000000000000000000000000000000000000000000000000000000000",
  "jobStatus": "completed",
  "ok": true,
  "partial": false,
  "product": "samedaydesk-extract-batch",
  "quote": {
    "amountAtomic": "10000",
    "displayUsdc": "0.01",
    "meaning": "Introductory flat 0.01 USDC batch quote for a bounded 1-5 URL attempt. Not a per-URL success promise."
  },
  "schemaVersion": "samedaydesk.extract-batch.v0",
  "sources": [
    {
      "data": {
        "description": null,
        "headings": {
          "h1": [
            "Example Domain"
          ],
          "h2": []
        },
        "title": "Example Domain"
      },
      "error": null,
      "id": "item-001",
      "notes": [],
      "provenance": {
        "finalUrl": "https://example.com/",
        "httpStatus": 200,
        "transport": "live"
      },
      "source": "https://example.com/",
      "status": "success"
    }
  ],
  "stopReason": null
}

Payment details

Pay to0x8904df3de6dfee6a7c8cc38619d2f17806213cee
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from SameDayDesk & similar services