ZAP API UI

Component: clientSpider

Action: setOptionMaxDepth

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