/api/extract endpoint converts page content into structured items.
A simple extraction
Key parameters:urlorurls(single URL or a list)template(string or object)
- Dictionary/object: output items follow the keys you provide.
- String: FetchFox infers a schema from your prompt.
Extracting multiple items per URL
By default, FetchFox extracts one item per URL. To extract multiple items from each page, setperPage to many.
Example:
perPage: "many" is used, the response includes a divide artifact showing the selector used to split the page into repeated item blocks.