Skip to content

ScrapingBee

ScrapingBee is a web scraping API that manages headless browsers and proxy rotation. With the integration in SquadOS, your agents can retrieve HTML, extract structured data, and render JavaScript pages when you are authorized to access and process the content.

This tool uses an API key (API_KEY) to connect.

You will need the following fields:

FieldRequiredDescription
api_keyYesYour private ScrapingBee API key, used to authenticate all requests.
  1. Go to app.scrapingbee.com and create an account or log in.
  2. Open the account’s API Key page.
  3. Copy the displayed key — this is the value to enter in the hosted connection flow.

Do not paste the key into prompts, messages, extraction rules, cookies, or headers forwarded to the target site. If exposure is suspected, generate another key in the dashboard and reconnect the account.

  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for ScrapingBee.
  3. Open the Configure tool panel and click Activate. The integration moves to Active with the Awaiting authentication state.
  4. Open the active tool and click Connect now.
  5. Enter the key on the secure page hosted by Composio and complete the connection.
  6. Back in SquadOS, confirm the account under Accounts and use Edit actions to allow only the required operations.
  7. In the agent editor, open Tools, click Add Tool, choose ScrapingBee, select the account and actions, save, and run a controlled test. (See Organization Tools for the complete flow.)

The current Composio catalog contains 5 ScrapingBee actions; all five identifiers are documented below. Parameters come from snapshot 20260410_00, while the current catalog is on 20260615_00. Confirm the schema under Edit actions before saving.

SCRAPINGBEE_DATA_EXTRACTION

Tool to extract structured data from a webpage using CSS or XPath selectors. Use ScrapingBee’s extract_rules feature.

NameTypeRequiredDescription
urlstringYesThe webpage URL to extract data from.
waitintegerNoSeconds to wait before extraction (for dynamic content).
devicestringNoEmulate device type (desktop or mobile).
api_keystringYesYour ScrapingBee API key.
extractorobjectYesJSON object defining fields to extract and their CSS/XPath selectors. For nested selectors, use object with selector and optional type keys. Misaligned or invalid selectors silently drop fields with no error — verify each selector matches the target DOM before large-scale use.
javascriptbooleanNoWhether to render JavaScript before extraction.
country_codestringNoTwo-letter country code for proxy geolocation (e.g., us, de).
premium_proxybooleanNoUse premium proxy for higher reliability.
block_resourcesbooleanNoBlock images, CSS, and resources to speed up extraction.
forward_headersobjectNoCustom HTTP headers to forward to the target website. Provide as a dict, e.g., {'Accept-Language': 'en-US'}. Headers will be prefixed with Spb- and forwarded to the target.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SCRAPINGBEE_HTML_FETCH

Fetches HTML or a technical capture returned by the ScrapingBee HTML API. Use when you need page markup or an image after optional JavaScript rendering. Increase the proxy tier only when access is authorized and the basic configuration cannot handle the target; a proxy does not grant permission and must not be used to bypass CAPTCHA or access control.

NameTypeRequiredDescription
urlstringYesThe URL to scrape.
waitintegerNoMilliseconds to wait before returning content.
retryintegerNoNumber of retries on request failure.
devicestringNoDevice type to emulate (desktop or mobile).
cookiesstringNoCookies to send in requests (HTTP header string).
wait_forstringNoCSS selector to wait for before returning content.
block_adsbooleanNoBlock ads and tracking scripts.
render_jsbooleanNoRender JavaScript before returning HTML. Required for client-side rendered pages where dynamic data is absent in raw HTML.
js_snippetstringNoJavaScript snippet to execute before returning content.
screenshotbooleanNoReturn screenshot as base64-encoded PNG.
js_scenariostringNoJSON scenario for custom headless browser actions.
country_codestringNoTwo-letter country code for geolocation (e.g., us).
extract_rulesstringNoExtraction rules (CSS selector or JSONPath).
premium_proxybooleanNoUse premium proxy for scraping.
stealth_proxybooleanNoUse stealth (undetectable) proxy mode.
block_resourcesbooleanNoBlock images and CSS resources on the page to speed up scraping.
screenshot_selectorstringNoCSS selector of element to screenshot.
screenshot_full_pagebooleanNoCapture full-page screenshot instead of only viewport.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SCRAPINGBEE_SCRAPING_BEE_PROXY_MODE

Tool to fetch web content via ScrapingBee’s Proxy Mode. Use when you need to route requests through ScrapingBee proxies with optional JS rendering and resource blocking.

NameTypeRequiredDescription
urlstringYesThe target URL to scrape through ScrapingBee Proxy Mode.
cookiesobjectNoCookies to send with the request as a key-value mapping.
headersobjectNoAdditional HTTP headers to forward to the target site. Each header will be prefixed with Spb- and forwarded when forward_headers is enabled.
timeoutintegerNoRequest timeout in milliseconds.
block_adsbooleanNoBlock ads and tracking scripts to speed up scraping.
render_jsbooleanNoEnable JavaScript rendering before returning content.
session_idintegerNoSession identifier (integer) to keep the same IP for multiple requests. Use the same number to maintain consistent IP across requests.
js_scenariostringNoCustom JavaScript scenario name for advanced interactions.
country_codestringNoTwo-letter country code for geolocated proxy (e.g., us, fr).
premium_proxybooleanNoUse premium proxies for higher reliability.
stealth_proxybooleanNoUse stealth proxy mode for extra undetectability.
block_resourcesbooleanNoBlock images and CSS resources to speed up scraping. Only relevant when render_js is enabled.
forward_headersbooleanNoForward original request headers to the target site.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SCRAPINGBEE_STEALTH_PROXY

Runs a request through ScrapingBee’s Stealth Proxy mode. Use it only for an authorized target that requires this proxy tier and after assessing cost; do not treat the mode as permission to evade site controls.

NameTypeRequiredDescription
urlstringYesThe URL of the webpage to retrieve using stealth proxy.
waitintegerNoWait time in milliseconds before returning the response.
devicestringNoDevice type to emulate during rendering. Options: desktop or mobile.
cookiesstringNoCustom cookies in semicolon-separated format: name1=value1;name2=value2.
js_renderbooleanNoRender JavaScript on the page before returning the response.
country_codestringNoTwo-letter country code for proxy geolocation (e.g., us, de).
extract_rulesstringNoExtraction rules in JSON string for structured data.
premium_proxybooleanNoUse premium proxies for higher reliability.
stealth_proxybooleanNoEnable stealth proxy mode. Use when the target site blocks bots.
block_resourcesbooleanNoBlock images, styles, and fonts for faster loads.
forward_headersbooleanNoForward original request headers from the browser.
return_page_sourcebooleanNoReturn the raw page source instead of text.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SCRAPINGBEE_USAGE_STATS

Tool to retrieve usage statistics for your ScrapingBee account. Use when you need to monitor remaining credits and request count.

NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.