Live web data basics
What real-time web data means: seconds, minutes or hours
Turn a vague real-time claim into numbers: copy age at answer time, read time and page lag, each in seconds, minutes or hours, with a limit per question.
By Curtis Mccann, Live Web Data team · Published
This article was drafted with AI assistance from the sources listed below and edited and published by the Live Web Data team. Disclosure: the Live Web Data API, which this article mentions, is this site's own product.
- 1Name the clockCopy age at answer time, read time, or page lag. A real-time claim usually covers only one.
- 2Pick a unitSeconds, minutes or hours. 300 seconds is 5 minutes; 86,400 seconds is 24 hours.
- 3Set a limit per questionExample: 0 seconds (a live read) for a pasted URL, 3,600 seconds for prices, 86,400 seconds for docs.
- 4Check itStore the fetch time with every copy and compute its age when the answer is built.
"Real-time" on its own does not tell you how old a page copy is. One tool can mean the page was read a few seconds before the answer. Another can mean its index refreshes every hour. A third can mean the copy is from today. All three could call it real-time. Your app needs a number, with a unit, or it cannot tell whether a copy is fresh enough for the question in front of it.
The formal definitions do not give you a number
Start with the people who define the term for a living. The NIST glossary defines real time as performing a computation during the actual time that the related physical process transpires, so that the results can guide that process. The test is whether the result arrives in time to be used, not a fixed number of milliseconds.
"Near real time" is looser on purpose. The CEOS Earth observation glossary defines it as data available with a small, application-dependent latency, "typically 3 hours in meteorological applications." Three hours is 10,800 seconds. That counts as near real time for weather data, and it would be far too old for a status page.
The lesson carries over to web pages. Real-time is a property of the use, not of the data. So skip the label and write down the delay you accept.
Three clocks behind one word
When someone says a page is real-time, they can mean one of three different delays. Each has its own unit.
| Clock | What it measures | Typical unit | Who controls it |
|---|---|---|---|
| Page lag | Time between a change in the world and the page showing it | minutes to days | The site |
| Copy age | Time between the read of the page and the moment your app builds the answer | seconds to days | You |
| Read time | How long one live read of the page takes | seconds | The site and the fetcher |
A live read shrinks copy age to roughly the read time: seconds. It does nothing for page lag. If a site updates its pricing page a day after a change, the freshest read possible still shows yesterday's price. That is why an honest freshness claim names the clock it is about.
Copy age is the clock your app controls. HTTP measures the same idea for caches. RFC 9111 defines the Age header as the sender's estimate of the time since the response was generated or validated at the origin server, and gives it as a non-negative integer in seconds. It calls a response fresh while its age has not yet exceeded its freshness lifetime. Your app can use the same rule for its own page copies.
Seconds, minutes or hours: map each to a stored copy
Once you pick copy age as the clock, real-time becomes a limit per question. The values below are example starting points, not measurements. Replace them once you know how often your sources change.
- Seconds (a live read, limit 0). The user pasted the URL, or the question is about right now: is the service down, what does the page say today. No stored copy qualifies.
- Minutes (limit 300 seconds, 5 minutes). The same page comes up again within one short session. A copy this young saves a second read of the same page.
- Hours (limit 3,600 seconds for prices and availability, 86,400 seconds, 24 hours, for docs and changelogs). The page changes, but not every minute, and the question is about reference content.
- Days (limit 604,800 seconds, 168 hours or 7 days, for policies and about pages). Read live before you quote terms back to a user.
Let the question tighten the limit, never loosen it. The post on checking a copy's max age at read time shows the check in code, and the guide on why LLM apps need live web data covers when a live read is worth it at all.
Test a real-time claim before you rely on it
A tool that can browse does not always read the page when you ask. A study by Peec reports that "ChatGPT serves many pages from its own cache rather than fetching them live." Its test used lockdown mode, which cannot browse live pages: asked for the latest version of three search-marketing news sites' homepages, ChatGPT still returned them. The study reads that as evidence of cached copies.
You can run the same kind of check on any source of web data you use:
- Ask for a page whose content you can change, or one that shows the current time.
- Compare what comes back with what the page shows now.
- Look for a fetch time per page in the response. Without one, you cannot compute copy age, and the freshness claim cannot be checked.
- Store that fetch time with the copy and pass it to the model next to the content.
If a source gives you no fetch time, treat its copies as being of unknown age, and read the page live when the question needs a short limit.
Write the number into your spec
Replace "real-time" in your own requirements with a sentence that has a unit: "copy age at answer time is at most 3,600 seconds for pricing pages; pasted URLs are read live." That sentence can be tested, logged and changed. The word cannot.
If you read pages through Live Web Data API: "Every request fetches the page live; there is no cache." The response gives the fetch time per URL in statuses[].fetchedAt, so copy age is now minus that value. "Failed fetches cost 0 credits." The API docs list the response fields.
Frequently asked questions
What does real-time mean for web data?
There is no standard number. NIST defines real time as a computation performed during the actual time the related physical process transpires, so the results can guide that process. For web data, the useful version is a limit in seconds on how old the page copy may be when the answer is built.
What is the difference between real time and near real time?
Near real time admits a delay that depends on the use. The CEOS Earth observation glossary defines it as data available with a small, application-dependent latency, typically 3 hours in meteorological applications. For web data, write the delay you accept as a number instead of using either label.
How can I tell whether an AI tool reads a page live?
Look for a fetch time per page and compare it with the time of the answer. A study by Peec reports that ChatGPT serves many pages from its own cache rather than fetching them live, so a tool that can browse does not always read the page at the moment you ask.
How old can a page copy be before it stops counting as real-time?
Decide per question. A pasted URL or a question about right now calls for a live read, with a copy age of seconds. Background questions about docs can accept a copy that is hours old. Write the limit in seconds and check it each time you read a stored copy.
Sources
- real time (NIST CSRC Glossary) (Documentation)
- Near Real Time (CEOS Earth Observation Glossary) (Documentation)
- RFC 9111: HTTP Caching (Documentation)
- ChatGPT page caching (Peec research) (Blog)