{"uid":"cap_RIF0b0Y3HtmDhl8IJre7c","slug":"agentshelf-syntexa-ch-xpath-href-extractor-fcf4bc90","name":"agentshelf.syntexa.ch XPath href Extractor","description":"Call when an agent needs href attributes of //a via //a/@href from a public page or HTML (SSRF-safe). Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/xpath-a-href first.","url":"https://agentshelf.syntexa.ch/v1/xpath-a-href?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_hdFWrpKQXoEJSozNDqbNN","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 all href attributes from anchor tags on a public webpage or provided HTML using XPath (//a/@href), returning a deduplicated list of links.","exampleAgentPrompt":"Can you extract all the href links from the anchor tags on https://example.com/blog — I need the raw list of URLs from every <a> tag on that page.","exampleUseCases":[{"title":"Crawl outbound links from blog post","prompt":"Pull all the href URLs from the anchor tags on https://techcrunch.com/2024/05/01/ai-roundup/ — I want to see every link that article points to."},{"title":"Audit navigation links on a landing page","prompt":"Give me all the anchor href values from this HTML snippet I have — I need to audit which pages the nav menu links to."},{"title":"Discover linked resources on a documentation page","prompt":"Extract every href from the anchor tags on https://docs.python.org/3/library/os.html so I can see what other pages and external resources it references."}],"resultDescription":"A list of href attribute values extracted from all anchor tags found in the provided URL or HTML, deduplicated and SSRF-safe, covering both absolute and relative URLs present in the page.","failureModes":["URL is not publicly accessible or returns non-200 status","HTML content exceeds 200,000 character limit","URL is blocked for SSRF safety reasons (private/internal IPs)","Malformed URL input (too short or too long)","Page has no anchor tags, returning an empty list","Network timeout when fetching the target URL"],"whenToPreferThis":"Use this endpoint when you specifically need href attributes from anchor tags extracted via XPath from a public page or raw HTML. Prefer this over CSS-selector or full-link extraction endpoints when you want precise XPath-based //a/@href queries. Use the free sandbox POST /v1/sandbox/xpath-a-href first if available; fall back to this paid endpoint at $0.009 USDC 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-02T02:15:54.733Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-xpath-href-extractor-fcf4bc90"}