{"uid":"cap_A_oi2Rc6NpFJI25XYx9Cj","slug":"agentshelf-syntexa-ch-xpath-lang-attribute-text-extractor-c3aaf395","name":"agentshelf.syntexa.ch XPath Lang Attribute Text Extractor","description":"Call when an agent needs text of elements that have a lang attribute via //*[@lang] from a public page or HTML (SSRF-safe). Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/xpath-lang first.","url":"https://agentshelf.syntexa.ch/v1/xpath-lang?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.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_P9A4-Lhjc20JvWelcJCrf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","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 all HTML elements that have a lang attribute (via XPath //*[@lang]) from a public URL or raw HTML.","exampleAgentPrompt":"Can you extract all the text from elements that have a lang attribute on this page: https://example.com/multilingual — I want to see every language-tagged section?","exampleUseCases":[{"title":"Detect multilingual sections on a page","prompt":"Go to https://www.un.org/en/about-us and pull out all the text content from elements that have a lang attribute — I want to see what language-tagged regions exist on the page."},{"title":"Audit internationalization in raw HTML","prompt":"I have this HTML snippet and I need you to find every element that carries a lang attribute and return its text — can you run the lang XPath extraction on it?"},{"title":"Research competitor multilingual content","prompt":"Check https://www.apple.com and extract all the text from any element that has a lang attribute set — I'm trying to understand how they structure their multilingual content."}],"resultDescription":"Returns the text content of every HTML element matched by the XPath expression //*[@lang] — i.e., any element carrying a lang attribute — from the provided URL or HTML input. Output is a list or structured collection of text strings corresponding to those matched elements.","failureModes":["URL is not publicly accessible or returns a non-200 status (blocked or private resource)","SSRF-blocked URL (private IP ranges, localhost, internal hostnames rejected for security)","No elements with a lang attribute found on the page (empty result set)","HTML payload exceeds 200,000 character limit","URL string shorter than 8 characters or longer than 2,048 characters","Malformed or unparseable HTML causing XPath evaluation failure","Network timeout when fetching the target URL"],"whenToPreferThis":"Prefer this endpoint when you specifically need to extract text from elements bearing a lang attribute, such as auditing multilingual or internationalized content on a page. Use over generic scraping tools when the XPath //*[@lang] selector is exactly what you need. Consider the free sandbox POST /v1/sandbox/xpath-lang first before spending $0.006 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:46:44.134Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-xpath-lang-attribute-text-extractor-c3aaf395"}