{"uid":"cap_haRm9DbAvQ1XI0myaJiVC","slug":"tereno-webpage-to-markdown-422dc379","name":"Tereno Webpage to Markdown","description":"Convert a public web page into bounded, LLM-ready Markdown with resolved links, citations and a SHA-256 content-addressed artifact any agent can independently re-verify before citing it. Optionally pass a claim to check it is textually supported by the page. Every response includes source/final URL, content hash, validity window and x402 receipt; the first settled payer earns a bounded credit when another wallet reuses it.","url":"https://www.tereno.xyz/api/v1/capabilities/web.compile/invoke","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url","wallet"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"Public HTTP(S) page to convert into bounded, LLM-ready Markdown. Private and local targets are rejected."},"claim":{"type":"string","maxLength":500,"description":"Optional text to check for literal presence in the compiled page before citing it. Does not affect price or caching."},"quote":{"type":"string","minLength":1,"description":"Optional quote id. Omit for the fixed cache-miss list price."},"wallet":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Buyer wallet. It must match the verified x402 payer."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T8DEBrYJ3nfczabfha7T9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a public web page URL into clean, LLM-ready Markdown with resolved links, citations, a SHA-256 content hash, and an x402 payment receipt","exampleAgentPrompt":"Can you grab the content from https://example.com/article and convert it into clean markdown so I can summarize it? Use my wallet 0xAbCd1234...5678 to pay for the fetch.","exampleUseCases":[{"title":"Summarizing a news article","prompt":"Fetch https://www.bbc.com/news/technology-12345678 and convert it to markdown so I can summarize the key points — use wallet 0xAbCd1234567890abcdef1234567890abcdef1234 to cover the cost."},{"title":"Citing a webpage with content verification","prompt":"I need to cite https://docs.example.com/whitepaper.html in a report — can you compile it to markdown and give me its SHA-256 hash so I can verify the content later? My wallet is 0xAbCd1234567890abcdef1234567890abcdef1234."},{"title":"Feeding a product page to an AI workflow","prompt":"Before my agent processes the pricing page at https://someproduct.io/pricing, convert it to LLM-ready markdown with resolved links — my wallet for payment is 0xAbCd1234567890abcdef1234567890abcdef1234."}],"resultDescription":"Returns clean Markdown of the fetched web page with resolved relative links and citations, plus metadata including the source URL, final (post-redirect) URL, SHA-256 content hash, a validity window indicating how long the result is fresh, and an x402 payment receipt. If another wallet previously paid for the same fresh page, the first payer earns a bounded credit.","failureModes":["Private or localhost URLs are rejected with an error — only public HTTP(S) pages are accepted","Invalid or mismatched wallet address (must be a valid 0x Ethereum address matching the x402 payer) causes rejection","URLs exceeding 2048 characters are rejected","Page is behind authentication or a paywall — content cannot be fetched","Network timeout or unreachable host returns an error","Invalid quote ID results in pricing mismatch error","Malformed URL format triggers schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a clean, citation-ready Markdown version of a public web page for LLM consumption, especially when content integrity (SHA-256 hash) and a validity window matter. It is preferable over raw HTTP fetching when you need resolved links, a structured artifact, and an auditable x402 payment receipt. The caching model makes it cost-efficient when the same URL is accessed repeatedly within its freshness window.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:43:55.473Z","isFirstParty":false}