The depth config option allows you to specify how deep the scraping process should follow links from the initial URL.

When no value is provided or depth is set to 0 link following is disabled and it will only scrape the initial URL.

export const config = {
  url: "",
  depth: 2,
  // ...

With the config provided in the example the scraper would follow links like this:                    (depth = 0, initial URL)
↳            (depth = 1)
  ↳   (depth = 2)