{"uid":"cap_v8xvH4DLvmAJEiRR2EIYs","slug":"extract-text-as-json-65cbe141","name":"extract-text-as-json","description":"Extract the page's text as json: fetches the URL, pulls every text element (readable body text) and returns them as a JSON array, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.","url":"https://page.intel.rallylive.ca/page/text/json?utm_source=zero.xyz","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DzsBZ-2RCT5rAAuNNDgGC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and extracts all readable body text elements, returning them as a structured JSON array with a count","exampleAgentPrompt":"Can you fetch https://example.com/about and give me all the readable body text from that page as a JSON array?","exampleUseCases":[{"title":"Content audit for marketing team","prompt":"Pull all the readable text from https://acme-corp.com/products and give it back to me as a JSON array so I can review what's on the page."},{"title":"AI pipeline text ingestion","prompt":"Grab the body text from https://techblog.io/latest-post as structured JSON — I need to feed it into my summarization pipeline."},{"title":"Competitive intelligence text capture","prompt":"Fetch https://competitor.com/pricing and extract every piece of readable text as a JSON array so I can analyze what they're saying about their plans."}],"resultDescription":"A JSON array of all readable text elements found on the page (body text nodes), plus a count of how many elements were extracted. Each array entry represents a distinct text element from the page's readable content.","failureModes":["URL is unreachable or returns a non-200 status — empty array or error response returned","Page has no readable body text (e.g. purely JavaScript-rendered content without SSR) — empty array returned","Malformed or invalid URL provided — request fails with an error","Payment not authorized — x402 payment required error before content is returned","Rate limiting or server-side blocks on the target URL — fetch may fail or return partial content"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable extraction of all readable body text from a webpage without spinning up a browser. Ideal for AI pipelines, content audits, or text ingestion tasks where you want a clean JSON array of text elements rather than raw HTML. Prefer it over HTML scrapers when downstream consumers need pre-parsed text, and over sentence-level or heading-level extractors when you want all body text in one flat pass.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:57:05.286Z","isFirstParty":false,"canonicalSlug":"extract-text-as-json-65cbe141"}