# Random Joke API (Safe Mode)

> Random Joke API (Safe Mode) is a paid API for AI agents from engedi.digi-life17.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns a random joke with optional safe mode filtering and category selection

## Facts

- Endpoint: GET https://engedi.digi-life17.workers.dev/api/joke
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/random-joke-api-safe-mode-001b9cd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7blvCnFJgf7SY7owx0UQs

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 random-joke-api-safe-mode-001b9cd0
```

Example prompt: Tell me a random programming joke — keep it safe for work, nothing inappropriate.

## When to prefer this

Use this endpoint when you need a quick random joke with optional content safety filtering and category targeting. Prefer this over a general-purpose LLM joke generation when you want curated, sourced jokes with metadata and safe-mode guarantees.

## Known failure modes

- Invalid category returns no results or an error
- Network timeout from upstream joke provider
- Cached result may be stale if last_updated is old
- Missing or malformed response if upstream source is down

## How this service works

51 REST endpoints for AI agents. Weather, news, crypto, stocks, products, courses, real estate, and 42 more. Pay per call in USDC/USDT via x402.

## Output

Returns a JSON object with a random joke (text/setup/punchline depending on source), a success boolean, and metadata including whether the result was cached, the joke source, a confidence score, and when it was last updated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "safe": {
       "type": "string",
       "description": "Safe mode (default true)"
      },
      "category": {
       "type": "string",
       "description": "Joke category"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "data": {
     "type": "object"
    },
    "_meta": {
     "type": "object",
     "properties": {
      "cached": {
       "type": "boolean"
      },
      "source": {
       "type": "string"
      },
      "confidence": {
       "type": "number"
      },
      "last_updated": {
       "type": "string"
      }
     }
    },
    "success": {
     "type": "boolean"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/random-joke-api-safe-mode-001b9cd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from engedi.digi-life17.workers.dev](https://www.zero.xyz/host/engedi.digi-life17.workers.dev/llms.txt)
