---
search:
  tags:
    - map
    - POST
seo:
  description: >-
    List the URLs of a website without reading the pages. Use to find which…
    Reference for the POST /api/v1/tools/map_site endpoint in the Fieldwork
    gateway API.
sidebar:
  label: map_site
  badge: POST
title: map_site
type: openapi-operation
---
List the URLs of a website without reading the pages. Use to find which pages a site has before reading some of them. Do not use when you need page text (use read_page or crawl_site). Defaults to firecrawl. Set provider to choose another supported provider; Fieldwork never switches providers after an error.

`POST /api/v1/tools/map_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,
  "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": {
    "links": [
      {
        "description": "string",
        "title": "string",
        "url": "string"
      }
    ],
    "meta": {
      "requestId": "string",
      "usage": {
        "costUsd": 0,
        "credits": 0,
        "units": {
          "property1": 0,
          "property2": 0
        }
      },
      "warnings": [
        "string"
      ]
    },
    "truncated": [
      {
        "length": 0,
        "path": "string",
        "shown": 0
      }
    ]
  }
}
```
