API Examples
Extraction (Crawl)

Crawl and extract from a whole website

As of right now, crawl extraction only works with the Record Extraction, and not with the arbitrary JSON Extraction.

from fixpoint.client import FixpointClient
from fixpoint.client.types import CreateRecordExtractionRequest, CrawlUrlSource
 
client = FixpointClient(api_key="...")
 
extraction = client.extractions.record.create(
    CreateRecordExtractionRequest(
        workflow_id="my-workflow-id",
        source=CrawlUrlSource(crawl_url="https://fixpoint.co", depth=2, page_limit=3),
        questions=[
            "What is the product summary?",
            "What are the industries the business serves?",
            "What are the use-cases of the product?",
            "According to the privacy policy, what data is collected from users?",
        ],
    )
)