---
title: "Find Media API — Search Free Photos, Footage and Music | Pogclip Docs"
description: "Search free stock photos, stock footage and background music in Pogclip to get media IDs and preview links for edit_layers."
url: https://pogclip.com/docs/find-media
---

# Find free media

Searches free stock photos, stock footage and background music tracks that you can place on a video with `edit_layers`. Photo and footage searches run one at a time and can take up to 10 seconds each.

|          |                     |
| -------- | ------------------- |
| MCP tool | `find_media`        |
| API      | `GET /api/v1/media` |
| Credits  | Free                |

## When to use it

- Call before [`edit_layers`](https://pogclip.com/docs/edit-layers) to find free stock photos, stock footage or background music and get their `mediaId` values.
- Run photo and footage searches one at a time so requests do not collide.
- For custom animated text, lower thirds or charts, write an HTML graphic directly in [`edit_layers`](https://pogclip.com/docs/edit-layers) instead.

## Parameters

| Name    | Type   | Required | What it is                                                                                                      |
| ------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------- |
| `kind`  | string | Yes      | One of `photo`, `video`, `music`.                                                                               |
| `query` | string | Yes      | One to three plain English words: what it shows ("city traffic"), or for music its mood or style ("calm lofi"). |

## Call it from an AI agent

```json
{
  "name": "find_media",
  "arguments": {
    "kind": "music",
    "query": "calm lofi"
  }
}
```

## Call it from your code

```bash
curl "https://pogclip.com/api/v1/media?kind=music&query=calm+lofi" \
  -H "Authorization: Bearer $POGCLIP_API_KEY"
```

## What you get back

```json
{
  "media": [
    {
      "mediaId": "music-warm-dusk-downtempo-pads-ba7fba",
      "name": "Warm dusk downtempo pads",
      "seconds": 30.0,
      "energy": 2,
      "bpm": 0,
      "about": "calm warm ambient lofi synth night background",
      "previewUrl": "https://assets.openfilm.dev/library/audio/music/warm-dusk-downtempo-pads-ba7fba.mp3"
    }
  ],
  "next": "Free to use in any video."
}
```

The example above shows one music result out of up to 10 matches.

- `media`: up to 10 matches, or empty when nothing matched. Music items include `seconds`, `energy`, `bpm`, `about` and `previewUrl`. Photo and video items include `name`, `credit`, `pageUrl`, `previewUrl` and optional `seconds`.
- `media[].mediaId`: pass this value inside `add` in [`edit_layers`](https://pogclip.com/docs/edit-layers).
- `media[].previewUrl`: open this link to inspect a photo, clip or audio track before adding it.
- `next`: tells you whether matches are ready to use or to retry with simpler English words.

## Errors

| Code              | What it means                                                                                                                |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `invalid_request` | `kind` or `query` is missing or wrong, or the search is busy. Search for one thing at a time and try again in a few seconds. |
| `unauthorized`    | The API key or sign-in is missing, wrong or revoked.                                                                         |
| `rate_limited`    | More than 60 requests in a minute. Wait for `retryAfterSeconds`.                                                             |

## Related

- [Add or remove media and graphics](https://pogclip.com/docs/edit-layers)
- [Show frames](https://pogclip.com/docs/show-frames)
- [Skill: add B-roll and music](https://pogclip.com/docs/add-broll-and-music)
