---
ref: tool:perplexity/get-page-snippets
name: Get page snippets
company: company:perplexity
workflows: []
access: [cli]
tags: [capability:scrape-web, category:web-search, has:cli]
docs: https://docs.perplexity.ai/docs/cli/overview
updated: 2026-09-27
---

# Get page snippets

Returns only the passages of one or more web pages that are relevant to a query, as JSON.

Note: Takes up to 50 URLs. A page that can't be snipped returns an `error` instead of `text` without failing the command, so check every result. Needs CLI v0.2.3 or later.

## Set up

Use the first option your agent supports.

### CLI (official)

Install the command, then confirm it runs.

```sh
curl -fsSL https://github.com/perplexityai/perplexity-cli/releases/latest/download/install.sh | sh
pplx --version
```

Run `pplx content snippets`.

Set `$PERPLEXITY_API_KEY` in your environment first (get a key: https://console.perplexity.ai/project/keys).

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
