Deterministic Edge DOM CSS Selector Scraper & Isolator
isolate_css_selectorsExtract targeted inner text, outer HTML, or attributes from HTML DOM using CSS selector queries. Use to isolate specific elements like pricing badges or product titles.
Instructions
Evaluates CSS selector queries against HTML DOM trees to extract targeted inner text, outer HTML, or element attributes. Use when targeting specific elements like pricing badges, product titles, review cards, or navigation breadcrumbs; for parsing unstructured contact information, use extract_contact_info instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'html_content' and 'selector_query' ('extraction_mode' defaults to 'inner_text'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html_content | Yes | HTML source markup to query against using CSS selector matching rules. | |
| selector_query | Yes | CSS selector query expression (e.g., '.pricing-card', '#main h2', 'article p'). | |
| extraction_mode | No | DOM extraction representation: text content, outer HTML snippet, or attribute key-value map. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes | Extracted textual or markup contents of matched DOM elements. | |
| matched_count | Yes | Number of DOM nodes matching the provided CSS selector query. | |
| selector_used | Yes | Normalized CSS selector executed during edge DOM traversal. |