# Openverse Creative Commons Image & Audio Finder (`dataspryva/openverse-creative-commons-image-and-audio-finder`) Actor

Search Openverse for Creative Commons images or audio by keyword, license, provider and format, or fetch a specific item by ID, with attribution text included.

- **URL**: https://apify.com/dataspryva/openverse-creative-commons-image-and-audio-finder.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, Developer tools, Open source
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Openverse Creative Commons Image & Audio Finder

Openverse is a public search index of openly licensed and public-domain media. It brings
together hundreds of millions of images and audio tracks from museums, archives, photo
communities and audio libraries, and records the license, creator and attribution for each
work. This actor is a complete client for that index: search it, fetch exact items, walk to
related media, or list every source — all without an account, API key or cookie.

### What you can do

- **Search images** by keyword or title/tag/creator, filtered by license, usage rights,
  source, category, aspect ratio, size, format and sensitivity.
- **Search audio** with the same license/source controls plus audio category, length and
  format filters.
- **Browse without a query** — leave the search box empty and explore a source, category,
  aspect ratio, format or license directly.
- **Fetch items by ID or link** — one UUID or a batch, including `api.openverse.org` detail
  URLs and `openverse.org` image/audio links.
- **Find related media** for any image or audio item (Openverse returns up to 10 per item).
- **List the source catalog** with display names, homepages and item counts.
- Get ready-to-use **attribution text**, a human-readable **license label**, and derived
  **commercial-use / modification** flags with every record.
- Go beyond a single result page: searches above 240 records are assembled from Openverse's
  own facets so you get more of the catalog, not a silent truncation.

### Inputs

| Field | Type | Default | What it does |
|---|---|---|---|
| `mode` | Select | `searchImages` | `searchImages`, `searchAudio`, `byId`, `related` or `listSources`. |
| `searchQuery` | Text | `mountain landscape` | Keywords. Leave blank to browse with filters only. |
| `searchIn` | Select | `all` | Search all fields, or restrict the query to `title`, `tags` or `creator`. |
| `licenses` | Multi-select | all | One or more of `by`, `by-sa`, `by-nc`, `by-nc-sa`, `by-nd`, `by-nc-nd`, `cc0`, `pdm`, `sampling+`, `nc-sampling+`. |
| `licenseType` | Select | any | `all`, `all-cc`, `commercial` (commercial use allowed) or `modification` (derivatives allowed). |
| `sources` | Multi-select | all | 59 Openverse sources, e.g. Flickr, Wikimedia Commons, NASA, The Met, Jamendo, Freesound. Sources that do not serve the selected media type are skipped. |
| `excludedSources` | Multi-select | none | Drop specific sources from the result set. |
| `imageCategory` | Multi-select | all | `photograph`, `illustration`, `digitized_artwork`. Image mode only. |
| `audioCategory` | Multi-select | all | `music`, `podcast`, `sound_effect`, `audiobook`, `news`, `pronunciation`. Audio mode only. |
| `aspectRatio` | Multi-select | all | `wide`, `tall`, `square`. Image mode only. |
| `imageSize` | Multi-select | all | `large`, `medium`, `small`. Image mode only. |
| `audioLength` | Multi-select | all | `long`, `medium`, `short`, `shortest`. Audio mode only. |
| `imageFormat` | Multi-select | all | `jpg`, `png`, `gif`, `svg`, `webp`, `tiff`. |
| `audioFormat` | Multi-select | all | `mp3`, `mp32`, `ogg`, `ogx`, `flac`, `wav`, `oga`. |
| `includeMature` | Boolean | `false` | Include items Openverse flags as sensitive. |
| `filterDeadLinks` | Boolean | `true` | Ask Openverse to exclude items whose media URL returns 404. |
| `itemType` | Select | `image` | Image or audio, for `byId`/`related` when you pass a bare UUID. |
| `itemId` | Text | – | One UUID or Openverse link. |
| `itemIds` | String list | – | Batch of UUIDs/links for `byId` and `related`. |
| `maxItems` | Integer | `20` | 1–10,000. In search modes, the number of records; in lookup modes, the number of items processed. |

Older saved tasks keep working: the previous `license`, `source`, `provider` and `extension`
fields are read from the raw input and mapped onto `licenses`, `sources`, `sources` and the
matching format list. `searchQuery`, `itemType`, `itemId` and `maxItems` are unchanged.

### Output

#### Image records (`recordType: "image"`)

| Field | Description |
|---|---|
| `id`, `title` | Openverse UUID and item title. |
| `creator`, `creatorUrl` | Creator credit and profile link, when known. |
| `license`, `licenseVersion`, `licenseUrl` | Licence code, version and deed URL. |
| `licenseLabel` | Human-readable licence, e.g. `CC BY-SA 4.0`. |
| `commercialUseAllowed`, `modificationsAllowed` | Derived from the licence for the standard CC licences; omitted when not assessed. |
| `attribution` | Ready-to-use attribution sentence from Openverse. |
| `foreignLandingUrl` | Item page on the original provider. |
| `url`, `thumbnail` | Original media file and Openverse thumbnail URL. |
| `provider`, `source` | Hosting provider and Openverse source name. |
| `category` | `photograph`, `illustration` or `digitized_artwork`, when classified. |
| `width`, `height` | Pixel dimensions, when published. |
| `filesize`, `filetype` | File size in bytes and file type, when published. |
| `tags` | Tag names. |
| `mature` | Whether Openverse marks the item sensitive. |
| `detailUrl`, `relatedUrl` | Openverse detail and related-media endpoints. |
| `matchedFields` | Which fields matched a search query (search mode only). |
| `description` | Included only if the provider supplies one. |
| `indexedOn` | When Openverse indexed the item (ISO 8601). |
| `sourceUrl`, `recordType`, `scrapedAt` | The API request that produced the row, row type and collection time. |

#### Audio records (`recordType: "audio"`)

All common fields above, plus:

| Field | Description |
|---|---|
| `duration` | Track length in milliseconds. |
| `durationSeconds` | Track length in seconds. |
| `bitRate`, `sampleRate` | Encoding details, when published. |
| `genres` | Genre labels. |
| `audioSet` | Album/collection: title, creator, creator URL, landing URL, file URL, size and type. |
| `altFiles` | Alternate files with URL, type, size, bit rate and sample rate. |
| `waveformUrl` | Openverse waveform-peaks URL. |

#### Source records (`recordType: "source"`, `mode: listSources`)

`sourceName`, `displayName`, `mediaType`, `sourceHomepage`, `mediaCount`, `logoUrl` (when
present), `sourceUrl`, `scrapedAt`.

Every record is emitted with empty values omitted — you never get `null`, `""` or `[]` in a
field. `false` and `0` are preserved when meaningful.

### Examples

#### Search commercial-use images, wide and large

```json
{
  "mode": "searchImages",
  "searchQuery": "office team",
  "licenseType": "commercial",
  "aspectRatio": ["wide"],
  "imageSize": ["large"],
  "maxItems": 100
}
```

#### Browse a source without a query

```json
{
  "mode": "searchImages",
  "searchQuery": "",
  "sources": ["met", "rijksmuseum"],
  "imageCategory": ["digitized_artwork"],
  "maxItems": 50
}
```

#### Fetch a mixed batch by link

```json
{
  "mode": "byId",
  "itemIds": [
    "https://openverse.org/image/8c85412a-6d6d-4d42-b0d9-2d04867ab31b",
    "https://api.openverse.org/v1/audio/d50a355e-b769-4c5d-9a0f-d129f3cb1148/"
  ],
  "maxItems": 10
}
```

#### Related media for an item

```json
{
  "mode": "related",
  "itemType": "image",
  "itemId": "8c85412a-6d6d-4d42-b0d9-2d04867ab31b",
  "maxItems": 10
}
```

#### List all sources

```json
{
  "mode": "listSources",
  "maxItems": 100
}
```

### How searches above 240 results work

Openverse's anonymous API returns at most **240 records per query** (20 per page × 12 pages).
Requesting more is not an error — the API simply stops there. This actor handles that in two
ways:

- Up to 240 records, it pages through the query normally, in Openverse's relevance order.
- Above 240, it runs the same query across Openverse's own facets — first license, then
  category, aspect ratio, size, format and source — only splitting a facet that actually hit
  the 240 cap, and de-duplicating every result by Openverse ID. This reaches much more of the
  catalog (thousands of rows for broad queries) while staying within the public API.
- Deep results are grouped by facet rather than presented as one continuous relevance list.
  The first 240 are the same items and order you would see on the site.
- If every facet is already constrained by your filters, 240 is the real maximum for that
  query; the run reports how many rows it could collect.

The actor paces requests below Openverse's anonymous limit of 100/minute and 1,000/day. If the
daily quota or a 429 is hit, it stops and tells you how many records were collected, so you
can re-run later.

### Notes and limits

- **No account or key needed.** All modes use Openverse's public API anonymously.
- **Relevance order only.** The API's experimental sort parameters are currently ignored by
  the live service, so the actor does not expose sorting.
- **Related media is fixed at 10 per item** by Openverse; there is no related pagination.
- **Descriptions** are not part of the Openverse API response, so a `description` field only
  appears if a provider ever includes one.
- **Direct media URLs belong to the provider.** Most work, but some hosts (notably Flickr's
  static CDN) rate-limit or block direct hotlinking. The Openverse `thumbnail` is the normal
  preview; a few providers cannot supply one at all (`Thumbnail unavailable from provider`),
  in which case use `foreignLandingUrl` or the `url` field. `foreignLandingUrl` always takes
  you to the source page.
- **Filter facets need metadata.** Category, aspect ratio and size filters only match items
  whose provider supplied that metadata; items without it are reachable through license/source
  searches or an unfiltered query.
- **Only images and audio.** Openverse's API exposes no other media types.
- **Two rare licence codes are valid but empty.** `sampling+` and `nc-sampling+` are accepted
  by Openverse but currently have no indexed media; selecting them returns zero records.
- **Some sources are listed but currently empty.** Openverse's own source validator accepts a
  few sources that have no searchable items right now; they return an honest empty result.
- **The anonymous quota is shared.** Very broad deep runs can exhaust Openverse's 1,000
  requests/day for the run's IP; the status message tells you when that happened so you can
  re-run later or narrow the request.
- Records are collected at run time; licensing can change upstream, so re-check the
  `licenseUrl` before publishing.

### FAQ

**Do I need an Openverse account?**
No. The actor never asks for a key, cookie or login.

**Can I use the media commercially?**
Check `licenseType` or the derived `commercialUseAllowed` flag, then confirm on the
`licenseUrl`. CC0 and Public Domain Mark items have no attribution requirement; the other
licenses do, and the `attribution` field is already formatted for you.

**Why did a 5,000-row request return fewer rows?**
Openverse itself ran out of matches for the chosen filters, or the anonymous request quota was
reached. The run status says which. Remove a filter or split the search to reach more items.

**Why are some fields missing on some records?**
Openverse only carries what the original provider supplied. Empty values are omitted rather
than filled with guesses.

**Can I fetch both images and audio in one search?**
Run `searchImages` and `searchAudio` separately; each has its own category and format filters.
`byId` and `related` accept mixed image/audio batches.

**Is this affiliated with Openverse?**
No. It is an independent client for Openverse's public API and is not endorsed by or
sponsored by the Openverse project.

### Data source

All data comes from the public Openverse API at `https://api.openverse.org/v1/`. Openverse
aggregates openly licensed media from its sources; each record keeps the original creator,
license and landing page so you can verify and attribute the work.

# Actor input Schema

## `mode` (type: `string`):

Search images or audio, fetch specific items by ID/link, find media related to an item, or list Openverse's sources.

## `searchQuery` (type: `string`):

Keywords, e.g. 'mountain landscape' or 'jazz piano'. Leave blank to browse using only the filters below.

## `searchIn` (type: `string`):

Which metadata field the query searches. Openverse cannot combine these with a full-text query, so pick one.

## `licenses` (type: `array`):

Keep only these Creative Commons licences. Leave empty for all licences.

## `licenseType` (type: `string`):

Filter by what the licence allows. Empty means no usage restriction.

## `sources` (type: `array`):

Restrict results to specific Openverse sources (Flickr, Wikimedia Commons, NASA, Jamendo, …). Sources that do not serve the chosen media type are skipped. Leave empty for all sources.

## `excludedSources` (type: `array`):

Drop results from these sources. Sources that do not serve the chosen media type are ignored.

## `imageCategory` (type: `array`):

Image searches only: photograph, illustration or digitized artwork.

## `audioCategory` (type: `array`):

Audio searches only: music, podcast, sound effect, audiobook, news or pronunciation.

## `aspectRatio` (type: `array`):

Image searches only: wide, tall or square.

## `imageSize` (type: `array`):

Image searches only: large, medium or small.

## `audioLength` (type: `array`):

Audio searches only: long, medium, short or shortest.

## `imageFormat` (type: `array`):

Image searches only: jpg, png, gif, svg, webp or tiff.

## `audioFormat` (type: `array`):

Audio searches only: mp3, mp32, ogg, ogx, flac, wav or oga.

## `includeMature` (type: `boolean`):

Include items Openverse marks as sensitive/mature. Off by default.

## `filterDeadLinks` (type: `boolean`):

Ask Openverse to drop results whose media link returns 404. On by default.

## `itemType` (type: `string`):

Image or audio, used by the byId and related modes when the input is a bare UUID.

## `itemId` (type: `string`):

One Openverse UUID, API URL or openverse.org image/audio link.

## `itemIds` (type: `array`):

Batch lookup: multiple UUIDs or links, one per line.

## `maxItems` (type: `integer`):

Maximum records to return (1–10,000). Search runs above 240 combine Openverse facets to go deeper; lookup modes cap the number of items processed.

## Actor input object example

```json
{
  "mode": "searchImages",
  "searchQuery": "mountain landscape",
  "searchIn": "all",
  "licenses": [],
  "licenseType": "",
  "sources": [],
  "excludedSources": [],
  "imageCategory": [],
  "audioCategory": [],
  "aspectRatio": [],
  "imageSize": [],
  "audioLength": [],
  "imageFormat": [],
  "audioFormat": [],
  "includeMature": false,
  "filterDeadLinks": true,
  "itemType": "image",
  "itemIds": [],
  "maxItems": 20
}
```

# Actor output Schema

## `media` (type: `string`):

Dataset containing image/audio records (recordType=image/audio) and source-catalog records (recordType=source).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "searchImages",
    "searchQuery": "mountain landscape",
    "searchIn": "all",
    "licenses": [],
    "licenseType": "",
    "sources": [],
    "excludedSources": [],
    "imageCategory": [],
    "audioCategory": [],
    "aspectRatio": [],
    "imageSize": [],
    "audioLength": [],
    "imageFormat": [],
    "audioFormat": [],
    "includeMature": false,
    "filterDeadLinks": true,
    "itemType": "image",
    "itemIds": [],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/openverse-creative-commons-image-and-audio-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "searchImages",
    "searchQuery": "mountain landscape",
    "searchIn": "all",
    "licenses": [],
    "licenseType": "",
    "sources": [],
    "excludedSources": [],
    "imageCategory": [],
    "audioCategory": [],
    "aspectRatio": [],
    "imageSize": [],
    "audioLength": [],
    "imageFormat": [],
    "audioFormat": [],
    "includeMature": False,
    "filterDeadLinks": True,
    "itemType": "image",
    "itemIds": [],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/openverse-creative-commons-image-and-audio-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "searchImages",
  "searchQuery": "mountain landscape",
  "searchIn": "all",
  "licenses": [],
  "licenseType": "",
  "sources": [],
  "excludedSources": [],
  "imageCategory": [],
  "audioCategory": [],
  "aspectRatio": [],
  "imageSize": [],
  "audioLength": [],
  "imageFormat": [],
  "audioFormat": [],
  "includeMature": false,
  "filterDeadLinks": true,
  "itemType": "image",
  "itemIds": [],
  "maxItems": 20
}' |
apify call dataspryva/openverse-creative-commons-image-and-audio-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/openverse-creative-commons-image-and-audio-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JoHGqaevYOTCJchZE/builds/L2X97MI44Bbdiju3c/openapi.json
