About this endpoint
What it does
Converts one or more web pages into Markdown and returns the fetched page records in a JSON response. If crawling is enabled, it also follows links on the same domain up to the configured crawl depth and page limit.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| crawl | Boolean | No | When true, also follows links on the same domain as each start URL, up to maxDepth and maxPages. Default: false. |
| maxDepth | Integer | No | Used only when crawling. Minimum 1, maximum 5. 1 means the start URLs plus the pages they link to. Default: 1. |
| maxPages | Integer | No | Hard limit on pages fetched in one run. Minimum 1, maximum 5000. Also limits what you pay for; failed pages count too. Default: not specified in the schema. |
| startUrls | String Array | Yes | Full URLs to convert to Markdown. Each entry must be an http or https URL. Maximum 100 URLs. Public pages only; no login pages. |
| timeoutSecs | Integer | No | Time to wait for a page response before giving up. Minimum 3, maximum 120. Default: 20. |
| includeLinks | Boolean | No | When true, adds internalLinks and externalLinks lists to each result. The lists contain absolute URLs, up to 200 each. Default: false. |
| includeFailed | Boolean | No | When true, failed pages are also saved with an error message and are charged like normal results. When false, failures are only listed in the RUN_SUMMARY record. Default: false. |
| includeImages | Boolean | No | When true, adds page images to each result as absolute URL plus alt text, up to 100. Default: false. |
| maxCharsPerPage | Integer | No | Truncates markdown and text after this many characters to fit LLM context windows. 0 means no limit. The truncated flag indicates when a page was cut. Default: 0. |
Response
Returns a JSON object with billed and count integer fields, and an items array of result objects. Each item includes page metadata and extracted content such as url, title, finalUrl, markdown, statusCode, and related fields defined by the schema.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| billed | Integer | Yes | Units charged for this call. Only result rows are billed; not-found, unavailable, and invalid rows are free. |
| count | Integer | Yes | Number of rows in items. |
| items | Object Array | Yes | Result rows returned by the fetch run. Each item contains the fields defined in the item schema. |
| items[].url | String | No | Source URL for the row. |
| items[].error | String | No | Error information for the row, if present. Nullable in the schema. |
| items[].title | String | No | Page title. |
| items[].author | String | No | Page author. Nullable in the schema. |
| items[].finalUrl | String | No | Final URL after fetch. |
| items[].headings | String Array | No | Page headings. |
| items[].language | String | No | Detected page language. |
| items[].markdown | String | No | Markdown content extracted from the page. |
| items[].extractor | String | No | Extractor used for the result. |
| items[].fetchedAt | String | No | Time the page was fetched. |
| items[].truncated | Boolean | No | Whether markdown or text was cut by maxCharsPerPage. |
| items[].wordCount | Integer | No | Word count for the fetched content. |
| items[].statusCode | Integer | No | HTTP status code returned for the page fetch. |
| items[].contentHash | String | No | Content hash for the fetched page. |
| items[].description | String | No | Page description. Nullable in the schema. |
| items[].publishedDate | String | No | Page published date. |



