---
title: "Extracts content from a webpage in various formats."
method: POST
path: "/extractWebpage"
---

# Extracts content from a webpage in various formats.

`POST /extractWebpage`

This function opens a URL and extracts text content, with options to also extract Markdown and HTML content. It provides a convenient wrapper for web scraping tasks, opening its own browser instance and handling page navigation.

## Request body

- object
  - `body` object — Body of the extractWebpage sls call
    - `arguments` object, required — Configuration object containing all function parameters.
      - `url` string, required — The URL of the webpage to extract content from.
      - `toMarkdown` boolean — If true, returns Markdown content.
      - `toHTML` boolean — If true, returns full HTML content.
      - `headless` boolean — Determines if the browser should run in headless mode.

## Response `200`

Successful response

- object
  - `content` string, required — Extracted text content from the webpage.
  - `markdown` string — Markdown representation of the webpage content (if toMarkdown is true).
  - `html` string — Full HTML content of the webpage (if toHTML is true).

## Other responses

- `400` — Bad request
- `404` — Webpage not found
- `500` — Internal server error

## Changes

- **2025-07-11** `b7199116b192` — 1 warning
  - removed the request property `body/arguments/isLocal`
- **2025-07-10** `d193868de840` — 1 info
  - added the new optional request property `body/arguments/isLocal`

[Change history](https://skmtc.dev/microfox-ai/apis/chrome-browser-use/changes/extractWebpage/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/chrome-browser-use.md) · [All operations](https://skmtc.dev/microfox-ai/apis/chrome-browser-use/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/chrome-browser-use/revisions/b9d32be518ee/schema)
