---
title: "Web Page Fetch"
method: GET
path: "/gateway/v1/web/fetch"
tags: ["Web"]
---

# Web Page Fetch

`GET /gateway/v1/web/fetch`

Fetches a web page and converts it to clean, LLM-friendly markdown.

**Options:**
- `target_selector` — extract specific page sections
- `remove_selector` — strip unwanted elements

Returns 400 if the URL is invalid or unreachable.

## Query parameters

- `url` string, required — URL to fetch and parse
- `target_selector` string — CSS selector to extract specific content
- `remove_selector` string — CSS selector to remove unwanted elements
- `wait_for_selector` string — CSS selector to wait for before extracting
- `timeout` integer — Request timeout in milliseconds

## Response `200`

OK

- DataObjectResponseWebFetchResultItem
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `data` WebFetchResultItem, required
    - `content` string, required — Full page content converted to clean markdown text
    - `title` string — Page title extracted from the HTML
    - `url` string, required — The URL that was fetched
  - `meta` ObjectResponseMeta, required
    - `cached` boolean, required — Whether this response was served from cache
    - `credits_used` integer, required — Credits deducted for this request
    - `empty_reason` string — Hint explaining why the data array is empty, when applicable

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/asksurf/apis/asksurf-public-rest-api.md) · [All operations](https://skmtc.dev/asksurf/apis/asksurf-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/asksurf/asksurf-public-rest-api/revisions/498f461e81c4/schema)
