Black Friday: double credits on your first month, any plan · ends Sunday, Nov 29Cyber Monday extension: double credits on your first month, any plan · ends tonightBlack Friday: 2x creditsCyber Monday: 2x creditsSee plans
ScraperCity logo

Website to Markdown API Documentation

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 textPOST /api/v1/scrape/website-to-markdown

Parameters

NameTypeRequiredDescription
websitesstring[]RequiredWebsites or start pages, one per item (up to 1,000 a run)Example: ["acme.com", "https://example.org/blog"]
maxPagesnumberOptionalPages read per website, 1 to 50Default: 10Example: 10
maxCharsnumberOptionalThe 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.csv

Use 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.