Skip to main content
Glama

scrape

Scrape any public webpage by providing a target URL and API key. Automatically handles rotating proxies, CAPTCHA bypass, and optional JavaScript rendering to return the raw HTML.

Instructions

Scrapes any public webpage. Pass your API key and target URL; Scrapingdog handles rotating proxies, CAPTCHA bypass, and optional JavaScript rendering automatically. Returns the raw HTML of the target page. [Credits: 1 credit (dynamic=false, no premium). 5 credits with JS rendering (dynamic=true, the default). 10 credits with premium=true (residential proxies). 25 credits when premium=true and dynamic=true are combined. 10 credits when stealth_mode=true.] Notes: All feature parameters above (dynamic, premium, country, session_number, stealth_mode, custom_headers, wait) are documented on separate sub-pages of the Web Scraping API doc but apply to this single GET /scrape endpoint — they are not separate tools/endpoints. Custom headers: attach real HTTP headers to your request to Scrapingdog (not as a query param value) and also set custom_headers=true; Scrapingdog relays them to the target site. Geotargeting (country) combines with premium for non-US residential exit nodes. Sessions (session_number) keep the same proxy IP for up to 60s of inactivity, useful for multi-step flows (e.g. login then scrape). Stealth Mode (stealth_mode=true) is the CAPTCHA/Cloudflare-bypass mechanism — there is no separate 'captcha' parameter documented. No markdown-output parameter or ai_query parameter was found documented on any of the fetched pages for this endpoint (unlike some other Scrapingdog APIs) — response is raw HTML only. Returns: Raw HTML of the target page (Content-Type text/html), returned as the response body exactly as fetched/rendered by Scrapingdog's proxy/browser infrastructure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe target URL to scrape. Should be URL-encoded.
waitNoGives slow-loading dynamic pages extra time to finish loading before the page is scraped. Mentioned in the Javascript Rendering doc's prose only — no worked example or explicit unit/range was shown; commonly milliseconds in comparable APIs, but this is not confirmed by the docs.
countryNoISO 3166-1 country code (e.g. 'us') controlling which country the proxy appears to be from. Mainly useful for search engines / geo-sensitive sites. Available on all plans from Free to Enterprise.
dynamicNoEnables JavaScript rendering via headless Chrome for JS-heavy pages. Enabled by default, raising cost to 5 credits (25 with premium). Set dynamic=false to scrape static HTML only and reduce cost to 1 credit when JS rendering is not needed. (default: true)
premiumNoEnables premium residential proxies for websites that are difficult to scrape with standard datacenter proxies. Defaults to USA-based proxies but supports geotargeting via the country parameter. Costs 10 credits per request, or 25 credits when combined with dynamic=true (JS rendering). (default: false)
stealth_modeNoStealth Mode bypasses Cloudflare and similar bot-protection/CAPTCHA systems using advanced browser fingerprinting techniques. Costs 10 credits per request. (default: false)
custom_headersNoSet to true to have Scrapingdog forward custom HTTP headers you attach to the request (e.g. via a header like 'X-customheader') on to the target site. Useful for authentication-protected content or sites requiring specific headers. No additional cost. (default: false)
session_numberNoReuses the same proxy IP across multiple scraping requests. Any integer value creates or resumes a session; use the same number across requests to keep the same proxy. Sessions automatically expire 60 seconds after last use. No additional cost.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Very detailed credit costs, session reuse, CAPTCHA bypass, JavaScript rendering, and undocumented features disclosed. No annotations present, so description carries full burden and exceeds expectations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with main purpose first, then details. Slightly verbose in credit explanation but organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Comprehensive coverage of behavior, all parameters, return value, and limitations. No output schema but description explains raw HTML response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds significant meaning beyond schema: credit costs, defaults, parameter interactions (e.g., premium+dynamic). Schema coverage is 100% but description adds crucial operational context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Describes scraping any public webpage with specific verb and resource. Distinguishes from sibling tools which are specific site scrapers or search tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear context: 'Scrapes any public webpage' implies general purpose. No explicit when-not or alternatives, but context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alessandrobenigni/ScrapingDog-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server