> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# maxDepth

> Maximum path depth of crawled URLs.

* **Type**: `number`
* **Maximum**: 100

Path depth is a measure for the number of path segments. For example:

```txt theme={"system"}
http://example.com          => 1
http://example.com/         => 1
http://example.com/foo      => 1
http://example.com/foo/     => 2
http://example.com/foo/bar  => 2
http://example.com/foo/bar/ => 3
```

The Crawler doesn't crawl URLs with a depth higher than `maxDepth`.

This limit doesn't apply to manually added URLs
([`startUrls`](/doc/tools/crawler/apis/configuration/start-urls)
or [`sitemaps`](/doc/tools/crawler/apis/configuration/sitemaps)).

## Examples

```js JavaScript icon=code theme={"system"}
{
  maxDepth: 10,
}
```
