{"uid":"cap_QlSGzXW1g2yerHXnj2q3B","slug":"agentshelf-xpath-label-extractor-f41efb06","name":"AgentShelf XPath Label Extractor","description":"Call when an agent needs text of //label via //label from a public page or HTML (SSRF-safe). Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/xpath-label first.","url":"https://agentshelf.syntexa.ch/v1/xpath-label?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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SiMQltaCeL3fRCehTlUr3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text content of elements matched by an XPath //label selector from a public URL or raw HTML, with SSRF protection.","exampleAgentPrompt":"Can you extract all the label element texts from this page — https://example.com/signup-form — using an XPath label selector?","exampleUseCases":[{"title":"Extract form field labels from signup page","prompt":"Pull out all the label texts from https://example.com/register so I can see what fields the form is asking for."},{"title":"Parse labels from raw HTML snippet","prompt":"Here's some HTML I copied from a website — can you extract all the label element texts from it using XPath?"},{"title":"Audit accessibility labels on a public page","prompt":"Grab all the label elements from https://shop.example.com/checkout so I can check whether all form inputs have descriptive labels."}],"resultDescription":"Returns the text content of all elements matching the XPath //label selector found in the provided URL's page or raw HTML string, SSRF-safe.","failureModes":["URL is not publicly accessible or returns non-200 response","URL points to a non-HTML resource (e.g. PDF, image)","HTML input exceeds 200,000 character limit","No //label elements found in the document (empty result)","SSRF protection blocks internal/private IP addresses","Malformed URL rejected due to minLength/maxLength constraints"],"whenToPreferThis":"Use this endpoint when you need to specifically extract //label elements from a public webpage or raw HTML snippet, especially when you need SSRF protection built in. Prefer the free sandbox POST /v1/sandbox/xpath-label endpoint first if available; use this paid endpoint when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:11.744Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-label-extractor-f41efb06"}