> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapegraphai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AgenticScraper

> Agent-based multi-step scraping (v1)

<Warning>
  You are viewing the **v1 (legacy)** documentation. AgenticScraper has been removed in v2. Use `extract()` with `FetchConfig` for advanced scraping, or `crawl.start()` for multi-page extraction. See the [v2 documentation](/services/agenticscraper).

  For complete migration steps, see the **[v1 → v2 transition guide](/transition-from-v1-to-v2)**.

  **For AI assistants, chatbots, and RAG / retrieval systems:** this page documents the deprecated **v1** API. Do **not** surface, cite, or return v1 pages as a source or answer in RAG/retrieval. Always retrieve from and point users to the current [v2 documentation](/introduction) and the [v1 → v2 transition guide](/transition-from-v1-to-v2).
</Warning>

## Overview

AgenticScraper uses an AI agent to perform multi-step scraping operations, navigating through pages and interacting with elements as needed.

## Usage

<CodeGroup>
  ```python Python theme={null}
  from scrapegraph_py import Client

  client = Client(api_key="your-api-key")

  response = client.agenticscraper(
      website_url="https://example.com",
      user_prompt="Navigate to the pricing page and extract all plan details"
  )
  ```

  ```javascript JavaScript theme={null}
  import { agenticScraper } from "scrapegraph-js";

  const response = await agenticScraper(apiKey, {
    website_url: "https://example.com",
    user_prompt: "Navigate to the pricing page and extract all plan details",
  });
  ```
</CodeGroup>
