livecrawl
parameter can help with.
livecrawl:'always'
ensures you’re working with the freshest data available, though it may take slightly longer than using cached results.
livecrawl:'preferred'
tries to crawl fresh content first, but falls back to cached content if crawling fails. This provides the best balance of freshness and reliability.
livecrawl:'never'
means that you will always get cached results.
livecrawl:'fallback'
means that Exa will livecrawl results if its not available in cache (for keyword search).
Option | Crawl Behavior | Cache Fallback | Best For |
---|---|---|---|
"always" | Always crawls | Never falls back | Critical real-time data, willing to accept failures |
"preferred" | Always crawls | Falls back on crawl failure | Fresh content with reliability |
"fallback" | Only if no cache | Uses cache first | Balanced speed and freshness |
"never" | Never crawls | Always uses cache | Maximum speed, static content |