# Agent402 Video Search

> Agent402 Video Search is a paid API for AI agents from agent402.tools, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns ranked video search results (title, URL, description, duration, creator, publisher, thumbnail, age) as clean JSON from an independent search index

## Facts

- Endpoint: GET https://agent402.tools/api/search-videos
- 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/agent402-video-search-6e561f11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nr3z1LrVKZ7WSC2q_ItM8

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 agent402-video-search-6e561f11
```

Example prompt: Search for videos about 'machine learning for beginners' from the past week, return 15 results for the US, and give me the title, duration, creator, and thumbnail for each.

## When to prefer this

Use this endpoint when you need structured video search results (with metadata like duration, creator, and thumbnail) from an independent index rather than a platform-specific API. Ideal for completing a full web+news+images+video search pipeline, or when you need freshness-filtered video results as clean JSON without scraping.

## Known failure modes

- Missing required 'q' parameter returns a 400 error
- Query exceeding 400 characters may be rejected or truncated
- Invalid country code returns an error or falls back to US defaults
- Invalid freshness value (not pd/pw/pm/py) may be ignored or cause an error
- count outside 1-50 range may be clamped or rejected
- No results found returns an empty array
- Payment not attached or insufficient USDC returns a 402 error

## How this service works

Live video search: ranked video results (title, video page URL, description, duration, creator, publisher, thumbnail, age) from an independent search index as clean JSON. Completes the web/news/images search family. Same freshness filter (pd/pw/pm/py); strict safe-search is on by default.

## Output

A JSON array of ranked video results, each containing: title, video page URL, description, duration, creator name, publisher, thumbnail image URL, and age/publish date of the video. Results are drawn from an independent search index and can be filtered by freshness and country.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (max 400 chars)"
      },
      "count": {
       "type": "number",
       "description": "Results to return, 1-50 (default 10)"
      },
      "country": {
       "type": "string",
       "description": "Optional 2-letter country code (default US)"
      },
      "freshness": {
       "type": "string",
       "description": "Optional: pd, pw, pm, or py (past day/week/month/year)"
      },
      "safesearch": {
       "type": "string",
       "description": "Optional: 'strict' (default) or 'off'"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "count",
      "results"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "age": {
          "type": "string"
         },
         "url": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "creator": {
          "type": "string"
         },
         "duration": {
          "type": "string"
         },
         "publisher": {
          "type": "string"
         },
         "thumbnail": {
          "type": "string"
         },
         "description": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "query": "agent payments",
  "results": [
   {
    "age": "March 23, 2026",
    "url": "https://www.youtube.com/watch?v=example",
    "title": "The future of agentic payments",
    "creator": "Example Channel",
    "duration": "14:58",
    "publisher": "YouTube",
    "thumbnail": "https://imgs.search.brave.com/...",
    "description": "How payment infrastructure for AI agents is built…"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-video-search-6e561f11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
