zenrows extract fetches a page and converts it into structured data: site-tailored JSON with Extract (extract=auto, the default) on any prepared domain, fields you choose with CSS selectors, or Markdown.
Examples
Flags
The default method is Extract (extract=auto). Pick at most one other method per call: --css, --outputs, --output, or the deprecated --autoparse.
When Extract refuses a page
When Extract refuses a page withREQS007, zenrows extract reports one of three CLI error codes and prints the next step. It never retries with Autoparse. Each CLI code maps to one API reason value, but the names differ:
On a domain Extract hasn’t prepared:
Without
--wait, the command returns at once; check progress and your monthly allowance with zenrows extract prepare status <domain>. Preparing takes a few minutes, costs no credits, and uses one slot of the monthly allowance; a domain that is already prepared answers ready at once and uses none. The domain is the host: a leading www. is dropped, and any other subdomain is prepared on its own. prepare never creates an account, so it needs an API key.
EXTRACT_PAGE_NOT_RECOGNISED (also REQS007) means the domain is prepared, but Extract did not recognise this page as one it can extract. It may be a page with nothing to extract, such as a home page. Try a product, article or listing page instead, retry it once in a few minutes if it should work, or use --css. Preparing the domain again does not change it.