ZAP API UI

Component: ajaxSpider

Action: setOptionMaxCrawlDepth

Sets the maximum depth that the crawler can reach.
Output Format
apikey*
Form Method
Integer*The maximum depth that the crawler should explore (zero means unlimited depth, default is 10).