> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seltz.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Snippets for Search

> Request a document's highest-scoring passages instead of, or alongside, its full content.

*Released: September 9, 2026*

[`/search`](/search/guides/basic-search) can now return **snippets** instead of, or alongside, its full `content`. Snippets are a document's highest-scoring passages, in the order they appear in the document. Set `fields.snippets` to `true` to get focused excerpts without passing an entire document into your prompt or pipeline.

## Highlights

* **Focused excerpts** — Each document's `snippets` array holds its highest-scoring passages, in the order they appear in the document.
* **Independent of `content`** — `fields` selects each member on its own, so request `snippets`, `content`, or both in the same call.
* **Available on `news` and `wikipedia`** — The `companies` and `people` scopes don't produce snippets; `snippets` comes back as an empty array for those scopes even when requested.

## Quick Start

<CodeGroup>
  ```python Python theme={null}
  from seltz import Seltz

  client = Seltz()

  response = client.search(
      "best ai search engines",
      fields={"snippets": True},
  )

  for document in response.documents:
      print(document.url)
      for snippet in document.snippets:
          print(f"  {snippet.text}")
  ```

  ```typescript TypeScript theme={null}
  import { Seltz } from "seltz";

  const client = new Seltz();

  const result = await client.search({
    query: "best ai search engines",
    fields: { snippets: true },
  });

  for (const doc of result.documents) {
    console.log(doc.url);
    for (const snippet of doc.snippets) {
      console.log(`  ${snippet.text}`);
    }
  }
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.seltz.ai/v1/search \
    -H "x-api-key: $SELTZ_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"query": "best ai search engines", "fields": {"snippets": true}}'
  ```
</CodeGroup>

<CardGroup cols={2}>
  <Card title="Get Snippets" icon="book" href="/search/guides/get-snippets?utm_source=changelog&utm_medium=changelog&utm_campaign=snippets">
    Requesting snippets alongside or instead of content
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/search?utm_source=changelog&utm_medium=changelog&utm_campaign=snippets">
    Full `fields` parameter specification
  </Card>
</CardGroup>
