Website to Markdown
Every page of a website as clean markdown text: give a list of websites or start pages and get one row per page read, with its url, title, description and the page as markdown. Pages are found from the sitemap and the site's own links, following robots.txt.
$0.00099 per page with text
POST /api/v1/scrape/website-to-markdownParameters
| Name | Type | Required | Description |
|---|---|---|---|
websites | string[] | Required | Websites or start pages, one per item (up to 1,000 a run)Example: ["acme.com", "https://example.org/blog"] |
maxPages | number | Optional | Pages read per website, 1 to 50Default: 10Example: 10 |
maxChars | number | Optional | The most text kept a page, 1,000 to 30,000 charactersDefault: 30000Example: 30000 |
Examples
Markdown of a list of websites
curl -X POST https://app.scrapercity.com/api/v1/scrape/website-to-markdown \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"websites": ["acme.com", "https://example.org/blog"],
"maxPages": 10
}'Check status and download
curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
-H "Authorization: Bearer YOUR_API_KEY"
# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o website-to-markdown.csvUse Cases
- •A company's whole website as text for AI, a chatbot or a knowledge base
- •Research a list of companies from what their own sites say
- •Keep a copy of competitors' pages to compare
Best Practices
- •Charged per page that came back with text; a website that does not answer or a page with no text is in the file and costs nothing
- •Columns: website, status (read, empty or failed), url, title, description, markdown, chars, truncated, error
Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.
Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.