ZAP API UI

Component: clientSpider

Action: setOptionMaxDepth

Sets the maximum crawl depth option.
Output Format
Form Method
Integer*The maximum crawl depth (0 is unlimited).