Perplexity Time Machine API: Compare Two Versions of a Web Page

By

· Published

· Updated

·

Concept illustration comparing two saved copies of the same web page using different historical cutoffs.

Perplexity Time Machine lets you search or read public web pages using copies Perplexity saved on or before a chosen time, up to 365 days in the past. Use the Context API if you already know the URL. If you need to find a page first, use the Search API and pass the same cutoff to Context. Unlike a publication date filter, this compares saved text rather than today’s version of an old page.

Compare two dates when you know the URL

Say a SaaS team wants to see whether a pricing change affected the number of included seats. Use the same canonical URL twice, with one cutoff before the announcement and another after. Both times must include an RFC 3339 timezone and be within the last 365 days. This example is a request body for POST https://api.perplexity.ai/v1/context. The URL is a placeholder; the request was not run.

{
  "urls": ["https://example.com/pricing"],
  "snapshot_as_of": "2026-11-01T00:00:00Z",
  "formats": ["markdown"]
}

Repeat with 2026-11-20T00:00:00Z as the second cutoff. Check status.type for each result before reading its Markdown. If both are ok, compare the same plan, seat count, currency, billing period and region. Label excerpts by requested cutoff, not exact capture time: historical Context omits metadata.fetched_at. Identical excerpts show that these two returned copies agree, not that the page never changed between them.

Send your query, snapshot_as_of and, if useful, search_domain_filter to POST https://api.perplexity.ai/search. Search returns ranked snippets, not full pages. Pass the resulting URLs to Context with the same cutoff. Perplexity does not allow combining the cutoff with its recency or date filters and omits last_updated in historical search results. If no results come back, don’t send an empty URL list.

Treat missing text as missing evidence

Historical Context does not fetch the live page. A no_content result can mean there was no eligible copy, the saved page was unreadable, or it was recorded as a 404 or 410. That is not proof a plan or policy didn’t exist. Save the URL, UTC cutoff, returned status and the excerpt. Label any later live check separately as current. Historical Context doesn’t provide the original HTML or the extracted links format; use another evidence source if you need either.

Budget API charges and historical capacity separately

Perplexity’s API pricing lists standard Search at US$5 per 1,000 successful requests and Context at US$1 per 1,000 URLs returned as ok or not_modified, without criteria scoring. At list price, two billable versions of a single URL cost about US$0.002 via Context. The Time Machine guide lists no historical surcharge. This is API usage, separate from Perplexity subscription pricing.

The historical limits are separate from ordinary limits. Perplexity lists Tier 0 at one request per second for each API, and Tiers 1–5 at 50 historical requests total per API. Retrying after exhausting that total doesn’t restore it. Verify your allowance before planning a backfill.

When this is useful

Start with Context for a short list of known URLs and use Search when discovery is part of the job. Preserve the returned evidence if you need it beyond the rolling window. Time Machine can help check what a pricing or docs page used to say, but it isn’t a complete archive. In a report, keep “missing capture” separate from “no change.”

AI-XBlog Weekly Brief

Keep up with AI that actually works

Join the AI-XBlog Weekly Brief for major AI updates, practical workflows, useful tools, and editor’s picks. No daily noise.

Double opt-in. Unsubscribe anytime. See our Privacy Policy.

Reader discussion

Join the discussion

Have you tried this tool or workflow? Share your experience, corrections, or questions. Useful reader feedback may help us improve this article.

All comments are reviewed before publication. Your email address will not be published. Promotional links and low-value spam are removed.

Add a comment

Comments are moderated to keep the discussion useful and trustworthy.

About the author

AI-XBlog Editorial Team researches and maintains practical coverage of AI tools, automation, agents and applied artificial intelligence. We prioritize primary sources, clear evidence and useful real-world guidance.

Editorial Policy · Review Methodology · Corrections Policy