{"uid":"cap_CzqdFCE7SdAX3akiC3HI7","slug":"extract-stylesheets-as-json-da6ed512","name":"extract-stylesheets-as-json","description":"Extract the page's stylesheets as json: fetches the URL, pulls every stylesheets 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/stylesheets/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_MQMAC3ddwIrkChZ9VyWly","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 extracts all stylesheet elements from the page, returning them as a structured JSON array with a count.","exampleAgentPrompt":"Can you fetch the page at https://example.com and give me all of its stylesheets as a JSON array — I want to see every stylesheet element the page loads?","exampleUseCases":[{"title":"Audit CSS dependencies on a live site","prompt":"Go to https://shop.mybrand.com and pull out every stylesheet the page references — return them as JSON so I can audit which CSS files are being loaded."},{"title":"Pipeline step for design system analysis","prompt":"I'm analyzing the tech stack of competitor sites. Fetch https://competitor.io and extract all stylesheets as JSON so I can feed that into my design audit pipeline."},{"title":"Check stylesheet structure before migration","prompt":"We're migrating https://oldsite.example.com — can you extract all the stylesheet elements from that page as a JSON array so I can document what CSS files we need to carry over?"}],"resultDescription":"A JSON array containing every stylesheet element found on the fetched page, along with a count of how many were detected. Each element in the array represents a distinct stylesheet reference parsed from the page's HTML.","failureModes":["Target URL is unreachable or returns a non-200 response — endpoint may return an error or empty result","Page has no stylesheet elements — returns an empty JSON array with count 0","Invalid or malformed URL supplied — request may fail with a validation error","Page blocks automated fetching (e.g. bot protection) — content may be incomplete","Payment not completed — x402 payment required before response is served"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, structured JSON extraction of stylesheet references from a web page without spinning up a browser. It is ideal for agent pipelines, automated audits, and design analysis workflows where only stylesheet data is needed and cost-efficiency ($0.01/page) matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:54.215Z","isFirstParty":false,"canonicalSlug":"extract-stylesheets-as-json-da6ed512"}