---
title: "Web Scraper API: JSON data, 4 endpoints, 1 credit per call"
description: "Web Scraper API that fetches a public URL as JSON or markdown, maps or crawls a site, and takes screenshots. 4 endpoints, from 1 credit per call."
url: https://perceptlayer.com/apis/web-scraper
---

[APIs](https://perceptlayer.com/apis) / [Web and SEO](https://perceptlayer.com/verticals/web-seo) / Web Scraper

1 credit per call 4 endpoints 

# Web Scraper API

Web Scraper API that fetches a public URL as JSON or markdown, maps or crawls a site, and takes screenshots. 4 endpoints, from 1 credit per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Web Scraper

GET /v1/web-scraper/scrape?url=https%3A%2F%2Fexample.com&include\_html=0&javascript=0 

```
{
  "success": true,
  "site_status_code": 200,
  "url": "https://example.com",
  "final_url": "https://example.com",
  "data": {
    "title": "Example Domain",
    "favicon": "https://example.com/favicon.ico",
    "social_links": {},
    "body_text": "Example DomainThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
    "languages_detected": [
      "en"
    ]
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 12 Nov 2026 and shortened.

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/web-scraper/scrape?url=https%3A%2F%2Fexample.com&include_html=0&javascript=0" \
  -H "X-API-Key: $API_KEY"
```

Web Scraper · 4 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [POST `/v1/web-scraper/crawl`](https://perceptlayer.com/apis/web-scraper/crawl) | `url` +6 optional | `start_url` `pages_returned` `truncated` `pages` | 1–110 credits |
| [GET `/v1/web-scraper/map`](https://perceptlayer.com/apis/web-scraper/map) | `url` +3 optional | `url` `returned` `truncated` `urls` | 1 credit |
| [GET `/v1/web-scraper/scrape`](https://perceptlayer.com/apis/web-scraper/scrape) | `url` +3 optional | `title` `favicon` `social_links` `body_text` `languages_detected` | 1 credit |
| [GET `/v1/web-scraper/screenshot`](https://perceptlayer.com/apis/web-scraper/screenshot) | `url` +8 optional | `url` `final_url` `title` `site_status_code` `format` `mime_type` +5 more | 5 credits |

Overview

## About the Web Scraper API

## What you can get

The Web Scraper API fetches pages by URL through 4 endpoints: `scrape`, `map`, `crawl` and `screenshot`. Use it for pages that have no structured API in the catalogue.

-   **Scrape a page:** `scrape` takes a `url` of up to 2,048 characters.
    -   **Format:** `response_type` is `json` or `markdown`. Markdown suits pages you pass to a language model.
    -   **Options:** `javascript` and `include_html`, both booleans.
-   **Map a site:** `map` takes a `url` of up to 2,048 characters, with `limit`, `search` and `include_subdomains` (a boolean).
-   **Crawl a site:** `crawl` takes a `url`, with `limit`, `max_depth`, `include_paths`, `exclude_paths`, `format` (markdown or html) and `include_subdomains`.
-   **Screenshot a page:** `screenshot` takes a `url`, with `full_page`, `width`, `height`, `format` (png or jpeg), `wait_for_selector`, `remove_overlays`, `locale` and `response` (base64 or image).

## How a call works

`GET /v1/web-scraper/scrape?url=https://example.com&response_type=markdown` with your key in the `X-API-Key` header fetches one page. `map` takes a site's `url`, as in its catalogue example: `url=https://www.python.org&limit=20`. Before you scrape a site, check whether the catalogue already has a structured API for it: a structured endpoint returns named fields, so there's nothing to parse. `scrape` and `map` cost 1 credit; `crawl` costs 1 credit per page fetched and 3 per page that needs a browser, at most 110 a call; `screenshot` costs 5. Failed calls cost nothing.

Web and SEO JSON REST MCP

### More web and seo APIs

[BuiltWith](https://perceptlayer.com/apis/builtwith) [Domain Availability](https://perceptlayer.com/apis/domain-availability) [Google Ads Transparency](https://perceptlayer.com/apis/google-ads-transparency) [Impressum Extraction](https://perceptlayer.com/apis/impressum-extraction) [Local Rank Tracker](https://perceptlayer.com/apis/local-rank-tracker) [North Data](https://perceptlayer.com/apis/north-data) [Owler](https://perceptlayer.com/apis/owler) [PitchBook](https://perceptlayer.com/apis/pitchbook) [Semrush](https://perceptlayer.com/apis/semrush) [Similarweb](https://perceptlayer.com/apis/similarweb) [Website Contacts](https://perceptlayer.com/apis/contacts) [ZoomInfo](https://perceptlayer.com/apis/zoominfo)

Use cases

### Give an AI agent the text of any page as markdown

`Use the Web Scraper API to give an AI agent the text of any page as markdown` 

### Fetch documentation or articles for a retrieval index

`Use the Web Scraper API to fetch documentation or articles for a retrieval index` 

### Monitor a page for changes on a schedule

`Use the Web Scraper API to monitor a page for changes on a schedule` 

### Capture a screenshot of a page as PNG or JPEG

`Use the Web Scraper API to capture a screenshot of a page as PNG or JPEG` 

FAQ

## Questions

**How much does the Web Scraper API cost?**

\`scrape\` and \`map\` cost one credit a call, the same as a structured endpoint. \`crawl\` costs one credit per page fetched and three per page that needs a browser, at most 110 a call, and \`screenshot\` costs five. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can it return markdown instead of HTML?**

Yes. Set \`response\_type=markdown\` on \`scrape\`, or \`json\` for a JSON response.

**When should I use a structured API instead?**

When the site is in the catalogue. A structured endpoint returns named fields, such as a listing's price or a review's rating, so your code reads values instead of parsing a page.

**Is this the official Web Scraper API?**

No. Perceptlayer is an independent service and is not affiliated with Web Scraper. It returns Web Scraper data as JSON with a Perceptlayer key, so there is no Web Scraper developer account, app review or partner approval to get first. It only reads data: if Web Scraper has an official API and you need to act on your own Web Scraper account, such as posting, managing orders or reading private data, use that one.

**Should I build a Web Scraper scraper instead?**

You can, but a Web Scraper scraper is code you maintain: page changes break it, requests get blocked, and Web Scraper's terms govern how you collect data. The Web Scraper API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Web Scraper API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
