{"uid":"cap_5y8QfpsVo8kRi8K4JEzLG","slug":"api-strale-io-8a121e86","name":"Strale Link Extractor","description":"Extract all links from a page with context. Filter by internal/external. Returns URL, anchor text, rel attributes.","url":"https://api.strale.io/x402/link-extract","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"URL to extract links from"},"filter":{"type":"string","description":"internal, external, or both (default)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"url":"https://example.com","filter":"both"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0324,"settlement_id":"0x73d8c2b2d57daeaf5db942ecdd457e791c7b9d7690e08352018a055369fac42a"},"capability":"link-extract","latency_ms":8,"provenance":{"source":"http-get","fetched_at":"2026-06-13T04:24:38.514Z"}},"links":[{"url":"https://iana.org/domains/example","anchor_text":"Learn more","is_external":true,"rel_attributes":[]}],"filter":"both","source_url":"https://example.com","total_links":1}},"exampleRequest":{"url":"https://example.com","filter":"both"},"tags":["x402"],"displayCostAmount":"0.0324","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0324/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TSAcJaLBEY7SbGze5O3DS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0324","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all hyperlinks from a webpage with anchor text, rel attributes, and optional filtering by internal or external links","exampleAgentPrompt":"Can you pull all the external links from https://example.com/blog and include the anchor text and rel attributes for each one?","exampleUseCases":null,"resultDescription":"Returns a structured list of all hyperlinks found on the page, each with its URL, anchor text, rel attribute values, and whether it is internal or external to the source domain. Supports filtering to return only internal or only external links.","failureModes":["URL is unreachable or returns non-200 status — endpoint may return an error or empty results","Page uses JavaScript-rendered links that are not present in raw HTML — dynamically loaded links may be missed","Invalid or malformed URL input — returns validation error","filter parameter value not in allowed set (internal/external/both) — may return error or default behavior","Page blocks scraping via robots.txt or rate limiting — may return empty or error response"],"whenToPreferThis":"Use this endpoint when you need a structured, parsed list of all hyperlinks from a specific webpage including their anchor text and rel metadata. Ideal for SEO audits, link analysis, content crawling pipelines, or verifying outbound link profiles. Prefer this over general-purpose scrapers when you specifically need link data with context rather than full page content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:54:48.618Z","isFirstParty":false}