Skip to main content
You are viewing the v1 (legacy) documentation. In v2, use FetchConfig(headers={...}). See the v2 documentation.

Custom Headers

Pass custom HTTP headers with your scraping requests:
response = client.smartscraper(
    website_url="https://example.com",
    user_prompt="Extract data",
    headers={"Authorization": "Bearer token", "Accept-Language": "en-US"}
)
For v2 usage with FetchConfig, see the v2 documentation.