{"uid":"cap_MpEyx-0EVMgH-PzVqf5HB","slug":"agentshelf-xpath-button-text-extractor-4f203d4f","name":"AgentShelf XPath Button Text Extractor","description":"Call when an agent needs text of //button via //button from a public page or HTML (SSRF-safe). Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/xpath-button first.","url":"https://agentshelf.syntexa.ch/v1/xpath-button?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.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9h0_7-__kWP8t4Z9kn6mF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the text content of a button element located via XPath from a public webpage URL or provided HTML string.","exampleAgentPrompt":"Can you grab the text of the main call-to-action button on https://example.com/signup — the one at XPath //button[@id='cta']?","exampleUseCases":[{"title":"CTA Button Text Audit","prompt":"I need to check what text the primary sign-up button shows on https://acme.com/pricing — can you use the XPath //button[contains(@class,'cta')] to extract it?"},{"title":"Form Submit Label Verification","prompt":"We have this HTML snippet from our checkout page and I want to confirm what label the submit button at //form[@id='checkout']//button[@type='submit'] is currently showing — can you extract it?"},{"title":"Competitor Button Copy Research","prompt":"Can you pull the text of the button at //button[@data-action='trial-start'] from https://competitor.io/landing to see what call-to-action copy they're using?"}],"resultDescription":"Returns the extracted text content of the button element matched by the provided XPath expression, either fetched from the given public URL or parsed from the supplied HTML string. If no match is found or the request fails, an error is returned.","failureModes":["XPath expression matches no element — empty or null result returned","URL is blocked, non-public, or SSRF-restricted — fetch error","HTML input exceeds 200,000 character limit — validation error","URL is malformed or under 8 characters — validation error","XPath matches a non-button element — may return unexpected text or error","Page requires JavaScript rendering — static fetch may miss dynamically inserted buttons"],"whenToPreferThis":"Use this endpoint when you need to extract the text label of a specific button element from a public webpage or HTML string using a precise XPath selector. Prefer the unpaid sandbox equivalent (/v1/sandbox/xpath-button) for testing. Choose this over general HTML scrapers when you already know the XPath and only need the button text, not broader DOM content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:49:39.007Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-button-text-extractor-4f203d4f"}