Skip to main content

When searching websites, you often need to explore beyond the main page to find relevant information. Exa’s subpage crawling feature allows you to automatically discover and search through linked pages within a website.

Using Subpage Crawling

Here’s how to use Exa’s subpage crawling feature:
This will search through up to 5 subpages of the given website, and prioritize pages that contain the terms “about” or “products” in their contents.

Parameters

  • subpages: Maximum number of subpages to crawl (integer)
  • subpage_target: List of query terms to target (e.g., [“about”, “products”, “news”])

Best Practices

  1. Limit Depth: Start with a smaller subpages value (5-10) and increase if needed
  2. Prefer Safe Freshness: Start with a low positive freshness window such as maxAgeHours=1 plus livecrawlTimeout (e.g. 12000) to get recent live data while still allowing cached content when it is fresh enough. Use maxAgeHours=0 only when cached data is unacceptable.
  3. Target Specific Sections: Use subpage_target to focus on relevant sections rather than crawling the entire site

Combining with LiveCrawl

For recent and comprehensive results, combine subpage crawling with maxAgeHours and livecrawlTimeout:
This uses cached content only when it is less than an hour old, and livecrawls older pages with a bounded timeout. Note that regarding usage, additional subpages count as an additional piece of content retrieval for each type you specify.

Examples

Product Documentation

Search through documentation pages:
This example crawls up to 9 subpages from the main site, prioritizing pages that contain “docs” or “tutorial” in their content.
Shell

News Archives

Crawl through a company’s news section:
Output:
Shell

Blog Content

Gather recent blog posts:
Output:
Shell
Last modified on August 6, 2026