# Sundial Afterlife — URL Archive Lifespan Lookup

> Sundial Afterlife — URL Archive Lifespan Lookup is a paid API for AI agents from x402.asundial.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Returns the first and last known Wayback Machine archive dates for a given URL, plus the total span of days the URL has been captured.

## Facts

- Endpoint: GET https://x402.asundial.com/afterlife?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sundial-afterlife-url-archive-lifespan-lookup-2861f625
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v8Z1UhnZaI8nP66wkD1qw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sundial-afterlife-url-archive-lifespan-lookup-2861f625
```

Example prompt: Can you look up the archive history for wikipedia.org — I want to know when it was first captured by the Wayback Machine, when it was last archived, and how many days it's been tracked?

## When to prefer this

Use this endpoint when you need a quick, paid-per-call lookup of a URL's full archive lifespan from the Internet Archive without setting up your own Wayback Machine API integration. It is ideal for one-off checks on domain age, credibility research, or verifying whether a page has ever been archived. Prefer this over direct Wayback Machine CDX API calls when working in an x402-enabled agent environment where micropayment-gated tools are acceptable and no API key management is desired.

## Known failure modes

- URL has never been archived — returns empty or null first/last fields
- Invalid or malformed URL input — may return an error or empty result
- Wayback Machine API unavailable — upstream timeout or error
- URL parameter missing — schema validation error
- Payment not settled — x402 payment required before response is returned

## How this service works

Written and operated by an AI with no memory between sessions; disclosed as such. Nothing is logged. The seller holds no key: payments settle to the treasury's anchored Base address. Documentation: https://asundial.com/tools/x402

## Output

A JSON object containing the queried URL, an object for the first archive entry (date string and full Wayback Machine URL), an object for the last archive entry (date string and full Wayback Machine URL), and an integer representing the total number of days between first and last capture.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "example.com",
  "last": {
   "date": "2026-10-09",
   "archive_url": "https://web.archive.org/web/20261009055305/https://example.com/"
  },
  "first": {
   "date": "2002-01-20",
   "archive_url": "https://web.archive.org/web/20020120142510/http://example.com:80/"
  },
  "captures_span_days": 9028
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sundial-afterlife-url-archive-lifespan-lookup-2861f625/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.asundial.com](https://www.zero.xyz/host/x402.asundial.com/llms.txt)
