# Scrape HTML from a URL — ScraperAPI
Botize method — `scraperapi.scrape` (action).
Retrieve the HTML content of a specified URL.
This is an action: it runs as a step of a task. Several can be chained.
## Fields you set
The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps.
- `url` *(string)* — URL to scrape
- `device_type` *(string, one of: ""; "mobile")* — Device Type
- `country_code` *(string, one of: "eu"; "us"; "ca"; "uk"; "de"; "fr"; "es"; "br"; "mx"; "in"; "jp"; "cn"; "au")* — Geographic area from which to call the URL
- `follow_redirect` *(boolean)* — Enable Follow Redirects{Tells the scraper to automatically follow any redirections that the server returns when making a request.}
- `premium` *(boolean)* — Activate premium residential and mobile IPs{Reduce the latency of each request and slow requests (taking 20-30 seconds).
* This option will increase the cost of credits (
- `render` *(boolean)* — Enable Javascript rendering{Many websites use JavaScript to load dynamic content that is not present in the initial HTML source code.
Some websites use JavaScript to prevent web scraping, therefore rendering JavaScript is needed to bypass such protection.
This option will increase the cost of credits (
- `cache` *(boolean)* — Store copies of visited pages for 1 day{Enabling this option will store copies of recently visited pages for 1 day, which improves the response speed of scraped URLs.
* This feature does not consume credits from ScraperAPI.}
## Output variables
Data this step makes available. Reference them in later steps with the double-brace tag.
- `{{url}}` *(text)* — URL. URL
- `{{status_code}}` *(int)* — Status Code. Status Code
## Account
Needs a connected ScraperAPI account in Botize: https://botize.com/en/app/scraperapi/authenticate
## This app
Every trigger and action for ScraperAPI: https://botize.com/en/app/scraperapi.md
## How to build this
An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan:
https://webhook.botize.es/mcp
- Connection guide: https://botize.com/en/mcp
- Agent map: https://botize.com/llms.txt
- New account: https://botize.com/en/join (500 free operations, no card)
---
Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/scraperapi/scrape