{"uid":"cap_5gcjrAj2m5KSRpBFYVANe","slug":"amp-html-link-extractor-de8e3eb5","name":"AMP HTML Link Extractor","description":"Call when an agent needs AMP HTML hrefs via link[rel='amphtml'] from a public page or HTML (SSRF-safe). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/css-link-amp first.","url":"https://agentshelf.syntexa.ch/v1/css-link-amp?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 charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0S8OB6stYsfB6jc5J3iDU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts AMP HTML href URLs from the link[rel='amphtml'] tag of a given public webpage or raw HTML string","exampleAgentPrompt":"Can you extract the AMP HTML link from this page — https://www.example.com/article/breaking-news — I need the href from its link[rel='amphtml'] tag.","exampleUseCases":[{"title":"SEO audit for AMP coverage","prompt":"I want to check if https://www.techcrunch.com/2024/01/15/some-article/ has an AMP version — can you pull the amphtml href from that page?"},{"title":"AMP redirect for mobile pipeline","prompt":"I have this HTML snippet from a news article and I need you to extract the AMP link from the link[rel='amphtml'] tag so I can redirect mobile users to it."},{"title":"Verify AMP version before indexing","prompt":"Before I submit this article URL to our indexer, can you grab the AMP HTML href from https://www.bbc.com/news/technology-12345678 so I can confirm it has an AMP version?"}],"resultDescription":"Returns the href URL found in the page's link[rel='amphtml'] tag — the canonical AMP version of the given page. If no AMP link is present, returns null or an empty result. May include a status indicator of whether the AMP link was found.","failureModes":["URL is not publicly accessible or returns a non-200 status — endpoint may return an error or empty result","No link[rel='amphtml'] tag exists on the page — returns null or empty href","SSRF-restricted URL (private IP ranges, localhost) — rejected for security reasons","HTML input exceeds 200,000 character limit — request rejected","URL shorter than 8 characters — validation error","Malformed HTML that cannot be parsed — may return empty result"],"whenToPreferThis":"Use this endpoint when you need to programmatically discover the AMP (Accelerated Mobile Pages) URL of a public webpage, either by providing a URL to fetch and parse or by supplying raw HTML directly. Prefer the free sandbox version (/v1/sandbox/css-link-amp) first if available to avoid the $0.004 USDC charge. Choose this over general-purpose HTML scrapers when your specific need is just the AMP link, as it is SSRF-safe and purpose-built for this single extraction task.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:24.451Z","isFirstParty":false,"canonicalSlug":"amp-html-link-extractor-de8e3eb5"}