Raw schema
{
"type": "object",
"properties": {
"url": {
"maxLength": 2048,
"minLength": 8,
"type": "string",
"description": "The full public http(s) address of the page."
},
"response_format": {
"default": "all",
"enum": [
"text",
"markdown",
"all"
],
"type": "string",
"description": "Use \"markdown\" to get the page's main content as Markdown in data.markdown, the best form for reading or summarising. \"all\" (the default) and \"text\" return the standard fields: text, links, metadata and a quality score."
},
"return_html": {
"default": false,
"description": "Also return the page's raw HTML in data.html (up to 2 MB). Costs 1 credit for each started 400 KB of HTML returned, at most 5. Not with extract.",
"type": "boolean"
},
"render": {
"default": false,
"type": "boolean",
"description": "Run the page's JavaScript in a browser first, for pages that build their content in the browser. Costs more."
},
"wait_ms": {
"default": 500,
"maximum": 3000,
"minimum": 0,
"type": "integer",
"description": "Milliseconds to wait after the page loads. Needs render=true."
},
"wait_for": {
"maxLength": 200,
"minLength": 1,
"type": "string",
"description": "A CSS selector to wait for before reading. Needs render=true."
},
"extract": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"selector": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"attribute": {
"pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
"type": "string"
},
"multiple": {
"default": false,
"type": "boolean"
}
},
"required": [
"selector"
],
"type": "object"
},
"maxProperties": 10,
"type": "object",
"description": "Named fields to pull out with a CSS selector, for example {\"heading\":{\"selector\":\"h1\"},\"links\":{\"selector\":\"a\",\"attribute\":\"href\", \"multiple\":true}}. One tag, class, ID or attribute selector each. Static pages only."
},
"mode": {
"default": "manual",
"enum": [
"manual",
"auto"
],
"type": "string",
"description": "\"manual\" (the default) does what render says. \"auto\" fetches the page plainly and renders it only when it looks empty; it holds up to max_cost credits and charges what it used."
},
"max_cost": {
"maximum": 5,
"minimum": 1,
"type": "integer",
"description": "With mode=auto, the most to spend: 1 never renders, 5 may render."
},
"min_quality_score": {
"maximum": 100,
"minimum": 0,
"type": "integer",
"description": "Refuse the page, at no charge, when its quality score is below this."
},
"country": {
"pattern": "^[a-zA-Z]{2}$",
"type": "string",
"description": "Two-letter country code for the language headers of the request, for example ae or gb. It does not route the request through that country."
},
"idempotency_key": {
"type": "string",
"minLength": 16,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$",
"description": "Optional. Send the same key (16 to 128 letters, digits, _ . : -) to retry this exact call safely: a retry within 24 hours returns the first result and is not charged again."
}
},
"required": [
"url"
],
"additionalProperties": false
}