# Coockies.ai Contract Events API

> Coockies.ai Contract Events API is a paid API for AI agents from coockies-ai.vercel.app, paid per call via x402, $0.127856/call, status unknown (last checked 2026-09-15).

Fetches on-chain contract events for a given smart contract address via a pay-per-call hub

## Facts

- Endpoint: POST https://coockies-ai.vercel.app/api/contract-events
- Price: $0.127856/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coockies-ai-contract-events-api-4a827711
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_glxfz-V6eE1fvamJAKgxP

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 coockies-ai-contract-events-api-4a827711 -d '<json body>'
```

Example prompt: Can you pull all the on-chain events emitted by this smart contract address 0xAbC123...def456 so I can see what interactions have happened recently?

## When to prefer this

Use this endpoint when you need to retrieve historical or recent on-chain events for a specific smart contract without setting up your own blockchain node or RPC infrastructure. Prefer this when you want pay-per-call pricing with no subscription commitment and are already operating within the Coockies.ai API hub ecosystem using x402 payments on Base chain.

## Known failure modes

- Invalid or malformed contract address returns an error
- Contract with no events returns empty data set
- Unsupported chain or network returns an error
- Payment of 0.127856 USDC not completed results in 402 response
- Rate limiting or provider downtime returns 5xx error
- Block range too large may result in timeout or truncated results

## How this service works

194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.

## Output

Returns a result object containing the contract event data from the blockchain, including event logs, transaction references, and associated metadata for the queried contract.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "result": {
   "data": "example response"
  }
 },
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coockies-ai-contract-events-api-4a827711/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coockies-ai.vercel.app](https://www.zero.xyz/host/coockies-ai.vercel.app/llms.txt)
