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

# Snapshot (Private Beta)

> Run Tavily Search and Extract against a frozen copy of the index on or before a specific date.

> [!NOTE]
>
> **Private beta. [Contact us](https://www.tavily.com/contact) for access.** Talk to us to get access, to discuss your use case, or for any requirements beyond this page.

## Overview

The Snapshot API lets you run Tavily requests against a **frozen copy of the search index and the page content behind it, on or before a specific date**, instead of the live web. The snapshot stays unchanged as the live index gets updated.

It works on two endpoints. **Search** (`/search`) finds pages in the snapshot, and **Extract** (`/extract`) returns the content saved for those pages. You enable it on your normal requests by setting the depth to `snapshot` and passing a date as `snapshot_id` in the request body.

Because the snapshot does not change, the same request against the same snapshot returns consistent results, regardless of how the live web changes. This makes it suitable for reproducible evaluations, benchmarking, and training pipelines where results must stay stable across runs.

> [!NOTE]
>
> **Snapshot is its own search mode.** It searches a fixed subset of the web on or before the snapshot date, so the same query can return different pages than live search. What stays constant is the snapshot itself: the same request returns consistent results on every run.

## Getting started

1. Get a `TAVILY_API_KEY` from [app.tavily.com](https://app.tavily.com).
2. Add two fields to the request body:
   * `search_depth: "snapshot"` on `/search`, or `extract_depth: "snapshot"` on `/extract`.
   * `snapshot_id`: a date as a `YYYYMMDD` string, e.g. `"20261024"`. Any date from `20261024` onward works (see [Choosing a snapshot date](#choosing-a-snapshot-date)).
3. Add the `X-Client-Name` header to identify your organization and workload.

### Request headers

| Header | Required | Value |
| - | - | - |
| `Authorization` | Yes | `Bearer <TAVILY_API_KEY>` |
| `Content-Type` | Yes | `application/json` |
| `X-Client-Name` | Recommended | An identifier for your organization and workload, in the form `<organization>-<use-case>` (lowercase, hyphen-separated), e.g. `acme-agent-evals` or `acme-rl-training`. |

This example searches the snapshot, then extracts the saved content of every result.

```python Python theme={null}
import os
import requests

API = "https://api.tavily.com"
HEADERS = {
    "Authorization": f"Bearer {os.environ['TAVILY_API_KEY']}",
    "X-Client-Name": "<organization>-<use-case>",  # e.g. "acme-agent-evals"
}
SNAPSHOT_ID = "20261024"  # snapshot ID (YYYYMMDD)

# 1. Search the snapshot
search = requests.post(f"{API}/search", headers=HEADERS, json={
    "query": "Wilt Chamberlain NBA draft 1959 first pick",
    "search_depth": "snapshot",
    "snapshot_id": SNAPSHOT_ID,
    "max_results": 5,
}, timeout=60)
search.raise_for_status()
urls = [r["url"] for r in search.json()["results"]]

# 2. Read the saved pages
extract = requests.post(f"{API}/extract", headers=HEADERS, json={
    "urls": urls,
    "extract_depth": "snapshot",
    "snapshot_id": SNAPSHOT_ID,
}, timeout=60)
extract.raise_for_status()
for page in extract.json()["results"]:
    print(page["url"], len(page["raw_content"]), "chars")
for miss in extract.json()["failed_results"]:
    print("not in snapshot:", miss["url"])
```

## Search

`POST https://api.tavily.com/search` finds pages in the snapshot. The request and response format follow the standard [Tavily Search API](https://docs.tavily.com/documentation/api-reference/endpoint/search.md), subject to the restrictions below.

### Request body parameters

| Parameter | Value for snapshot requests |
| - | - |
| `query` | Your search query. |
| `search_depth` | `snapshot`. |
| `snapshot_id` | A date as a `YYYYMMDD` string. |
| `topic` | Optional. `general` only. |
| `max_results` | The maximum number of results to return, from 1 to 20. |

### Example request

```bash cURL theme={null}
curl -s https://api.tavily.com/search \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "X-Client-Name: <organization>-<use-case>" \
  -d '{
    "query": "James Webb Space Telescope launch date",
    "search_depth": "snapshot",
    "snapshot_id": "20261024",
    "max_results": 2
  }'
```

Each result includes the URL, title, relevance score, and the `content` field.

### Response

```json theme={null}
{
  "query": "James Webb Space Telescope launch date",
  "follow_up_questions": null,
  "answer": null,
  "images": [],
  "results": [
    {
      "url": "https://eduindex.org/tag/james-webb-space-telescope-launch-date",
      "title": "james webb space telescope launch date – Eduindex",
      "content": "The James Webb space telescope or JWST will replace the Hubble space telescope. It will help us to see the universe as it was shortly after the big bang. It was named after the second head of NAS James Webb. James Webb headed the office of space affairs from 1961 to 1968. This new telescope was first planned for launch into orbit in 2007 but has since been delayed more than once, now it’s been scheduled for 18 December 2012. After 2030 the Hubble will go on a well deserved rest since its launch [...] or NIRIIS camera is aimed at finding exoplanets and the first light of distant objects. Finally the FGS- Fine Guidance Sensor helps accurately point the telescope for higher quality images updates its position in space sixteen times per second and controls the operation the steering and main mirrors. They are planning to launch the telescope with the help of the European launch vehicle Ariana 5 from the kourou Cosmodrome in French Guiana space center. The device is designed for between 5 to 10 [...] since its launch in 1990 its provided more than a million images of thousands of stars, nebulae, planets and galaxies. The Hubble captured images of stars that are show about 380 million years after the big bang which supposedly happened 13.7 billion years ago. These objects may no longer exist, we still see their light. Now we expect James Webb to show us the universe as it was only 100 to 250 million years after its birth. It can transform our current understanding of the structure of the",
      "score": 0.83237296,
      "raw_content": null,
      "id": "febffb-00"
    },
    {
      "url": "https://web.archive.org/web/20211214235931/https://blogs.nasa.gov/webb/2021/12/14/webb-space-telescope-launch-date-update",
      "title": "Webb Space Telescope Launch Date Update – James Webb Space Telescope",
      "content": "The James Webb Space Telescope will be the world’s premier space science observatory when it launches in 2021. Webb will solve mysteries in our solar system, look beyond to distant worlds around other stars, and probe the mysterious structures and origins of our universe and our place in it. Webb is an international program led by NASA with its partners, ESA (European Space Agency) and the Canadian Space Agency.\n\nLearn more about Webb at:\n\n## Recent Posts\n\n## Recent Comments\n\nNASA logo [...] NASA\n\nJames Webb Space Telescope\n\n# Webb Space Telescope Launch Date Update\n\n## Post navigation\n\n## Archives\n\n## Categories\n\n## Meta\n\nWebb Space Telescope Logo - stylized view of gold, hexagonal primary mirrors atop a silver sunshield\n\n## About the Webb Telescope",
      "score": 0.8030194,
      "raw_content": null,
      "id": "5af935-01"
    }
  ],
  "response_time": 0.13,
  "request_id": "baf8c0ca-d577-4319-9266-aeeafa306d60"
}
```

### Limits and errors

| Item | Limit |
| - | - |
| Rate limit | **10 requests per minute (RPM)** by default. To raise it, please [contact us](https://www.tavily.com/contact). |

| Request | Response |
| - | - |
| `search_depth` is `snapshot` without a `snapshot_id` | `400` `snapshot_id is required for snapshot search.` |
| `snapshot_id` with a `search_depth` other than `snapshot` | `400` `snapshot_id requires search_depth 'snapshot'.` |
| `snapshot_id` not a valid `YYYYMMDD` date | `400` `Snapshot search is not supported for this request. Use search_depth 'snapshot' with a valid snapshot_id.` |
| `snapshot_id` sent as a number instead of a string | `422` |
| `topic` other than `general` | `400` `Snapshot search supports only topic 'general'.` |

## Extract

`POST https://api.tavily.com/extract` returns the page content saved in the snapshot, instead of fetching the live page. The request and response format follow the standard [Tavily Extract API](https://docs.tavily.com/documentation/api-reference/endpoint/extract.md), subject to the restrictions below.

### Request body parameters

| Parameter | Value for snapshot requests |
| - | - |
| `urls` | The URLs to extract. |
| `extract_depth` | `snapshot`. |
| `snapshot_id` | A date as a `YYYYMMDD` string. |
| `format` | `markdown` (default) or `text`. |
| `include_images` | Optional. `true` returns the image URLs saved for each page. |
| `query` | Optional. Returns only the parts of each page most relevant to the query. |
| `chunks_per_source` | Optional, with `query`. The number of parts to return per page, from 1 to 5. |

### Example request

```bash cURL theme={null}
curl -s https://api.tavily.com/extract \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -H "X-Client-Name: <organization>-<use-case>" \
  -d '{
    "urls": [
      "https://en.wikipedia.org/wiki/1959_NBA_draft",
      "https://example.com/not-in-snapshot"
    ],
    "extract_depth": "snapshot",
    "snapshot_id": "20261024",
    "query": "who was picked first overall",
    "chunks_per_source": 1
  }'
```

Each result includes the URL, title, and the `raw_content` field. URLs that are not in the snapshot are returned in `failed_results` with the error `URL not found in snapshot.` They are never fetched live.

### Response

```json theme={null}
{
  "results": [
    {
      "url": "https://en.wikipedia.org/wiki/1959_NBA_draft",
      "title": "1959 NBA draft - Wikipedia",
      "raw_content": "Bob Boozer from Kansas State University was selected first overall by the Cincinnati Royals. Wilt Chamberlain and Bob Ferry were selected before the draft as Philadelphia Warriors' and St. Louis Hawks' territorial picks respectively. Although Chamberlain played at the University of Kansas, outside the territory of any NBA team, he was selected as the Warriors' territorial pick because the Warriors argued that Chamberlain had grown up in Philadelphia and played high school basketball at Overbrook High School \"Overbrook High School (Philadelphia)\") in Philadelphia. The NBA agreed with the argument, hence making him the first territorial pick based solely on his pre-college roots. Chamberlain went on to win the Rookie of the Year Award and the Most Valuable Player Award in his first season.",
      "images": []
    }
  ],
  "failed_results": [
    {
      "url": "https://example.com/not-in-snapshot",
      "error": "URL not found in snapshot."
    }
  ],
  "response_time": 0.08,
  "request_id": "f088f76f-2cf7-46f8-8045-6682723389a7"
}
```

### Limits and errors

| Item | Limit |
| - | - |
| Rate limit | **10 requests per minute (RPM)** by default. To raise it, please [contact us](https://www.tavily.com/contact). |

| Request | Response |
| - | - |
| A malformed URL alongside valid ones | `200`, with the URL in `failed_results`: `Validation Error: Invalid URL format` |
| URL with no copy saved on or before `snapshot_id` | `200`, with the URL in `failed_results`: `URL not found in snapshot.` |
| URL saved without readable content | `200`, with the URL in `failed_results`: `No extractable content in snapshot.` |
| `extract_depth` is `snapshot` without a `snapshot_id` | `400` `snapshot_id is required for snapshot extract.` |
| `snapshot_id` with an `extract_depth` other than `snapshot` | `400` `snapshot_id requires extract_depth 'snapshot'.` |
| `snapshot_id` not a valid `YYYYMMDD` date | `400` `Invalid snapshot ID. Use YYYYMMDD.` |
| `snapshot_id` later than today (UTC) | `400` `Unknown or unavailable extract snapshot.` |
| Unsupported parameter, e.g. `include_favicon` | `400` `Snapshot extract does not support include_favicon.` |

## Choosing a snapshot date

`snapshot_id` currently takes any date from `20261024` onward, as a `YYYYMMDD` string.

For earlier dates, please [contact us](https://www.tavily.com/contact).

## Support

* Parameters, limits, and response details may change.
* Only the endpoints and parameters listed on this page are supported.

For questions, issues, or feedback, reach out to your Tavily contact or see [Help](https://docs.tavily.com/documentation/help.md).
