{"uid":"cap_mYPQEaJCzAgqulWXWms8y","slug":"agentshelf-html-lang-attribute-extractor-85d9dff7","name":"AgentShelf HTML Lang Attribute Extractor","description":"Call when an agent needs the html lang attribute extracted from a public page or HTML (SSRF-safe). Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/profile-html-lang first.","url":"https://agentshelf.syntexa.ch/v1/profile-html-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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b7rG5NhfYpMYE4YxxeE6g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the `lang` attribute value from the `<html>` element of a given public webpage URL or raw HTML string, in an SSRF-safe manner.","exampleAgentPrompt":"Can you extract the HTML lang attribute from https://www.example.com so I know what language the page declares?","exampleUseCases":[{"title":"SEO language audit for website","prompt":"Check https://www.acmecorp.com and tell me what language code is set in the html lang attribute — I need to confirm it's set correctly for our international SEO audit."},{"title":"Accessibility compliance check","prompt":"I have this raw HTML snippet and need to know what the html lang attribute is set to — can you pull that out so I can verify it meets WCAG accessibility requirements?"},{"title":"Bulk language tag verification","prompt":"Can you check the html lang attribute on https://blog.widgets.io — we need to confirm all our regional pages are declaring the right language codes before launch."}],"resultDescription":"Returns the value of the `lang` attribute found on the root `<html>` element of the fetched or provided HTML document (e.g. 'en', 'fr', 'zh-CN'). If the attribute is absent or the page cannot be fetched, returns an empty or error response.","failureModes":["URL is unreachable or returns a non-200 HTTP status","SSRF guard blocks private/internal IP addresses or metadata endpoints","HTML has no lang attribute on the html element — returns empty result","HTML string exceeds 200,000 character limit","Neither url nor html provided — schema validation error","Malformed or non-HTML content at the given URL"],"whenToPreferThis":"Use this endpoint when you need to programmatically determine the declared language of a webpage or HTML fragment via the `<html lang>` attribute, particularly for SEO audits, accessibility checks, or internationalization validation. Prefer the free sandbox variant (/v1/sandbox/profile-html-lang) for testing. Use this paid endpoint when the sandbox is unavailable or when making production calls. Choose sibling endpoints if you need other HTML metadata such as og:title, canonical links, or anchor hrefs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:47:24.178Z","isFirstParty":false,"canonicalSlug":"agentshelf-html-lang-attribute-extractor-85d9dff7"}