ZAP API UI
Component: ajaxSpider
Action: setOptionMaxCrawlDepth
Sets the maximum depth that the crawler can reach.
Output Format
JSON
JSONP
HTML
XML
apikey*
Form Method
GET
POST
Integer*
The maximum depth that the crawler should explore (zero means unlimited depth, default is 10).