Skip to main content
POST
python

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-notte-request-origin
string | null
x-notte-sdk-version
string | null

Path Parameters

session_id
string
required

Query Parameters

update_metadata
boolean
default:true

Body

application/json
selector
string | null

Playwright selector to scope the scrape to. Only content inside this selector will be scraped.

Whether to scrape links from the page. Links are scraped by default.

scrape_images
boolean
default:false
deprecated

Image scraping was removed; true returns 422.

ignored_tags
string[] | null

HTML tags to ignore from the page

only_main_content
boolean
default:false

Whether to only scrape the main content of the page. If True, navbars, footers, etc. are excluded.

response_format
any | null

The response format to use for the scrape. You can use a Pydantic model or a JSON Schema dict (cf. https://docs.pydantic.dev/latest/concepts/json_schema/#generating-json-schema.)

instructions
string | null

Additional instructions to use for the scrape. E.g. 'Extract only the title, date and content of the articles.'

model
string | null

Model used for structured extraction. Canonical OpenRouter ids: google/gemini-3.5-flash, google/gemini-3.5-flash-lite, google/gemini-3.1-flash-lite, google/gemini-3.1-flash-lite-preview, google/gemini-2.5-flash, openai/gpt-4.1-mini, openai/gpt-4o, google/gemma-3-27b-it, openai/gpt-oss-120b, perplexity/sonar-pro, deepseek/deepseek-r1, meta-llama/llama-3.3-70b-instruct, anthropic/claude-sonnet-4-5, anthropic/claude-haiku-4-5, moonshotai/kimi-k2.5, x-ai/grok-4.3, minimax/minimax-m2.5. Reviewed legacy LiteLLM ids remain accepted. Defaults to google/gemini-3.5-flash.

Whether to use link/image placeholders to reduce the number of tokens in the prompt and hallucinations. However this is an experimental feature and might not work as expected.

only_images
boolean
default:false
deprecated

Image scraping was removed; true returns 422.

Response

Successful Response

markdown
string
required

Markdown representation of the extracted data

structured
StructuredData[BaseModel] · object | null

Structured data extracted from the page in JSON format