Guides
Scrape a website
Scrape a website with Hyperbrowser
This guide will walk you through using Hyperbrowser’s scraping API to extract data from websites in markdown format. This can be useful for extracting data for LLM applications.
Overview
Hyperbrowser provides a simple API endpoint for scraping websites. The scraping process happens in two steps:
- Submit a URL to start a scrape job
- Poll the job status to get the results
Starting a Scrape Job
To start scraping a website, make a POST request to the /api/scrape
endpoint with the target URL:
Replace $HYPERBROWSER_API_KEY
with your actual API key.
Polling the Job Status
After starting a scrape job, you can poll the job status by making a GET request to the /api/scrape/{jobId}
endpoint. Replace {jobId}
with the ID of the job you started.
Replace $HYPERBROWSER_API_KEY
with your actual API key.