# Agent Social Relay – YouTube Videos

> Agent Social Relay – YouTube Videos is a paid API for AI agents from agent-social-relay.biv-ai-lab.workers.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-14).

Fetches public YouTube video data for a given query or channel without requiring a YouTube account login, billed per call via x402.

## Facts

- Endpoint: GET https://agent-social-relay.biv-ai-lab.workers.dev/v1/youtube/videos?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-social-relay-youtube-videos-4c26326a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hRyHx8cKyvIsDTS6RNEHP

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 agent-social-relay-youtube-videos-4c26326a
```

Example prompt: Grab the latest public YouTube videos from the channel 'Fireship' — no login needed, just return the video titles, IDs, and upload dates.

## When to prefer this

Choose this endpoint when your agent needs public YouTube video data without managing a Google OAuth flow, YouTube Data API quotas, or social account credentials — especially in autonomous pipelines where per-call USDC micropayments (x402) are acceptable and simplicity of integration matters. Prefer this over direct YouTube API access when you want to avoid quota management and API key provisioning.

## Known failure modes

- Invalid or non-existent channel ID returns empty video list
- Query returns no results, yielding an empty videos array
- Rate limiting or upstream YouTube access issues may cause errors
- Malformed request parameters may result in a 4xx response
- Pagination cursor mismatch may skip or repeat results

## How this service works

Pay-per-call public social data API for autonomous agents. No social account login required.

## Output

Returns a JSON object with a 'data' key containing a list of video objects (titles, IDs, metadata) and a pagination cursor ('next'), plus a 'source' field confirming 'youtube' and a 'fetched_at' ISO timestamp indicating when the data was retrieved.

## 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": [
      "handle"
     ],
     "properties": {
      "sort": {
       "enum": [
        "latest",
        "popular"
       ],
       "type": "string"
      },
      "handle": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "next": null,
   "videos": []
  },
  "source": "youtube",
  "fetched_at": "2026-09-25T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-social-relay-youtube-videos-4c26326a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-social-relay.biv-ai-lab.workers.dev](https://www.zero.xyz/host/agent-social-relay.biv-ai-lab.workers.dev/llms.txt)
