APIs / Web and SEO / Web Scraper
1 credit per call4 endpointsChecked working 6 Dec 2026
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.
{
"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"
]
}
}Playground
Run this API
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 | url+6 optional | start_urlpages_returnedtruncatedpages | 1–110 credits |
GET/v1/web-scraper/map | url+3 optional | urlreturnedtruncatedurls | 1 credit |
GET/v1/web-scraper/scrape | url+3 optional | titlefaviconsocial_linksbody_textlanguages_detected | 1 credit |
GET/v1/web-scraper/screenshot | url+8 optional | urlfinal_urltitlesite_status_codeformatmime_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:
scrapetakes aurlof up to 2,048 characters.- Format:
response_typeisjsonormarkdown. Markdown suits pages you pass to a language model. - Options:
javascriptandinclude_html, both booleans.
- Format:
- Map a site:
maptakes aurlof up to 2,048 characters, withlimit,searchandinclude_subdomains(a boolean). - Crawl a site:
crawltakes aurl, withlimit,max_depth,include_paths,exclude_paths,format(markdown or html) andinclude_subdomains. - Screenshot a page:
screenshottakes aurl, withfull_page,width,height,format(png or jpeg),wait_for_selector,remove_overlays,localeandresponse(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.
More web and seo APIs
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 markdownFetch documentation or articles for a retrieval index
Use the Web Scraper API to fetch documentation or articles for a retrieval indexMonitor a page for changes on a schedule
Use the Web Scraper API to monitor a page for changes on a scheduleCapture a screenshot of a page as PNG or JPEG
Use the Web Scraper API to capture a screenshot of a page as PNG or JPEGFAQ
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.