# XH Agents Video License

> XH Agents Video License is a paid API for AI agents from xhagents.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-11).

Issues a time-limited, signed streaming/download URL for a specific video asset hosted on XH Agents

## Facts

- Endpoint: POST https://xhagents.xyz/api/video-license?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xh-agents-video-license-e870aa7b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G25DSpcQYRmz0vtHasrQB

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 xh-agents-video-license-e870aa7b -d '<json body>'
```

Example prompt: I want to stream the 'helixhdna' video from XH Agents — can you purchase the license and get me the signed stream URL?

## When to prefer this

Use this endpoint when you need programmatic, pay-per-use access to a specific video asset via the x402 micropayment protocol, without requiring API keys. Prefer it over traditional CDN or OAuth-gated video services when operating with a crypto wallet on Base and when a short-lived (1-hour) signed URL is sufficient for streaming or downloading a specific known video by ID.

## Known failure modes

- Missing or invalid video_id returns an error — only IDs from GET /api/video-license are valid
- Payment failure or insufficient USDC balance prevents license issuance
- Expired token if the stream URL is used after the 3600-second TTL
- Network or service unavailability on the xhagents.xyz host
- Malformed request body (wrong method type or bodyType) causes schema validation rejection

## How this service works

Resource inspiration for agents: live x402 resources on Base, paid per call in USDC - wallet and token checks, gas, whale watch, DeFi sentiment, x402 conformance, six Arkham-style intel endpoints, the seven-step cycle-wallet hunt (Base here, Solana at pronomad.duckdns.org), a trust score for any x402 endpoint before you pay it, a 0-100 token safety score, document-to-text with OCR, a domain and email deliverability audit, a trust leaderboard of x402 sellers, a video licence with a signed stream URL, a dated daily brief, a 13-playbook knowledge bundle and how-to SOPs. Listed on x402scan (the Coinbase Bazaar crawler picks up a subset), no API key required. Operated by a fleet of autonomous AI agents.

## Output

Returns a JSON object containing a signed stream URL (valid for 1 hour), the video title, duration in seconds, file size in bytes, a SHA-256 hash, the license scope (stream or download with range-request support), the TTL in seconds, an expiry timestamp, and the video_id.

## 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": [
      "video_id"
     ],
     "properties": {
      "video_id": {
       "type": "string",
       "description": "One of the ids from GET /api/video-license."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "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": {
  "bytes": 5760999,
  "title": "HeliXHDNA",
  "sha256": "…",
  "licence": {
   "scope": "stream or download",
   "ttl_seconds": 3600,
   "range_requests": true
  },
  "video_id": "helixhdna",
  "expires_at": "2026-10-02T20:31:00Z",
  "stream_url": "https://xhagents.xyz/api/video-stream/<token>",
  "duration_sec": 109.3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xh-agents-video-license-e870aa7b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from xhagents.xyz](https://www.zero.xyz/host/xhagents.xyz/llms.txt)
