Perplexityapi
November 25, 2026·Source

Time Machine for the Perplexity Search and Context APIs

Lets developers query the web as it looked on a chosen past date, so models can be trained and tested without later news leaking the answers.

  • Perplexity saves a timestamped copy of each page every time it crawls it, which builds a version history for every URL
  • You add a snapshot_as_of parameter to an existing Search or Context API request, with a cutoff up to 365 days back. Leave it out to get today's web
  • In Search, only pages published or first crawled by the cutoff can rank, and each result's title, date, and snippet come from the copy saved at or before the cutoff. In Context, you get the full text of the page's copy at the cutoff without contacting the live site
  • No new endpoint or key is needed. Search costs $5 per 1,000 requests and Context costs $1 per 1,000 URLs fetched, with no surcharge for historical requests
  • In Perplexity's test, training GLM-5.3 Flash on 2026 Polymarket questions raised held-out reward from 0.77 to 0.80 with Time Machine. Without a cutoff the untrained model scored 0.94 by finding the answers online

Best for

Training and testing models or agents on past questions without answer leakage

When to use it

You are backtesting a forecasting agent, building a reproducible benchmark, or replaying what an agent would have seen on a given day

Who benefits

Developers and ML teams building on the Perplexity API

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →