canonical: https://jentic.com/apis/scrapingbee.com/scrapingbee

# ScrapingBee API

Jentic publishes the only available OpenAPI specification for ScrapingBee API, keeping it validated and agent-ready. The ScrapingBee API fetches any web page by URL through rotating proxies and a headless browser, returning the HTML, a JSON envelope, or a PNG screenshot. It renders JavaScript, waits for a CSS selector, runs a js_scenario of browser interactions, and applies extract_rules to return structured data instead of raw markup. Premium and stealth proxies, country_code geotargeting, sessions that keep one proxy across requests, and a Google search mode with web, images, news, videos, and shopping result types are set per request, and a usage endpoint reports credits and concurrency.

## For AI agents

Fetch any web page through rotating proxies and a headless browser, with JavaScript rendering, screenshots, CSS-rule extraction, and Google search scraping.

## Scope

Does not crawl whole sites, schedule recurring jobs, or store scraped datasets. Use for fetching, rendering, extracting from, and screenshotting individual web pages only.

## Capabilities

- Fetch a page's HTML by URL with JavaScript rendering on or off through render_js
- Pull structured data from a page with JSON extract_rules instead of parsing HTML
- Run a js_scenario of clicks, scrolls, and waits before capturing the page
- Capture a viewport, full-page, or single-element screenshot with screenshot_selector
- Route a request through premium or stealth proxies in a chosen country_code, or keep one proxy with session_id
- Scrape Google results with custom_google and a search_type of web, images, news, videos, or shopping
- Check used and maximum API credits and max_concurrency for the plan

## Use cases

### Agent page fetching without proxy setup

A research agent needs the text of pages that block plain HTTP clients. Through Jentic it searches for 'scrape a web page', loads the ScrapingBee scrape operation with its input schema, and calls it with the url and render_js while the api_key is injected at call time. When a site needs more, the agent adds wait_for with a CSS selector or switches on premium_proxy.

Example prompt: GET `/api/v1`/ with url set to the target page, render_js set to true, and wait_for set to '.content', then pass the HTML to the summariser

### Structured extraction with CSS rules

A price-monitoring job wants just the fields it tracks. ScrapingBee applies JSON-encoded extract_rules that map field names to CSS selectors and returns a JSON object, so the job stores values directly. Combined with country_code, the same rules can check localised prices from different countries.

Example prompt: GET `/api/v1`/ with url, extract_rules set to {"price": ".price", "title": "h1"}, and country_code set to gb

### Visual page snapshots

A design or compliance team archives how a page looked on a given day. ScrapingBee returns a PNG screenshot of the viewport, the full page with screenshot_full_page, or one element with screenshot_selector, and can emulate a mobile device.

Example prompt: GET `/api/v1`/ with url, screenshot_full_page set to true, and device set to mobile, then save the PNG

### Google results for monitoring

A brand team tracks what appears in Google for a set of queries. ScrapingBee's Google mode is turned on with custom_google and takes a search_type such as news or shopping, plus nb_results and page for paging.

Example prompt: GET `/api/v1`/ with custom_google set to true, url set to the search query, search_type set to news, and nb_results set to 20

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/v1/` | Scrape a URL |
| POST | `/api/v1/` | Scrape a URL with a forwarded POST body |
| GET | `/api/v1/usage` | Get credit usage |
| GET | `/api/v1/store` | Get a stored screenshot |

## Key resources

- **Scrape requests** — GET or POST page fetches with rendering, proxy, extraction, and screenshot options
- **Screenshots** — PNG captures, retrievable from storage
- **Usage** — Plan credit limits, credits used, and maximum concurrency

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 46 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 62 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 52 / 100
  - Agent Usability: 94 / 100
  - Security: 15 / 100
  - AI Discoverability: 75 / 100
- **View full report:** https://jentic.com/apis/scrapingbee.com/scrapingbee/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring ScrapingBee by hand means passing the api_key in the query string, URL-encoding the target url, and JSON-encoding extract_rules and js_scenario into query parameters. Through Jentic you install once, import ScrapingBee from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** ScrapingBee takes the target URL as a query parameter, so rules bound which operations your agent may call, not which sites it fetches. Limit the agent to the operations it needs, such as the GET scrape and usage check, and the POST scrape that forwards a request body is not included unless you add it.
- **Credential handling:** Your ScrapingBee key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'scrape a JavaScript page' or 'screenshot a web page', and Jentic returns the matching ScrapingBee operation with its input schema, including the rendering, proxy, and extraction parameters.

## Related APIs

- **ScrapingDog API** — Proxy-backed web scraping with JavaScript rendering
- **ZenRows API** — Web scraping with anti-bot bypass and residential proxies
- **ScrapeGraph AI API** — Prompt-based extraction of structured data from HTML or URLs

## FAQ

### Why is there no official OpenAPI spec for ScrapingBee API?

ScrapingBee does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call ScrapingBee API via structured tooling. It is validated against the live API and kept up to date. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### What authentication does the ScrapingBee API use?

Per its OpenAPI spec, the ScrapingBee API authenticates with an API key passed as the api_key query parameter on every request. Because a query-string key can end up in logs, Jentic stores it on your own instance and adds it at call time, so the agent never sees or echoes it.

### Can I extract structured data with the ScrapingBee API?

Yes. Pass extract_rules as a JSON-encoded map of field names to CSS selectors on GET `/api/v1`/, and the response is a JSON object with those fields instead of HTML. Add js_scenario to click or scroll before extraction.

### What are the rate limits for the ScrapingBee API?

The OpenAPI spec does not state a fixed request rate. Limits are set by plan credits and concurrency: GET `/api/v1/usage` returns max_api_credit, used_api_credit, and max_concurrency. Check https://www.scrapingbee.com/documentation/ for plan details.

### Is there a ScrapingBee MCP server?

You don't need an MCP server to give your agent ScrapingBee. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls the scrape operation with the options it needs without another server's tool definitions loaded into its context.

### How do I take a screenshot of a page through Jentic?

Search Jentic for 'screenshot a web page', load the GET `/api/v1`/ operation, and call it with the url and screenshot_full_page set to true, or screenshot_selector for one element. The response is a PNG image.

### Can I limit what my agent is allowed to do with the ScrapingBee API?

Yes. Write a rule that allows only GET `/api/v1`/ and GET `/api/v1/usage`, so the agent can fetch pages and check its credit budget but cannot send POST requests that forward a body to the target site. Every call it makes is logged.
