77trust / 100

Page Rag

by Agent Extraction API in Search & web

x402 APIPassing, checked 10 min ago

Page RAG: Any public web page -> clean LLM-ready Markdown + RAG chunks in one call: main content via Mozilla Readability (no nav/ads/footers), absolute links, title/description/language/canonical/published+modified dates/JSON-LD types, word + token estimates, sha256 content hash for change detection, and heading-aware chunks (configurable size + overlap, each with its heading path). Plain HTTP, robots.txt respected, Markdown/plain text passed through. Flags pages that likely need JavaScript.

GET
https://freetier-agent-api.pages.dev/api/page-rag
Price
$0.0025
per call in USDC
Uptime
98.0%
last 30 days
Response time
46 ms
322 ms slowest 5%
Last check
Passed
10 min ago, next in 23 min

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://freetier-agent-api.pages.dev/api/page-rag

Each call costs $0.0025 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://freetier-agent-api.pages.dev/api/page-rag?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHTTP_402

Parameters

ParameterTypeRequiredDescription
chunk_tokensintegerNochunk size in tokens (0 = no chunks, default 800, max 4000)
main_onlystringNomain content only via Readability (default true) One of: true, false.
max_charsintegerNomax Markdown characters (default 100000, max 400000)
overlapintegerNochunk overlap in tokens (default 80)
urlstringYespublic http(s) page URL

Example response

The provider's example. We can't check it without paying.

Example response, 45 lines
{
  "canonical": "https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#402",
  "chunks": [
    {
      "headingPath": "List of HTTP status codes - Wikipedia",
      "index": 0,
      "text": "# List of HTTP status codes - Wikipedia\n\nThis article lists standard and notable non-standard [HTTP response status codes](https://en.wikipedia.org/wiki/HTTP...",
      "tokenEstimate": 666
    },
    {
      "headingPath": "List of HTTP status codes - Wikipedia > Standard codes > 1xx informational response",
      "index": 1,
      "text": "The server has received the request headers and the client should proceed to send the request body (in the case of a request for which a body needs to be sen...",
      "tokenEstimate": 460
    }
  ],
  "contentHash": "sha256:7ad19acc51489e84fb2f495ed08b7ac0dc6a9e6f8635caefcc8cef78238a4c52",
  "contentType": "text/html",
  "description": null,
  "extractor": "readability",
  "fetchMs": 484,
  "fetchedAt": "2026-10-24T18:11:05.434Z",
  "finalUrl": "https://en.wikipedia.org/wiki/HTTP_402",
  "jsonLdTypes": [],
  "language": "en",
  "likelyNeedsJavaScript": false,
  "markdown": "# List of HTTP status codes - Wikipedia\n\nThis article lists standard and notable non-standard [HTTP response status codes](https://en.wikipedia.org/wiki/HTTP...",
  "modifiedAt": null,
  "ok": true,
  "publishedAt": null,
  "siteName": null,
  "sources": [
    {
      "name": "Live fetch of the page you name (plain HTTP, robots.txt respected); Mozilla Readability + Turndown (Apache-2.0 / MIT), linkedom (ISC)",
      "url": "https://github.com/mozilla/readability"
    }
  ],
  "status": 200,
  "title": "List of HTTP status codes - Wikipedia",
  "tokenEstimate": 18376,
  "truncated": true,
  "truncatedReason": "page HTML larger than 350000 bytes after removing scripts/styles; only the first part was converted",
  "url": "https://en.wikipedia.org/wiki/HTTP_402",
  "wordCount": 6573
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.0025.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://freetier-agent-api.pages.dev/api/page-rag?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHTTP_402'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://freetier-agent-api.pages.dev/api/page-rag?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHTTP_402' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.0025 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.0025" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.0025 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ffreetier-agent-api.pages.dev%2Fapi%2Fpage-rag
const res = await pay("https://freetier-agent-api.pages.dev/api/page-rag?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHTTP_402");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.0025 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.0025"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://freetier-agent-api.pages.dev/api/page-rag?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHTTP_402")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
10 min agoPassed40246 ms$0.0025
20 h agoTimed out---
3 days agoTimed out---
4 days agoPassed40248 ms$0.0025
4 days agoPassed4021.1 s$0.0025
Show 10 older checks
5 days agoPassed40284 ms$0.0025
5 days agoPassed40269 ms$0.0025
5 days agoPassed40260 ms$0.0025
6 days agoPassed40235 ms$0.0025
6 days agoPassed402657 ms$0.0025
6 days agoPassed40283 ms$0.0025
7 days agoPassed40242 ms$0.0025
7 days agoPassed402105 ms$0.0025
7 days agoPassed40240 ms$0.0025
8 days agoPassed40223 ms$0.0025