Time Portal Search API

Time Portal search

Search and rank the web as it existed in the past.

POST/v1/time-portal/search
curl https://api.epochal.com/v1/time-portal/search \
  -H "x-api-key: $EPOCHAL_API_KEY" \
  -H "Accept-Datetime: 2026-03-01T00:00:00Z" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "european battery gigafactory delays",
  "num_results": 5,
  "published_after": "2026-01-01T00:00:00Z"
}'

Response as of Accept-Datetime, with the resolved cutoff timestamp in as_of.

{
  "as_of": "2026-03-01T00:00:00Z",
  "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-02-11T06:12:00Z",
      "domain": "example.com",
      "language": "en",
      "entity": null
    }
  ],
  "entities": []
}

Read the Time Portal Search API guide

Time Portal search gives ranked results from the time-gated web.

Authorizations

x-api-key

x-api-keystringRequired

Send your API key in the x-api-key header. Create keys in the console; each belongs to one organization.

Example

"ek_…"

Headers

Accept-DatetimestringRequired

Point-in-time cutoff for the request: a past RFC 3339 timestamp, ISO 8601 date/time, or HTTP-date at or after 1970-01-01T00:00:00Z. Nothing published or captured after this time is included.

Example

"2026-03-01T00:00:00Z"

Body

application/json

querystringRequired

What to search the web for.

  • Minimum length: 1

  • Maximum length: 1000

Example

"european battery gigafactory delays"
num_resultsinteger

Maximum number of results to return. Fewer results may be returned if fewer match.

  • Range: 1 to 10

  • Default: 10

domainsstring[]

Only return pages from these sites, subdomains included. An entry is a host (example.com, docs.example.com), a host and path (example.com/blog), or a public suffix (gov.uk). A full URL works too.

  • domains and exclude_domains share a combined limit of 200 entries

Example

["example.com","example.org"]
exclude_domainsstring[]

Never return pages from these sites, subdomains included. Entries take the same forms as domains. An entry can't also be in domains.

Example

["example.net"]
languagesstring[]

Preferred result languages as BCP 47 tags, most preferred first (such as en or pt-BR). Omit to return results in the query's language.

Example

["en"]
published_afterstring (date-time) | null

Only return pages published on or after this time. Must be earlier than Accept-Datetime.

Example

"2026-01-01T00:00:00Z"
categoriesstring[]

Only return pages in these categories. Leave it out to search everything.

  • finance is SEC filings; legal is court opinions, statutes, regulations and sanctions; publications is academic articles; companies is company profiles; people is people profiles; maps is places

Example

["news","finance"]
include_textboolean

Also return each page's extracted full text in results[].text.

  • Default: false

  • Increases response payload size; leave false unless full page text is needed

Response

200

as_ofstring (date-time)Required

Resolved point-in-time cutoff from Accept-Datetime.

request_idstringRequired

Identifies this request in our logs; quote it when reporting a problem.

resultsobject[]Required

Ranked results, best first.

titlestringRequired

The page's title.

urlstringRequired

The page's canonical URL.

snippetstringRequired

A short passage from the page that matches the query.

textstring | null

The page's extracted text. Only present when include_text is true and text is available.

published_atstring (date-time) | null

When the page was published. null when unknown.

domainstring | null

The page's registrable domain, such as example.com. null when unknown.

languagestring | null

The page's language as a BCP 47 tag. null when not detected.

entityobject | nulloneOf · type

The entity when the result is from an Epochal World page, as fetch returns it for url. null for every other result.

  • Known values (open): organization, person, crypto, weather, place

entitiesobject[]oneOf · typeRequired

Reserved; entities come on results[].entity.

  • Default: []

oneOf (type)

An entity whose type is organization.

idstringRequired

The entity's stable URL, https://world.epochal.com/<type>/<key>.

schema_versioninteger (int64)Required

Schema version for this entity type's properties layout (1 for all types).

  • Minimum: 0

updated_atstring (date-time)Required

When the properties were last refreshed.

typestringRequired

The entity's type. It sets the shape of properties.

  • Constant: organization

propertiesobjectRequired

The properties of a company.