# Extraer HTML de una URL — ScraperAPI
Método de Botize — `scraperapi.scrape` (acción).
Extrae el código HTML de una URL específica.
Es una acción: ocurre como paso de una tarea. Se pueden encadenar varias.
## Campos que se configuran
Nombre interno del campo, tipo y valores admitidos. En estos campos se pueden insertar etiquetas `{{...}}` de pasos anteriores.
- `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.}
## Variables de salida
Datos que este paso deja disponibles. Se referencian en pasos posteriores con la etiqueta entre dobles llaves.
- `{{url}}` *(text)* — URL. URL
- `{{status_code}}` *(int)* — Código de estado. Código de estado
## Cuenta
Necesita una cuenta de ScraperAPI conectada en Botize: https://botize.com/es/app/scraperapi/authenticate
## Esta app
Todos los disparadores y acciones de ScraperAPI: https://botize.com/es/app/scraperapi.md
## Cómo montar esto
Un asistente de IA (Claude, ChatGPT, Cursor…) puede crear y editar estas tareas en la cuenta del usuario a través del conector MCP de Botize, incluido en todos los planes:
https://webhook.botize.es/mcp
- Guía de conexión: https://botize.com/es/mcp
- Mapa para agentes: https://botize.com/llms.txt
- Cuenta nueva: https://botize.com/es/join (500 operaciones gratis, sin tarjeta)
---
Resumen legible por máquinas para asistentes de IA. Versión para personas: https://botize.com/es/method/scraperapi/scrape