EN
Web data · x402

rss-to-json

RSS 2.0 / RSS 1.0 (RDF) / Atom / JSON Feed to clean JSON: feed title, link, language, updated, items with id, title, link, ISO dates, author, text summary, categories and enclosures (podcasts). URL or inline XML, item cap, `since` filter; HTML pages return discovered feed links.

0.002 USDC / call · {atomic} atomic · 2000 atomic

Endpoint

GET|POST https://forge-tools.dentreprise.workers.dev/api/rss-to-json

Parameters

NameRequiredTypeDescription
urlOptionalstringFeed URL
xmlOptionalstringInline feed (POST)
limitOptionalstring1-100, default 20
sinceOptionalstringISO date: only newer items
htmlOptionalstringkeep HTML in summaries

Example request (unpaid — expect 402)

curl -sS -D - "https://forge-tools.dentreprise.workers.dev/api/rss-to-json?url=https%3A%2F%2Fhnrss.org%2Ffrontpage&limit=10"

Example 402 challenge

The same object is also sent as a base64 PAYMENT-REQUIRED header. Amounts are atomic USDC units (6 decimals).

{
  "x402Version": 2,
  "error": "Payment required",
  "resource": {
    "url": "https://forge-tools.dentreprise.workers.dev/api/rss-to-json",
    "description": "RSS 2.0 / RSS 1.0 (RDF) / Atom / JSON Feed to clean JSON: feed title, link, language, updated, items with id, title, link, ISO dates, author, text summary, categories and enclosures (podcasts). URL or inline XML, item cap, `since` filter; HTML pages return discovered feed links.",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "2000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7B8bf45ac6AcbA6D4CFB626b57D3f5fF3C9C89F7",
      "maxTimeoutSeconds": 120,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    }
  ]
}

Retry with payment

curl -sS "https://forge-tools.dentreprise.workers.dev/api/rss-to-json?url=https%3A%2F%2Fhnrss.org%2Ffrontpage&limit=10" \
  -H "PAYMENT-SIGNATURE: $PAYMENT"

Example response

{
  "format": "rss 2.0",
  "title": "Hacker News: Front Page",
  "count": 10,
  "items": [
    {
      "title": "…",
      "link": "…",
      "published": "2026-11-10T12:00:00.000Z"
    }
  ]
}

Related endpoints