{"uid":"cap_BVe1kfm1W3yB2ZtwGdxa9","slug":"extract-internal-links-as-json-3c60da82","name":"Extract Internal Links as JSON","description":"Extract the page's internal links as json: fetches the URL, pulls every internal links element and returns them as a JSON array, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.","url":"https://page.intel.rallylive.ca/page/internal-links/json?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XWOSNJh1vJjX7NStnMAd9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a given URL and returns all internal links found on the page as a structured JSON array with a count.","exampleAgentPrompt":"Can you extract all the internal links from https://example.com/blog as a JSON array so I can see where the page links within the same site?","exampleUseCases":[{"title":"SEO internal link audit","prompt":"Pull all the internal links from https://myshop.com/products as JSON so I can audit the internal linking structure for SEO purposes."},{"title":"Sitemap generation pipeline","prompt":"Fetch all internal links from https://docs.mycompany.com/getting-started and give me the JSON array — I want to use them to build a sitemap."},{"title":"Broken link detection agent","prompt":"Extract all internal links from https://myblog.com/2024/top-posts as a structured JSON list so I can then check each one for 404 errors."}],"resultDescription":"A JSON array of all internal links (same-domain hrefs) found on the fetched page, along with a count of how many were found. No browser rendering required — pure server-side fetch and parse.","failureModes":["URL is unreachable or returns a non-200 status — likely returns an error or empty result","Page blocks server-side fetching (bot protection, Cloudflare) — may return empty array or error","Page has no internal links — returns an empty array with count 0","Invalid or malformed URL input — may return an error response","JavaScript-rendered links not captured — endpoint does not execute JS, so dynamically inserted links may be missed"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable JSON list of internal links from a single page without spinning up a browser or full crawl. Ideal for pipelines, agents, and automation tasks that need to process or audit internal site navigation, build sitemaps, or feed link data into downstream steps. Prefer it over full-site crawlers when you only need one page's internal links and want minimal cost ($0.01/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:57:01.108Z","isFirstParty":false,"canonicalSlug":"extract-internal-links-as-json-3c60da82"}