{"uid":"cap_IZWQl4s5F2QpRHYs_-Y7B","slug":"agentshelf-xpath-td-text-extractor-3be7f731","name":"AgentShelf XPath TD Text Extractor","description":"Call when an agent needs text of //td via //td from a public page or HTML (SSRF-safe). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/xpath-td first.","url":"https://agentshelf.syntexa.ch/v1/xpath-td?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 name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\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_35XzAOf2ljuyhN_YhRrsc","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 text content from all <td> table cell elements on a public webpage or raw HTML using XPath, returning the collected text values.","exampleAgentPrompt":"Can you extract all the table cell (td) text from this page: https://example.com/data-table — I need every td value scraped from that public URL.","exampleUseCases":[{"title":"Scrape pricing table from product page","prompt":"Pull all the table cell text from https://example.com/pricing — I want every td value so I can see the pricing tiers and feature comparisons listed in the tables."},{"title":"Extract stock data from HTML snippet","prompt":"I have this HTML snippet with a financial data table — can you extract all the td text from it so I can read the stock values row by row? Here's the HTML: <table><tr><td>AAPL</td><td>$182.50</td></tr></table>"},{"title":"Parse sports standings table","prompt":"Grab all the td text from https://sports-site.com/standings so I can see the team names, wins, and losses listed in the standings table."}],"resultDescription":"A list or collection of text strings extracted from all <td> elements found in the provided page or HTML, returned as structured data representing table cell contents.","failureModes":["URL is not publicly accessible or returns non-200 status — extraction fails with an error","HTML input exceeds 200,000 character limit — request rejected","No <td> elements found in the page or HTML — returns empty result","SSRF-blocked URL (internal/private IP ranges) — request rejected for security reasons","Malformed or unparseable HTML — XPath evaluation may return empty or partial results","URL string shorter than 8 characters or longer than 2048 characters — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need to extract text content specifically from HTML table cells (<td> elements) from a public webpage or a raw HTML string, and you want SSRF-safe server-side fetching without running your own scraper. It is ideal for structured table data extraction where XPath targeting of <td> is the right selector. Use the free sandbox POST /v1/sandbox/xpath-td first to avoid the $0.004 USDC charge during development or testing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:00.424Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-td-text-extractor-3be7f731"}