---
title: "Agentic Scrapper"
method: POST
path: "/v1/agentic-scrapper"
tags: ["AgenticScrapper"]
---

# Agentic Scrapper

`POST /v1/agentic-scrapper`

## Request body

- AgenticScrapperRequest
  - `url` string, required
  - `user_prompt` string, nullable
  - `output_schema` object, nullable
  - `steps` string[], nullable — List of steps to actions to perform on the website
  - `use_session` boolean — Whether to use a session to scrape the website
  - `ai_extraction` boolean — Whether to use AI extraction to extract the information
  - `stream` boolean — Whether to return streaming response
  - `webhook_url` string, nullable — Webhook URL to send the job result to
  - `country_code` string, nullable — The country code to use for the scrape (e.g. US, GB)

## Response `200`

Successful Response

- AgenticScrapperResponse
  - `request_id` string, required
  - `markdown` string, required
  - `error` string, nullable
  - `result` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/scrapegraphai/apis/fastapi.md) · [All operations](https://skmtc.dev/scrapegraphai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scrapegraphai/fastapi/revisions/7583b63abb6e/schema)
