---
search:
  tags:
    - crawl
    - POST
seo:
  description: >-
    Start at a URL, follow links within the site and return the text of…
    Reference for the POST /api/v1/tools/crawl_site endpoint in the Fieldwork
    gateway API.
sidebar:
  label: crawl_site
  badge: POST
title: crawl_site
type: openapi-operation
---
Start at a URL, follow links within the site and return the text of every page reached, up to limit. Slower and costlier than reading single pages. Use when you need the content of many pages from one site. Do not use for one page (use read_page), or when you only need the list of URLs (use map_site). Defaults to firecrawl. Set provider to choose another supported provider; Fieldwork never switches providers after an error.

`POST /api/v1/tools/crawl_site`

**Request body** (`application/json`, required)

- `provider` (string)
- `timeout` (integer) — Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

Request body example:

```json
{
  "provider": "firecrawl",
  "timeout": 1,
  "url": "http://example.com",
  "limit": 1,
  "resume": "string",
  "maxCharacters": 1
}
```

**Responses**

- `200` — The provider that ran the call and its normalized result.
- `default` — A refusal or a failed call. Branch on error.code; never parse the message.

Response example, 200:

```json
{
  "provider": "firecrawl",
  "requestId": "string",
  "result": {
    "failed": [
      {
        "error": "string",
        "url": "string"
      }
    ],
    "id": "string",
    "meta": {
      "requestId": "string",
      "usage": {
        "costUsd": 0,
        "credits": 0,
        "units": {
          "property1": 0,
          "property2": 0
        }
      },
      "warnings": [
        "string"
      ]
    },
    "pages": [
      {
        "author": "string",
        "description": "string",
        "excerpts": [
          "string"
        ],
        "favicon": "string",
        "html": "string",
        "image": "string",
        "images": [
          "string"
        ],
        "language": "string",
        "links": [
          "string"
        ],
        "markdown": "string",
        "meta": {
          "requestId": "string",
          "usage": {
            "costUsd": 0,
            "credits": 0,
            "units": {
              "property1": 0,
              "property2": 0
            }
          },
          "warnings": [
            "string"
          ]
        },
        "publishedAt": "string",
        "rawHtml": "string",
        "screenshot": "string",
        "statusCode": 0,
        "summary": "string",
        "title": "string",
        "url": "string"
      }
    ],
    "robotsBlocked": [
      "string"
    ],
    "total": 0,
    "truncated": [
      {
        "length": 0,
        "path": "string",
        "shown": 0
      }
    ]
  }
}
```
