Live · Guides
Quickstart
Get started with the Live Search and Fetch APIs.
Get an API key
Create a key in the console and set it in your environment.
Get API KeyShell
bash
export EPOCHAL_API_KEY="ek_…"Search
Send a query to POST/v1/search to search the live web.
curl https://api.epochal.com/v1/search \
-H "x-api-key: $EPOCHAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "european battery gigafactory delays",
"num_results": 2
}'The response looks like this:
JSON
json
{
"request_id": "7c2e5f0a-93b4-4d1e-a6f8-2b0c9e4d7a15",
"results": [
{
"title": "Battery plant start pushed back to late 2027",
"url": "https://news.example.com/energy/battery-plant-delay",
"snippet": "The cell maker said commissioning would slip by three quarters…",
"published_at": "2026-08-19T06:12:00Z",
"domain": "example.com",
"language": "en",
"entity": null
},
{
"title": "Gigafactory timelines slip across Europe",
"url": "https://analysis.example.org/energy/gigafactory-timelines",
"snippet": "Three of the five plants announced for 2026 now target 2027 or later…",
"published_at": "2026-07-28T09:00:00Z",
"domain": "example.org",
"language": "en",
"entity": null
}
]
}Fetch
Read a result in full by sending its url to POST/v1/fetch.
curl https://api.epochal.com/v1/fetch \
-H "x-api-key: $EPOCHAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://news.example.com/energy/battery-plant-delay",
"max_characters": 2000
}'The response looks like this:
JSON
json
{
"request_id": "7c2e5f0a-93b4-4d1e-a6f8-2b0c9e4d7a15",
"status": "success",
"id": "6b81feebde1a4821a125fb307894e7ad",
"url": "https://news.example.com/energy/battery-plant-delay",
"final_url": "https://news.example.com/energy/battery-plant-delay/",
"title": "Battery plant start pushed back to late 2027",
"description": "The cell maker said commissioning would slip.",
"author": "Jane Doe",
"published_at": "2026-08-19T06:12:00Z",
"language": "en",
"content": "# Battery plant start pushed back to late 2027\n\nThe cell maker said…",
"truncated": true,
"entity": null
}content is the page as markdown.
Use a client
The SDKs, CLI and MCP server
make the same two calls through live, beside the Time Portal's time_portal:
from epochal.api import Client
with Client() as client:
live = client.live()
found = live.search("european battery gigafactory delays", num_results=2)
if found.results:
page = live.fetch(found.results[0].url, max_characters=2000)
print(page.content)Next steps
Search ranks the live web for a query and returns results with snippets.
Fetch reads one web page and returns its main content as markdown, with its metadata.
Search and fetch return companies, people, places, stocks, crypto assets, a city's weather, and sports leagues as world entities that share one envelope.
The epochal-api and epochal-sandbox packages for Rust and Python.
Standard JSON error envelope, HTTP status codes, sandbox failure types, and retry rules.