{"uid":"cap_KbFO_zYrqCI41Lkn9VydS","slug":"extract-scripts-as-csv-0fde6a89","name":"extract-scripts-as-csv","description":"Extract the page's scripts as csv: fetches the URL, pulls every scripts element and returns them as CSV rows, 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/csv?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_ERepFsIPGZpgr9LC7PtXY","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 CSV rows with a count","exampleAgentPrompt":"Can you fetch https://example.com and give me all the script elements from that page as a CSV file so I can see every script tag being loaded?","exampleUseCases":[{"title":"Third-party script audit for compliance","prompt":"Pull all script elements from https://shop.acme.com as CSV — I need to audit what third-party scripts are running on the site for our privacy compliance review."},{"title":"Security scan of competitor page scripts","prompt":"Fetch https://competitor.io and extract every script tag into CSV rows so I can see what tracking or analytics tools they're using."},{"title":"QA check for expected scripts on staging site","prompt":"Get all the script elements from our staging site at https://staging.myapp.com as CSV so I can verify the right scripts are included before we go live."}],"resultDescription":"A CSV-formatted response where each row represents a script element found on the fetched page, along with a total count of script elements found. The CSV structure allows easy parsing and downstream processing without needing a browser.","failureModes":["URL is unreachable or returns non-200 status — extraction fails with an error","Page has no script elements — returns empty CSV with zero count","URL is malformed or missing — request rejected","Page blocks server-side fetching (bot protection) — may return incomplete or empty results","Very large pages may time out during fetch"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, structured CSV extraction of script tags from a single web page without spinning up a browser. Ideal for pipelines that need to audit, inventory, or analyze scripts loaded by a page in a machine-readable format. Prefer this over full-page scrapers when you only care about script elements and want minimal overhead at $0.01 per page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:47.995Z","isFirstParty":false,"canonicalSlug":"extract-scripts-as-csv-0fde6a89"}