{"uid":"cap_L6qVINpgBeZbhlONLZ7tK","slug":"agishub-css-selector-scraper-59f054a6","name":"AGISHub CSS Selector Scraper","description":"Extract specific elements from a JavaScript-rendered page by CSS selector. Give a list of selectors (e.g. 'h1', '.price', 'a.product') and get back the text and attributes of every match. Backed by a headless browser, so it works on SPAs and JS-heavy pages.","url":"https://api.agishub.com/paid/scrape","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["url","selectors"],"properties":{"url":{"type":"string","format":"uri","description":"Full http/https URL of the page to scrape."},"selectors":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"minItems":1,"description":"CSS selectors to extract, e.g. ['h1', 'a.product', '.price']. Returns the text and attributes of every match per selector."}},"additionalProperties":false},"type":{"enum":["http"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oUlyZ4BcAL6V1aVoZ7w5q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extract text and attributes of specific HTML elements from any JavaScript-rendered web page using CSS selectors, powered by a headless browser.","exampleAgentPrompt":"Scrape the page at https://example-shop.com/products using these CSS selectors: 'h1', '.price', and 'a.product' — I need the text and attributes of every match on that JS-rendered page.","exampleUseCases":[{"title":"E-commerce price monitoring","prompt":"Go to https://www.bestbuy.com/site/apple-macbook-pro/6525065.p and extract the product title using 'h1' and the current price using '.priceView-customer-price span' — the page is dynamically rendered so I need a headless browser to get the real values."},{"title":"Job listing data extraction","prompt":"Pull all job titles and company names from https://jobs.lever.co/acme using the selectors 'h5.posting-name' and 'div.posting-categories span.sort-by-team' — it's a JS-rendered page so a regular fetch won't work."},{"title":"SPA article headline scraping","prompt":"Scrape all article headlines and their links from https://techcrunch.com using the selectors 'h2.post-block__title a' — the page uses JavaScript so I need you to render it first and give me the text and href attributes for every match."}],"resultDescription":"A JSON object keyed by each CSS selector, where each key maps to an array of matched elements — each element containing its inner text and a map of HTML attributes (e.g. href, class, src). Returns up to 20 selectors per call, with all matches per selector.","failureModes":["Invalid or malformed URL returns a 400 error","Page behind authentication wall returns empty matches or access-denied error","Selector finds no matching elements returns empty array for that selector","JavaScript-heavy page with long loading time may timeout","More than 20 selectors provided triggers a validation error","Malformed CSS selector syntax causes a parsing error or empty result"],"whenToPreferThis":"Use this endpoint when you need to extract specific, targeted elements from a JavaScript-rendered or single-page application (SPA) where a plain HTTP fetch would return an empty or incomplete DOM. It is ideal when you already know the CSS selectors of interest and want structured text+attribute output rather than full-page Markdown. Prefer it over the full-page Markdown fetch endpoint when you need precise element targeting, and over the headless browser automation endpoint when you only need to read data without interacting with the page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:43:35.569Z","isFirstParty":false}