# Website Crawler ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v1/website/crawler` | | **Base URL** | `https://api.browsersolver.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.browsersolver.com/library/website-crawler | ## Description Fast HTTP pull of public HTML with no browser session. Ideal when the first response already contains the content you need. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.browsersolver.com/register ## Example Request ```bash curl --location --request GET 'https://api.browsersolver.com/v1/website/crawler' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Fetch docs.python.org homepage ```json Welcome to Python.org

Python

Get Started

Python is a programming language that lets you work quickly.

``` ### Fetch mozilla.org with raw page source ```json Mozilla - Internet for people, not profit
Mozilla

Internet for people, not profit

We are a nonprofit working to keep the internet open and accessible.

``` ### Fetch stackoverflow.com without following redirects ```json Stack Overflow - Where Developers Learn, Share, & Build Careers
Stack Overflow

Top Questions

How to parse JSON in Python?

``` ## Documentation ## BrowserSolver fetch tiers Three endpoints retrieve HTML from public pages. Start with the **lowest tier that returns usable content** for your target. | Tier | Endpoint | Cost | Best for | |---|---|---:|---| | 1 | [Website Crawler](/v1/website/crawler) | 1 credit | Server-rendered HTML already present in the HTTP response (blogs, docs, classic catalog pages). | | 2 | [Website Rendering](/v1/website/rendering) | 2 credits | Client-side apps and lazy-loaded UI where JavaScript must run before markup appears. | | 3 | [Website WebUnlocker](/v1/website/webunlocker) | 3 credits | Enterprise bot managers on **BrowserSolver-approved domains** when tiers 1 and 2 still fail. | **Suggested workflow** 1. Probe with **Crawler** when you suspect static HTML (fastest, lowest cost). 2. Move to **Rendering** if the body is a shell, prices load after JS, or you need `wait_for` / POST `browser_instructions`. 3. Reserve **WebUnlocker** for whitelisted retail or marketplace hosts where Rendering keeps hitting challenges. More context: [fetch tier comparison](https://www.browsersolver.com/blog/website-crawler-vs-rendering-vs-webunlocker). ## What Crawler does [Website Crawler](/v1/website/crawler) performs a direct HTTP GET against a public URL and returns the response body. BrowserSolver does **not** launch a headless session: no JavaScript runs, no DOM is built, and no unlock layer is applied. That profile suits high-volume jobs on sites that already embed useful text in the first byte stream. If markup stays empty, if listings hydrate in the browser, or if a WAF intercepts the call, switch to [Website Rendering](/v1/website/rendering) or [Website WebUnlocker](/v1/website/webunlocker). **Pricing:** 1 credit per successful response. ## Quickstart ``` GET https://api.browsersolver.com/v1/website/crawler?query=https://books.toscrape.com/ ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Public URL including `http://` or `https://` | | `allow_redirects` | boolean | no | Follow redirects when `true` (default). Set `false` to study redirect chains | | `return_page_source` | boolean | no | Return untouched HTML when `true`. Default `false` | ## Response The body is an HTML string for the fetched page. ## Companion endpoints | Goal | Endpoint | |---|---| | Post-JS HTML | [Website Rendering](/v1/website/rendering) | | Protected retail domains (whitelist) | [Website WebUnlocker](/v1/website/webunlocker) | | Identify bot vendor first | [Website Antibot](/v1/website/antibot) | ## Billing and scope - Successful HTTP responses are billed; failed transport errors are not. - Login walls, paywalls, and private intranet pages are out of scope. - Skeleton HTML usually means you need [Website Rendering](/v1/website/rendering). ## Common workflows - Pull SSR product or category pages at scale - Watch competitor landing pages for copy changes - Archive documentation, directories, and press releases - Record redirect hops with `allow_redirects=false`