﻿# Perplexity snippet budgets: cap extracted text without pretending to fetch a page

Use max_tokens_per_page and max_tokens for Perplexity Search snippets, handling empty text and distinguishing extraction caps from full-page or live URL fetching.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-perplexity-search-page-text/
Language: en

A Perplexity Search result can contain a useful URL while its extracted text is short or empty. The integration must decide what reaches the answer model. That decision belongs to evidence preparation and should not be confused with controlling the generated answer's token budget.

## Understand the two caps

The [Search overview](https://docs.perplexity.ai/docs/search/overview) defines `max_tokens_per_page` for each result and `max_tokens` for the response's extracted text. The smaller effective allocation can truncate useful context. Increasing the total allowance does not necessarily restore a condition cut by the per-page limit, and increasing the per-page limit does not remove a tight total cap.

## Keep empty snippets explicit

Check `snippet` before adding a result to model context. A title and URL alone do not supply the paragraph needed for an answer. Retain a metadata record for diagnostics, but distinguish it from readable evidence. The [best-practices guide](https://docs.perplexity.ai/docs/search/best-practices) provides the relevant application-oriented retrieval context.

## Do not invent a page-fetch switch

The overview explicitly distinguishes query-based Search from known-URL reading and says Search has no live-refetch or cache-age parameter. A larger snippet cap is not a request for the full page. If the task depends on a linked exception, choose a documented reading mechanism rather than treating an expanded search response as proof the complete document was inspected.

## Read a known URL through its own contract

The Agent [fetch_url guide](https://docs.perplexity.ai/docs/agent-api/tools/fetch-url-content) describes `fetch_url_results` with per-content snippets and possible failure markers. This tool runs within Agent; it is not a new standalone Search endpoint. Keep unavailable content markers out of the evidence prompt while preserving their diagnostic meaning.

## Test the decisive boundary

Use a source whose relevant qualification sits beyond the shorter allocation, then compare the text actually delivered under each cap. The guide to [RAG chunk boundaries](/journal/rag-chunking-structure-token-boundaries/) explains why lost context changes meaning. The article on [tool observations](/journal/learn-codex-tool-observation/) shows why successful retrieval must still provide usable evidence to the model. Measure the supplied passage, not merely the result count.
