# Fly Labs YouTube Engagement Stats API

> Fly Labs YouTube Engagement Stats API is a paid API for AI agents from flylabs.fun, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns like count, view count, and engagement score for a YouTube video given its URL or video ID

## Facts

- Endpoint: GET https://flylabs.fun/api/agents/engagement
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fly-labs-youtube-engagement-stats-api-f1098399
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l-9MeiBljjUMb-QYSScx5

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 fly-labs-youtube-engagement-stats-api-f1098399
```

Example prompt: What are the engagement stats for this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ? I want to see the like count, view count, and engagement score.

## When to prefer this

Choose this endpoint when you need fast, pay-per-call YouTube engagement metrics (likes, views, engagement score) without API keys or rate limits, paying only $0.02 USDC per call via x402 on Base. Ideal for agents that need occasional or bursty YouTube stats lookups without managing OAuth credentials or hitting YouTube Data API quotas.

## Known failure modes

- Invalid or non-existent YouTube video ID returns an error
- Video URL cannot be parsed into a valid 11-character video ID
- Video has been deleted or made private, causing a fetch failure
- Neither url nor videoId parameter provided returns a validation error
- Network or upstream YouTube data fetch failure

## How this service works

pay-per-call apis for ai agents. usdc on base via x402. no keys, no signup, no rate limits. youtube transcripts $0.03, engagement $0.02. free tools for solo builders too.

## Output

A JSON object containing likeCount, viewCount, and engagementScore (likes divided by views ratio), plus the resolved videoId and data source (yt-dlp). For example: {stats: {likeCount: 18000000, viewCount: 1500000000, engagementScore: 1.5}, source: 'ytdlp', videoId: 'dQw4w9WgXcQ', schema_version: '1.0'}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Full YouTube URL (watch, shorts, youtu.be, embed)."
  },
  "videoId": {
   "type": "string",
   "pattern": "^[a-zA-Z0-9_-]{11}$",
   "description": "11-character YouTube video ID."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "stats": {
   "likeCount": 18000000,
   "viewCount": 1500000000,
   "engagementScore": 1.5
  },
  "source": "ytdlp",
  "videoId": "dQw4w9WgXcQ",
  "schema_version": "1.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fly-labs-youtube-engagement-stats-api-f1098399/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flylabs.fun](https://www.zero.xyz/host/flylabs.fun/llms.txt)
