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

# Scrape any web page by URL with Fetch API

> Use the Bright Data Fetch API scraper to collect any public web page by URL as Markdown, plain text, raw HTML or JSON-LD. Send POST /datasets/v3/scrape.

Fetch API (formerly Crawl API) is the Scraper API equivalent of Web Unlocker API. Send any public URL and get back the page as Markdown, plain text, raw HTML and JSON-LD in a single record.

## Query Parameters

**dataset\_id** `string` *required* (default: gd\_m6gjtfmeh43we6cqc)

The dataset ID used for this request.

> [!WARNING]
>
> Must be set to `gd_m6gjtfmeh43we6cqc` to collect **Fetch API - Collect by URL** data.

**notify** `boolean` (default: false)

Whether to send notifications when the request is completed.

**include\_errors** `boolean` (default: true)

Whether to include errors in the response.

**custom\_output\_fields** `string`

Return only the listed output fields, separated by a pipe (`|`). For example, `url|markdown` returns only the URL and the Markdown version of the page.

## Request Body

**input** `object[]` *required*

An array of input objects.

**properties**

**url** `string` *required*

The URL of the web page to fetch. Any public domain is accepted.

**country** `string`

Two-letter country code to fetch the page from, in uppercase, for example `US` or `DE`. A lowercase code still sets the country, but the `country` field in the record comes back `null`, as in the sample response below.

#### Example

```json wrap theme={null}
{
  "input": [
    {"url": "https://example.com"},
    {"url": "https://example.com/1", "country": "US"}
  ]
}
```

## Output fields

Each record holds these fields:

| Field | Type | Description |
| - | - | - |
| `url` | url | The input URL |
| `final_url` | url | The URL after redirects |
| `page_title` | text | The page title |
| `country` | country | The country the page was fetched from |
| `markdown` | Markdown | Page content as Markdown, keeping headings, lists and links |
| `html2text` | text | Page text with all HTML tags and formatting removed |
| `page_html` | HTML | The complete HTML source, including tags, scripts and styles |
| `ld_json` | JSON | Structured JSON-LD metadata from the page, such as schema.org data |

To get only some of these fields, set `custom_output_fields`, for example `custom_output_fields=url|markdown`.

A field with no value can be left out of the record. For example, `ld_json` is missing when the page has no JSON-LD metadata, as in the sample response for `https://example.com`.

```json 200 theme={null}
[
  {
    "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
    "url": "https://example.com/",
    "final_url": "https://example.com/",
    "html2text": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for\ntesting and monitoring purposes.",
    "page_html": "<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content=\"width=device-width,initial-scale=1\"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body></html>\n",
    "page_title": "Example Domain",
    "country": null,
    "timestamp": "2026-10-19T18:02:16.659Z",
    "input": {
      "url": "https://example.com",
      "country": "us"
    }
  }
]
```
