{"uid":"cap_ReWyYzVXgcWOTXXBaITHE","slug":"forest-web-extract-anchor-links-from-html-page-4971b4c7","name":"Forest Web – Extract Anchor Links from HTML Page","description":"Extract a bounded normalized set of public HTTP(S) anchor links from one static HTML page. Forest resolves relative and base URLs, deduplicates by final absolute URL and classifies returned links as same-origin or cross-origin. One page fetch only; no linked URL is requested or crawled. Base mainnet USDC","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/page/links?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?://","maxLength":2048,"minLength":1,"description":"Public HTTP(S) URL to inspect, resolve, or compare."}}},"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_5y1MRXk6R6BXwhZCNO8Be","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":"Fetches a single static HTML page and returns a deduplicated, normalized set of all public HTTP(S) anchor links, classified as same-origin or cross-origin.","exampleAgentPrompt":"Can you pull all the anchor links from https://example.com/blog and tell me which ones are same-origin versus cross-origin?","exampleUseCases":[{"title":"Outbound link audit for a content page","prompt":"Fetch all the links from https://mysite.com/resources and split them into internal and external links so I can audit our outbound references."},{"title":"Pre-crawl link discovery for a landing page","prompt":"Before I crawl further, grab every anchor link from https://docs.someproject.io/getting-started and give me the full normalized absolute URLs."},{"title":"Competitive link analysis on a competitor page","prompt":"Extract all the hyperlinks from https://competitor.com/partners so I can see which external sites they link out to."}],"resultDescription":"A bounded, deduplicated list of absolute HTTP(S) anchor link URLs extracted from the target page, each classified as same-origin or cross-origin relative to the input URL. Relative and base-tag URLs are resolved to their final absolute forms. No linked URLs are fetched or crawled — only the source page is retrieved.","failureModes":["Non-public or paywalled URLs return no links or an access error","URLs that serve JavaScript-rendered content (SPAs) return few or no links since only static HTML is parsed","Invalid or malformed URL input is rejected by pattern validation","Pages over response size limits may be truncated","Network timeouts or unreachable hosts produce fetch errors","HTTPS certificate errors on the target host may cause failures"],"whenToPreferThis":"Choose this endpoint when you need a fast, bounded extraction of all anchor links from a single static HTML page without triggering further crawls. It is ideal for pre-crawl link discovery, outbound link auditing, or building a one-level link graph. Prefer it over full crawlers when you only need one page's links and want deterministic, deduplicated, normalized results at low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:45:36.042Z","isFirstParty":false,"canonicalSlug":"forest-web-extract-anchor-links-from-html-page-4971b4c7"}