# CodePulse API - Web Archive History Lookup

> CodePulse API - Web Archive History Lookup is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15, last successful call 2026-08-04).

Retrieves the earliest or most relevant Wayback Machine snapshot URL and timestamp for a given web page

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/web/history
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-08-04
- Success rate: 100% of calls made through Zero
- Rating: 1.7 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-web-archive-history-lookup-e90afc71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HlAREq_4v3pfh21rjhxpH

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 codepulse-api-web-archive-history-lookup-e90afc71 -d '<json body>'
```

Example prompt: Can you check if example.com has ever been captured by the Wayback Machine and give me the earliest snapshot URL and timestamp you can find?

## When to prefer this

Use this endpoint when you need to quickly retrieve the earliest or most notable Wayback Machine snapshot for a specific URL without managing API keys. Ideal for AI agents that need to verify historical web presence, find archived versions of pages, or confirm when a domain was first crawled. Priced at $0.001 USDC per call via x402 on Base, making it cost-effective for occasional lookups.

## Known failure modes

- URL not found in Wayback Machine archive — returns available: false
- Unsupported URL format — returns supported: false
- Malformed or missing URL input — likely 4xx error
- Service timeout or upstream Wayback Machine unavailability — 5xx or delayed response
- Payment not received or insufficient USDC — 402 Payment Required

## How this service works

Queries historical website snapshots from the free Archive.org API.

## Output

Returns a JSON object with availability (boolean), the archive timestamp (e.g. '20061205213202'), a direct Wayback Machine snapshot URL, confidence level, warnings, and a disclaimer. Indicates whether the URL is supported for lookup and when the data was last updated.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to query snapshots for"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "available": true,
   "timestamp": "20061205213202",
   "snapshot_url": "https://web.archive.org/web/20061205213202/http://example.com:80/"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-web-archive-history-lookup-e90afc71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
