---
title: "Crawl root + same-origin pages to Markdown (max 8) — 3 + 2/page units"
method: POST
path: "/v1/web/crawl"
---

# Crawl root + same-origin pages to Markdown (max 8) — 3 + 2/page units

`POST /v1/web/crawl`

## Request

- Base URL: `https://api.preteworks.com`
- URL: `https://api.preteworks.com/v1/web/crawl`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri, required: Public http/https URL.
  - `limit` integer

## Response `200`

Root metadata + per-page markdown.

- object
  - `url` string
  - `metadata` object
  - `links_found` integer
  - `pages` object[]
    - `url` string
    - `markdown` string
    - `error` string

## Other responses

- `400`: Bad request.
- `401`: Missing/invalid API key.
- `402`: No billing profile, or monthly usage cap reached.
- `429`: Rate limited (60 req/min per key).
- `502`: Upstream fetch/render failed.
- `503`: Service at daily rendering capacity.

---

[API](https://skmtc.dev/preteworks/apis/preteworks-api.md) · [All operations](https://skmtc.dev/preteworks/apis/preteworks-api/llms.txt) · [OpenAPI document](https://skmtc.dev/preteworks/apis/preteworks-api/revisions/46105b6e4bb3?raw)
