Extract fields as JSON
extractPull named fields from a web page as structured JSON without writing selectors. Use when you need specific data points in a computable shape, not the full page.
Instructions
Pull named fields off a page as JSON, without writing selectors.
Costs more than scrape — the page is parsed by a model, per call — so the user is
asked to approve each run. Scrape the page and read it yourself when a page you were
going to read anyway would answer the question; use this when you want the fields
themselves, in a shape you can compute on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to read. | |
| prompt | Yes | The fields to pull out of the page, in plain words. Name them and say what shape you want. | |
| run_js | No | Execute the page's JavaScript. Needed for pages that render client-side and arrive empty otherwise. Slow: this returns a job id to poll with `check_scrape` instead of the content. Try without it first. | |
| location | No | Two-letter country code to fetch the page from. Use it when the page varies by country — pricing, availability, language. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||