---
title: "Web Page to Markdown API reference | ScrapeCrate"
description: "Every endpoint of the Web Page to Markdown API with its parameters, prices, cursor pagination and example JSON responses, in cURL, Python and TypeScript."
url: https://scrapecrate.com/docs/api/web
markdown: https://scrapecrate.com/docs/api/web.md
---

# Web Page to Markdown API

Give a URL, get the main content of the page as clean Markdown (navigation, ads and cookie banners removed), its title, description, canonical URL, language and every link, plus the plain text or raw HTML if you want them. Pages built with JavaScript or behind anti-bot checks load in a real browser with `render=true`.

Overview and use cases on the [Web Page to Markdown API page](https://scrapecrate.com/url-to-markdown-api.md); response format, pagination and errors are the same for every API ([conventions](https://scrapecrate.com/docs/api.md)).

- Get a web page as Markdown /v1/web/page

## Get a web page as Markdown

GET `/v1/web/page` 3 credits / call (11 with render=true)

The main content of a public web page as clean Markdown, with its title, metadata and links. Redirects are followed (up to 5). `render=true` runs the page's JavaScript in a headless browser and waits for anti-bot checks. Errors are free: `render_required` and `empty_page` (400) say when to retry with `render=true`; `page_not_found` (404), `page_access_denied`, `page_unavailable`, `page_too_large`, `unsupported_content_type` (400).

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| url * | query | string | — | The public http(s) URL of the page |
| render | query | boolean | `false` | Load the page in a headless browser (JavaScript, anti-bot checks): 11 credits instead of 3 |
| include_text | query | boolean | `false` | Also return the main content as plain text (text) |
| include_html | query | boolean | `false` | Also return the raw HTML of the page (html) |

```bash
curl "https://api.scrapecrate.com/v1/web/page?url=https%3A%2F%2Fexample.com%2Fblog%2Fhello-world" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.web.page(url="https://example.com/blog/hello-world")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.web.page({ url: "https://example.com/blog/hello-world" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "url": "https://example.com/blog/hello-world",
    "final_url": "https://example.com/blog/hello-world",
    "status_code": 200,
    "content_type": "text/html",
    "rendered": false,
    "title": "Hello World | Example Blog",
    "markdown": "# Hello World\n\nThis is the **first** paragraph, with a [link](https://example.org/).\n\n## Details\n\n- one\n- two",
    "metadata": {
      "description": "A first post about the world.",
      "canonical_url": "https://example.com/blog/hello-world",
      "language": "en",
      "site_name": "Example Blog",
      "author": "Jane Writer",
      "published_at": "2026-11-20T10:00:00Z",
      "image": "https://example.com/img/cover.png"
    },
    "links": [
      {
        "url": "https://example.com/",
        "text": "Home"
      },
      {
        "url": "https://example.org/",
        "text": "link"
      }
    ],
    "word_count": 15,
    "fetched_at": "2026-11-24T09:30:00Z"
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 3,
    "credits_remaining": 9999
  }
}
```
