> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnific.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stock

> Search, read and download stock on API v2: images and templates, icons, videos, music and sound effects.

Search, read and download stock under `/v2/stock`: the items, licences and billing of API v1, with the v2 request and answer format.

| Stock | Endpoints |
| - | - |
| Images and templates | [`GET /v2/stock/resources`](https://docs.magnific.com/api-reference/v2/stock/search-resources), `/{resource_id}`, `/{resource_id}/download`, `/{resource_id}/download/{resource_format}` |
| Icons | [`GET /v2/stock/icons`](https://docs.magnific.com/api-reference/v2/stock/search-icons), `/{icon_id}`, `/{icon_id}/download` |
| Videos | [`GET /v2/stock/videos`](https://docs.magnific.com/api-reference/v2/stock/search-videos), `/{video_id}`, `/{video_id}/download`, `/{video_id}/options/{option_id}/download` |
| Music | [`GET /v2/stock/music`](https://docs.magnific.com/api-reference/v2/stock/search-music), `/{music_id}`, `/{music_id}/download` |
| Sound effects | [`GET /v2/stock/sound-effects`](https://docs.magnific.com/api-reference/v2/stock/search-sound-effects), `/{sound_effect_id}`, `/{sound_effect_id}/download` |

**Coming from API v1.** Search with `query` (not `term`), page with `limit` and the opaque `cursor`, and send filters in snake\_case. Every answer is `{ "data": …, "meta": { "pagination": { "has_more", "next_cursor" } } }`, a search with no results is an empty page (`200`), and errors are `{ "code", "message", "details", "request_id" }`. Music and sound effect ids are integers.

**Who pays.** Searches and details are free. Downloading an image, template, icon or video spends credits from the key's wallet, as on API v1. Music and sound effects are free; premium items need a plan that includes them.

**A personal token** needs `api:read` to search, to read, and to download music and sound effects, which are free; and `api:write` to download an image, template, icon or video.

**Into a project.** To keep a stock image or video as one of your creations, pass its `id` to [`POST /v2/uploads/stock`](https://docs.magnific.com/api-reference/v2/uploads/stock).

```bash theme={null}
curl "https://api.magnific.com/v2/stock/resources?query=coffee&limit=5" \
  -H "x-magnific-api-key: $MAGNIFIC_API_KEY"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.