# Graph-based website traversal tool using Tavily Crawl.

**API:** Data API

**Endpoint:** `POST /v1/beta/tavily/crawl`

**Tags:** Web Content

Walk a site from a root `url` and return the content of the pages it finds. Steer it with natural-language `instructions` plus regex path and domain filters, and bound it with `max_depth`, `max_breadth` and `limit`. Returns `base_url` and `results[]` with `url` and `raw_content`. Use it for broad coverage of one site — documentation, a catalogue, a competitor's blog. It answers synchronously, which `post_firecrawl_crawl` does not: that one runs as a background job and suits crawls too large to wait on.

### Pricing reference

- Metering: Metered response units.
- Reference request estimate: USD 0.024.
- Unit cost basis: USD 0.008.
- Resource unit: `tavily_credit`.
- Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.
- Cost bases do not establish the final customer price, including when zero.

Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **yes**

### application/json

Schema:

```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The root URL to begin the crawl.",
      "example": "docs.tavily.com"
    },
    "instructions": {
      "type": "string",
      "description": "Natural language instructions for the crawler."
    },
    "chunks_per_source": {
      "type": "integer",
      "default": 3,
      "description": "Maximum number of relevant chunks returned per source.",
      "minimum": 1,
      "maximum": 5
    },
    "max_depth": {
      "type": "integer",
      "default": 1,
      "description": "Max depth of the crawl.",
      "minimum": 1,
      "maximum": 5
    },
    "max_breadth": {
      "type": "integer",
      "default": 20,
      "description": "Max number of links to follow per level of the tree.",
      "minimum": 1,
      "maximum": 500
    },
    "limit": {
      "type": "integer",
      "default": 50,
      "description": "Total number of links the crawler will process before stopping.",
      "minimum": 1
    },
    "select_paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Regex patterns to select only URLs with specific path patterns."
    },
    "select_domains": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Regex patterns to select crawling to specific domains or subdomains."
    },
    "exclude_paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Regex patterns to exclude URLs with specific path patterns."
    },
    "exclude_domains": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Regex patterns to exclude specific domains or subdomains from crawling."
    },
    "allow_external": {
      "type": "boolean",
      "default": true,
      "description": "Include external domain links in the final results list."
    },
    "include_images": {
      "type": "boolean",
      "default": false,
      "description": "Include images in the crawl results."
    },
    "extract_depth": {
      "type": "string",
      "enum": [
        "basic",
        "advanced"
      ],
      "default": "basic",
      "description": "Depth of the extraction process."
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "text"
      ],
      "default": "markdown",
      "description": "Format of the extracted web page content."
    },
    "include_favicon": {
      "type": "boolean",
      "default": false,
      "description": "Include the favicon URL for each result."
    },
    "timeout": {
      "type": "number",
      "format": "float",
      "default": 150,
      "description": "Maximum time in seconds to wait for the crawl operation.",
      "minimum": 10,
      "maximum": 150
    },
    "include_usage": {
      "type": "boolean",
      "default": false,
      "description": "Include credit usage information in the response."
    }
  },
  "required": [
    "url"
  ]
}
```

## Responses

### 200 — Crawl results returned successfully.

Headers:
- `X-Request-Id` (string) — Request identifier to include when contacting Felo support.

**application/json**

Schema: object

```json
{
  "type": "object",
  "properties": {
    "base_url": {
      "type": "string",
      "description": "The base URL that was crawled."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "URL of the crawled page."
          },
          "raw_content": {
            "type": "string",
            "description": "Extracted raw content from the page."
          },
          "favicon": {
            "type": "string",
            "description": "Favicon URL of the crawled page."
          }
        }
      }
    },
    "response_time": {
      "type": "number",
      "format": "float",
      "description": "Time in seconds it took to complete the request."
    },
    "usage": {
      "type": "object",
      "properties": {
        "credits": {
          "type": "integer",
          "description": "Credit usage details for the request."
        }
      }
    },
    "request_id": {
      "type": "string",
      "description": "Unique request identifier."
    }
  }
}
```

### 400 — The request could not be processed. Check the request parameters.

### 401 — A valid Felo API key is required.

### 402 — The request cannot proceed because a billing requirement is not met.

### 403 — The account is not permitted to perform this operation.

### 429 — A request or spending limit has been reached.

### 502 — The service could not complete the request.

### 503 — The API or billing service is temporarily unavailable.

### 504 — The service timed out while processing the request.

### default — Error response; upstream passthrough responses may use provider formats

**application/json**

Schema:

```json
{}
```
