{"uid":"cap_KI4pqzB7UX8IC-U0-MEjU","slug":"agentshelf-css-main-text-extractor-aacb235a","name":"AgentShelf CSS Main Text Extractor","description":"Call when an agent needs main text via main from a public page or HTML (SSRF-safe). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/css-main first.","url":"https://agentshelf.syntexa.ch/v1/css-main?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."},"html":{"type":"string","examples":["<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"],"maxLength":200000,"minLength":1,"description":"HTML to extract from locally. Provide html or url. When both are set, html is used."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1FCcvn3el5fnkuJcpYzjz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the main body text from a public web page or HTML string using CSS-based heuristics, with SSRF protection.","exampleAgentPrompt":"Can you grab the main article text from https://example.com/article/123 — just the body content, no nav or sidebars?","exampleUseCases":[{"title":"Article body extraction for summarization","prompt":"Pull the main text from https://techcrunch.com/2024/05/01/some-article and give me just the article body so I can summarize it."},{"title":"Main content from raw HTML","prompt":"I have this HTML from a news page — can you extract just the main readable text from it, ignoring headers, footers, and sidebars?"},{"title":"Research page content retrieval","prompt":"Fetch the main body text from https://en.wikipedia.org/wiki/Large_language_model so I can analyze what it says."}],"resultDescription":"The extracted main body text from the provided URL or HTML, stripped of navigation, headers, footers, and other boilerplate, returned as a plain text string.","failureModes":["URL is unreachable or returns a non-200 response","SSRF check blocks private/internal IP addresses or disallowed hosts","HTML input is malformed or does not contain identifiable main content","Content exceeds the 200,000 character HTML limit","No main content region detectable via CSS heuristics, returning empty or minimal text"],"whenToPreferThis":"Use this endpoint when you need the main readable text from a public web page or raw HTML, and want SSRF-safe fetching without running your own browser or HTML parser. Prefer the free sandbox POST /v1/sandbox/css-main first to test; fall back to this paid endpoint ($0.004 USDC) for production use. Best when you need fast, heuristic-based main content extraction without an LLM.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:48:57.723Z","isFirstParty":false,"canonicalSlug":"agentshelf-css-main-text-extractor-aacb235a"}