Skip to main content
The /api/agent endpoint takes a natural-language prompt and chooses a strategy (extract, crawl, or scrape) for you.

Key parameter

  • prompt: what you want to collect

Example

Typical response shape:

Pattern vs query crawl behavior

The agent can route crawl-like work in two ways:
  • Pattern-based crawl: URL wildcard matching (pattern).
  • Query-based crawl: semantic page scanning (query) from seed URLs.
This distinction matters for behavior, but you usually only provide prompt and let the agent choose.