You're viewing an archived version of our docs. Check out our current documentation →
Tools / Crawler / APIs / Configuration

Crawler: MaxDepth

Type: number
Parameter syntax
maxDepth: max_depth

About this parameter

Limits the processing of URLs to the specified depth, inclusively.

This parameter can’t be higher than 100.

URLs added manually (startUrls, sitemaps) are not checked against this limit.

How depth is calculated

1
2
3
4
5
6
7
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
...

Examples

1
2
3
{
  maxDepth: 10,
}