← all AgentPay tools

url_reader

Convert any URL to clean, LLM-ready markdown. Strips ads, nav, and boilerplate — returns just the content. No API key needed..

Free data x402 protocol no API key · no wallet

When agents use this

You need to read the content of a web page or article and get clean, structured text for further processing.

Parameters

nametyperequireddescription
urlstringyesThe URL to fetch and convert to markdown

Returns

content (markdown), url, length, truncated flag

Example response

{
  "url": "https://example.com",
  "content": "# Example Domain\n\nThis domain is for use in illustrative examples...",
  "length": 1256,
  "truncated": false,
  "source": "jina_reader"
}

Call it — HTTP (x402)

curl -X POST https://agentpay.tools/tools/url_reader/call \
  -H 'Content-Type: application/json' \
  -d '{"parameters": {"url": "The URL to fetch and convert to markdown"}, "agent_address": "<your wallet or any identifier>"}'

Call it — Python SDK

from agentpay import quickstart  # pip install agentpay-x402

s = quickstart(max_spend=0.10)   # hard budget cap; mints a wallet, no funding needed
r = s.call("url_reader", {"url": "The URL to fetch and convert to markdown"})
print(r.data)                    # + r.cost, r.tx, r.network — full receipt

Call it — MCP

npx -y @romudille/agentpay-mcp   # keyless; exposes url_reader to any MCP agent runtime
All tools · x402 delivery scores · Receipt ledger · Guides · llms.txt · AgentPay