Skip to main content
Enable formats.parse and provide parseParams.rules to extract named fields using CSS selectors. parseParams.type defaults to "custom" and can also be set explicitly. Results arrive in parsed.data with parsed.type: "custom". Use pre-built parsers for supported sources without writing rules, or JSON extraction when you need to interpret page text.

Extract custom fields

Send this body to POST /web/scrape. See the Quickstart for authentication and SDK setup.
Abridged response:

Rule grammar

Extract a list of cards

Missing items are null; unmatched lists are []. Attribute values are returned as written, so resolve relative links against the response url.

Custom rule limits and page state

Provide at least one rule. Rules allow up to 100 fields, five nesting levels, and selectors up to 2,048 characters. XPath is unsupported; invalid selectors return 400. Rules run on HTML after content filtering. Cached HTML can be reused; set maxAgeMs: 0 for fresh values. Browser actions can change the page before extraction.