{"uid":"cap_nGEUWkYwQPCLGllmHZFtR","slug":"extract-scripts-as-markdown-a39c38fb","name":"extract-scripts-as-markdown","description":"Extract the page's scripts as markdown: fetches the URL, pulls every scripts element and returns them as a Markdown list, 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/scripts/markdown?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_SSdELkwlmiXlCzd9WncDM","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 web page and extracts all script elements, returning them as a Markdown-formatted list with a count","exampleAgentPrompt":"Can you fetch https://example.com and extract all the script elements from the page, returning them as a Markdown list?","exampleUseCases":[{"title":"Auditing third-party scripts on a landing page","prompt":"Can you pull all the script tags from https://acme.com/landing and show them to me as a Markdown list? I want to know what third-party scripts they're loading."},{"title":"Security review of scripts loaded by a competitor","prompt":"Fetch https://competitor.com and extract every script element you find — I want to audit what tracking or analytics scripts they're using, formatted as Markdown."},{"title":"Debugging script load order for a web app","prompt":"Go to https://myapp.io and list all the scripts that are on that page in Markdown format — I need to check the order they're loading and how many there are."}],"resultDescription":"A Markdown-formatted list of all script elements found on the fetched page, along with a count of how many scripts were detected. No browser rendering is required — the page is fetched server-side and the script elements are parsed and returned as structured Markdown.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or empty result","Page has no script elements — returns an empty list with a count of zero","URL is behind authentication or a bot-detection wall — content may not be accessible","Malformed or missing URL parameter — request is rejected","Page uses dynamic JavaScript rendering — server-side fetch may miss dynamically injected scripts"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-browser extraction of script tags from a specific web page and want results in Markdown format. It is ideal for agents and pipelines that need to audit, inventory, or analyze scripts on a page without spinning up a headless browser. Prefer it over full-page scrapers when you only care about script elements and want structured, human-readable Markdown output with a count.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:57:04.956Z","isFirstParty":false,"canonicalSlug":"extract-scripts-as-markdown-a39c38fb"}