When to Use Scrape
Use Scrape when you need to:- Extract content from a single URL
- Convert web pages to clean markdown for LLM processing
- Capture screenshots of pages
- Extract structured data using a schema
- Interact with pages (login, click, scroll) before scraping
- Extract brand identity (colors, fonts, typography)
Basic Usage
- Python
- JavaScript
- cURL
Response
Available Formats
You can request multiple formats in a single scrape:markdown- Clean markdown contenthtml- Cleaned HTMLrawHtml- Original HTMLscreenshot- Base64 encoded screenshotlinks- All links found on the pagejson- Structured data extractionbranding- Brand identity (colors, fonts, typography)
Get a Screenshot
- Python
- JavaScript
Extract Brand Identity
- Python
- JavaScript
Extract Structured Data
Extract structured data using a schema with JSON mode:- Python
- JavaScript
Extract with Prompt (No Schema)
You can also extract data using just a prompt without defining a schema:- Python
- JavaScript
Actions: Interact Before Scraping
Perform actions like clicking, typing, scrolling, and waiting before extracting content:- Python
- JavaScript
Actions are executed sequentially in the order specified. Use the
wait action to allow dynamic content to load after interactions.Best Practices
Next Steps
- Learn about Batch Scraping to scrape multiple URLs efficiently
- Use Crawl to scrape entire websites
- Try Agent for autonomous data gathering