ZAP API UI

Component: spider

View:optionMaxDepth

Gets the maximum depth the spider can crawl, 0 if unlimited.
Output Format
apikey*
Form Method