# agent402.tools Media Info (ffprobe)

> agent402.tools Media Info (ffprobe) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Inspects any public audio/video URL using ffprobe and returns container format, duration, bitrate, and per-stream codec details as JSON

## Facts

- Endpoint: POST https://agent402.tools/api/media-info
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-media-info-ffprobe-9ffcda61
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_viRVFLshMSTghH_M7XUg3

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-tools-media-info-ffprobe-9ffcda61 -d '<json body>'
```

Example prompt: Can you check the codec, resolution, frame rate, and duration of this video file: https://example.com/sample.mp4?

## When to prefer this

Use this endpoint when you need technical metadata about a remote audio or video file — codec, resolution, fps, duration, bitrate, or stream layout — without downloading the file yourself. Ideal for pre-flight checks before transcoding, validating media uploads, or surfacing technical specs to a user. Prefer this over generic file-inspection tools when the target is specifically audio/video and you need ffprobe-level detail.

## Known failure modes

- URL is not publicly accessible or returns 4xx/5xx — error response indicating fetch failure
- Media file exceeds 30MB limit — request rejected with size error
- URL does not point to a valid audio/video file — ffprobe parse error returned
- Network timeout fetching the remote file — timeout error
- Unsupported or corrupt media container — ffprobe unable to read stream info

## How this service works

Inspect any audio/video URL with ffprobe: container, duration, bitrate, and per-stream codec details (sample rate/channels for audio, resolution/fps for video) as JSON. Body: {"url":"https://…/file.mp4"}.

## Output

A JSON object containing container format details (format name, duration, bitrate, size) and an array of per-stream details — for video streams: codec name, resolution (width x height), frame rate; for audio streams: codec name, sample rate, number of channels.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public URL of the media file (max 30MB)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 4404000,
  "bitrate": 192000,
  "streams": [
   {
    "type": "audio",
    "codec": "mp3",
    "channels": 2,
    "sampleRate": 44100
   }
  ],
  "formatName": "mp3",
  "durationSec": 1832.4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-media-info-ffprobe-9ffcda61/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)
