Skip to main content
Find out what the web said on a past date, and how a page changed over time. Time Machine searches and reads the copies of pages that Keenable captured at or before the moment you give in as_of, so nothing published or edited later can appear. Use it to research what was known before an event, to backtest an agent or a forecast, or to cite a page as it stood when a decision was made.
No SDK, CLI command or MCP tool calls Time Machine yet. Every example on this page uses curl against POST /v1/time-machine/*. Call the same endpoints from your language’s HTTP client.

Before you start

  • An API key. Time Machine has no keyless endpoint. Send the key in the X-API-Key header. See API keys.
  • Early Access turned on for your organization. Time Machine is off by default. Until it is on, every call returns 403 with Feature not enabled and the code time_machine_not_enabled. To turn it on, email support@keenable.ai with the request_id from that response, or ask your Keenable contact. Early Access endpoints can change before general availability. See Versioning.
Set your key in the environment before you run the examples:

What it costs

A fetch bills each page Keenable looked up in its store, including a page that comes back not_captured and a page that failed after Keenable started reading it. A page refused before the lookup, such as a URL on a private network, isn’t billed. Reading a version is an ordinary Time Machine fetch. A response that billed something reports what it cost in usage.total, in US dollars. A fetch that billed no page, such as one whose only URL was refused before the lookup, has no usage object, so check for usage before you read it. Listing versions reports a $0 item, so its usage.total.amount is 0. Your organization can have its own prices. See Pricing and Usage. Time Machine requests count toward your organization’s per-second limit, together with searches and fetches, and have a limit of their own inside it: 20 per second by default. See Rate limits.

Search as of a date

Send a query and an as_of time. Every result is a copy captured at or before as_of. This search asks what was known about the WeWork IPO on 1 September 2019, a month before the IPO was withdrawn:
You see when Keenable captured each copy, then its URL. Every acquired_at is before as_of:
Example output · results vary
as_of is an RFC 3339 timestamp with a time zone, such as 2019-09-01T00:00:00Z. A date without a time, a relative offset such as 30d or a time in the future returns 400. See Time format. Time Machine search takes its own filters: The search filters from /v1/search don’t apply here. site, exclude_domains, query_time, mode and moderation return 400 with a hint. See Time Machine search.

List the versions of a page

To see how one page changed, list the times Keenable captured it. The list carries no text, and listing versions costs $0. This call lists the newest version in each month of 2019, two per page:
You get the versions newest first, with a cursor for older ones. The values are illustrative, and the usage object is left out:
  • collapse keeps the newest version in each hour, day, week, month or year. none, the default, lists every version.
  • If has_more is true, send the same body with cursor set to next_cursor to get the next, older page.
  • A page Keenable never captured, or captured no copy of in the range, returns 200 with an empty versions list.

Read a version

To read a version, fetch the page with as_of set to that version’s acquired_at. Fetch returns the newest copy captured at or before as_of, which is the version the list named:
Check each result’s status before you use it: Fetch takes 1 to 10 URLs and an optional content.max_chars, and never reads the live page. The fields that /v1/fetch takes for a prompt, a schema, links, images and retrieval return 400. See Time Machine fetch.

Compare a page across dates

To track how a page changed, read it at several as_of times and compare the copies. Each as_of returns the copy that was current then:
You see one line per date: not_captured before Keenable first captured the page, then the copy that was current on each date, with its capture time and title. Each line is a billed page, the not_captured one included. See Fetch for this page’s copies on each date.

Cite a page as it was

A claim taken from a past copy is true of that copy, not of the page today. Cite the URL with the copy’s acquired_at, such as “techcrunch.com/2019/08/14/wework-reveals-ipo-filing, as captured on 2019-08-26”. Readers who open the URL see today’s version, which can differ. See Ground answers with citations.

Common mistakes

API reference

  • Time Machine: every request field, response field and error.
  • Pricing: the Time Machine SKUs next to search and fetch.
  • Research loop: the same search, filter, read and cite steps on today’s web.