API · x402

Fetch a public HTTP(S) URL and extract bounded, agent-ready main page text in a structu…

Fetch a public HTTP(S) URL and extract bounded, agent-ready main page text in a structured JSON response with status, content type, byte count, final URL, title, and SHA-256 metadata.

by KEVAREMESH · verified provider · updated 2026-10-02

What it does

Fetch a public HTTP(S) URL and extract bounded, agent-ready main page text in a structured JSON response with status, content type, byte count, final URL, title, and SHA-256 metadata.

Tags: public_web_content_fetch · extract_webpage_content_from_url · kevaremesh · x402

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/20462.json for the price and payment options.
  3. Pay. Call GET https://kevaremesh-web.vercel.app/api/x402/web-content-retrieval. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.001 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0010x08f840E3b1b8c31e5Ca56956169705907489E93460s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x08f840E3b1b8c31e5Ca56956169705907489E934",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "amountUsd": 0.001,
    "maxTimeoutSeconds": 60
  }
]

Schemas

Output schema (JSON Schema)
{
  "type": "object",
  "required": [
    "service",
    "product",
    "tool_name",
    "result",
    "generated_at",
    "limitations"
  ],
  "properties": {
    "service": {
      "type": "string",
      "const": "KEVAREMESH"
    },
    "product": {
      "type": "string",
      "description": "Stable KEVAREMESH product key."
    },
    "tool_name": {
      "type": "string",
      "description": "Short capability tool name."
    },
    "result": {
      "type": "object",
      "required": [
        "requested_url",
        "final_url",
        "status",
        "content_type",
        "bytes",
        "truncated",
        "text",
        "sha256"
      ],
      "properties": {
        "requested_url": {
          "type": "string",
          "format": "uri",
          "description": "URL requested by the caller."
        },
        "final_url": {
          "type": "string",
          "format": "uri",
          "description": "Final public URL after validated redirects."
        },
        "status": {
          "type": "integer",
          "description": "Upstream HTTP status."
        },
        "content_type": {
          "type": "string",
          "description": "Upstream Content-Type."
        },
        "bytes": {
          "type": "integer",
          "minimum": 0,
          "description": "Bytes read before the configured cap."
        },
        "truncated": {
          "type": "boolean",
          "description": "True when the response hit the byte cap."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "HTML title when present."
        },
        "text": {
          "type": "string",
          "description": "Normalized readable text for agent context."
        },
        "html": {
          "type": [
            "string",
            "null"
          ],
          "description": "Raw bounded HTML only when include_html=true and the resource is HTML."
        },
        "sha256": {
          "type": "string",
          "description": "SHA-256 hex digest of the bounded upstream text payload."
        }
      }
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Known capability limits relevant to safe use."
    }
  }
}
Example shape — generated from the schema, not a captured live response
{
  "service": "string",
  "product": "string",
  "tool_name": "string",
  "result": {
    "requested_url": "https://example.com",
    "final_url": "https://example.com",
    "status": 0,
    "content_type": "string",
    "bytes": 0,
    "truncated": true,
    "title": "string",
    "text": "string",
    "html": "string",
    "sha256": "string"
  },
  "generated_at": "2026-01-01T00:00:00Z",
  "limitations": [
    "string"
  ]
}

Examples

curl
curl "https://kevaremesh-web.vercel.app/api/x402/web-content-retrieval"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://kevaremesh-web.vercel.app/api/x402/web-content-retrieval");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://kevaremesh-web.vercel.app/api/x402/web-content-retrieval")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
KEVAREMESH
Endpoint
https://kevaremesh-web.vercel.app/api/x402/web-content-retrieval
Machine-readable
/resources/20462.json