# Openverse Image Search: CC0 & CC BY Images with Attribution (`data-done-right/openverse-image-search`) Actor

Search Openverse for openly licensed images (CC0, public domain, CC BY, BY-SA): filter by license, category, source and size, get a ready-to-paste attribution line with the license URL, and optionally download the files, deduped, resized and zipped. No API key needed.

- **URL**: https://apify.com/data-done-right/openverse-image-search.md
- **Developed by:** [Data Done Right](https://apify.com/data-done-right) (community)
- **Categories:** Developer tools, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 results

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

Learn more: https://docs.apify.com/actors/running/actors-in-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 Image Search: CC0 & CC BY Images with Attribution

Use this **Openverse image search** to **find openly licensed images (CC0, public domain, CC BY and other Creative Commons licenses)** by keyword, and get for every image the license, the creator and a **ready-to-paste attribution line with the license URL**. It uses the official, anonymous Openverse API, so you need no API key. Optionally it also downloads the files, removes duplicates, converts or resizes them and packs them into one ZIP.

**What it does NOT do (read this first)**

- **Images only.** Openverse also has audio; this Actor does not search it.
- **Anonymous API limits apply.** Openverse allows 20 requests per minute and 200 per day per IP address for anonymous clients, one request returns at most 20 images, and a search cannot go past its first **240 results**. On shared cloud IPs the daily allowance can already be used up by other people; then the run stops, returns what it has and says so in the `NOTES` record and the run's status message. It never fakes results.
- **It does not check the licenses.** The license, creator and attribution come from Openverse, which collects them from the source sites. Open the `landingUrl` before you use an image commercially, and read the license terms. This is not legal advice.
- It does not log in anywhere, use proxies or scrape Google or social networks. Downloads go through an SSRF-safe fetcher that refuses private addresses; an image host that refuses the download (HTTP 401, 403, 429) is reported as `failed`, not worked around. Use `thumbnail` as the download size if an original host refuses.
- It does not edit images beyond optional format conversion and downscaling.

### What you get

- One dataset row per image: `title`, `creator`, `license`, `licenseLabel`, `licenseUrl`, **`attribution`**, `imageUrl`, `thumbnailUrl`, `landingUrl`, `openverseUrl`, size, `source`, tags and three yes/no flags (`attributionRequired`, `commercialUseAllowed`, `modificationAllowed`).
- With **Download** on: the files in the run's key-value store with public links (`fileUrl`), dedupe by content hash, and optionally one `images.zip` that contains `manifest.csv` and `ATTRIBUTION.txt` (license and credit line of every file).
- A `SUMMARY` record with totals and a `NOTES` record that lists every search that returned nothing or failed, and why.

### What can this Openverse image search do

- **Search several words in one run**, with up to 240 results per word. An image that appears under two searches is returned once.
- **Filter by license** (`cc0`, `pdm`, `by`, `by-sa`, `by-nc`, `by-nd`, `by-nc-sa`, `by-nc-nd`) or by the shortcut "allow commercial use" / "allow modification".
- **Filter by category** (photograph, illustration, digitized artwork), file type, shape (tall, wide, square), size class, Openverse source (for example `flickr`, `wikimedia`) and minimum width or height.
- **Attribution text** for every image, built by Openverse; if a record has none, the Actor writes the standard "title, creator, license, license URL" line itself.
- **Download** the original file or the roughly 600 px Openverse thumbnail, optionally converted to JPG, PNG or WebP and downscaled.
- **Safe with bad input:** one failing search or download never stops the run.

### Input example

```json
{
  "queries": ["sunset beach"],
  "licenses": ["cc0", "by"],
  "maxResultsPerQuery": 6,
  "download": true,
  "downloadSize": "thumbnail",
  "zip": true
}
```

### Output example

Taken from a real local run (tags shortened):

```json
{
  "query": "sunset beach",
  "position": 1,
  "id": "0e061199-9aa0-4f4a-8732-2219d0e9ee6d",
  "title": "Sunset Beach Reflection",
  "creator": "sagesolar",
  "creatorUrl": "https://www.flickr.com/photos/62356799@N06",
  "license": "by",
  "licenseVersion": "2.0",
  "licenseLabel": "CC BY 2.0",
  "licenseUrl": "https://creativecommons.org/licenses/by/2.0/",
  "attribution": "\"Sunset Beach Reflection\" by sagesolar is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.",
  "attributionRequired": true,
  "commercialUseAllowed": true,
  "modificationAllowed": true,
  "imageUrl": "https://live.staticflickr.com/7106/7847243064_2af735eecc_b.jpg",
  "thumbnailUrl": "https://api.openverse.org/v1/images/0e061199-9aa0-4f4a-8732-2219d0e9ee6d/thumb/",
  "landingUrl": "https://www.flickr.com/photos/62356799@N06/7847243064",
  "openverseUrl": "https://openverse.org/image/0e061199-9aa0-4f4a-8732-2219d0e9ee6d",
  "width": 1024,
  "height": 576,
  "source": "flickr",
  "provider": "flickr",
  "tags": ["beach", "blue", "clear"],
  "mature": false,
  "downloadStatus": "downloaded",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/18808bc0...a6aa.jpg",
  "fileSizeDownloaded": 25693,
  "fileWidth": 600,
  "fileHeight": 337,
  "fileType": "image/jpeg",
  "sha256": "18808bc062263bfc1eaf285405318953ee4e441e23c980e648f1455a1e8006aa"
}
```

Fields Openverse does not know (`filetype`, `category`, `fileSizeBytes`, sometimes `width`) are `null`.

### Input

| Field | Default | What it does |
|---|---|---|
| `queries` (required) | - | Search words, one search per line. Example: `sunset beach`. |
| `licenses` | all | Keep only these licenses. |
| `licenseType` | `all` | Shortcut: `commercial`, `modification` or `all-cc`. |
| `categories` | all | `photograph`, `illustration`, `digitized_artwork`. |
| `extensions` | all | `jpg`, `png`, `gif`, `svg` (as recorded by Openverse). |
| `aspectRatio` | any | `tall`, `wide` or `square`. |
| `size` | any | `small`, `medium` or `large`. |
| `sources` | all | Comma separated Openverse sources, for example `flickr,wikimedia`. |
| `minWidth`, `minHeight` | 0 | Drop smaller images, by the size Openverse has on record (images without one are dropped when set). |
| `includeMature` | false | Include results flagged as mature. |
| `maxResultsPerQuery` | 20 | 1 to 240. |
| `maxResults` | 100 | 1 to 2000 over all searches; also caps the cost. |
| `download` | false | Also download the files. |
| `downloadSize` | `original` | `original` file or Openverse `thumbnail` (about 600 px). |
| `convertTo`, `maxWidth`, `quality` | original, 0, 85 | Convert to JPG, PNG or WebP and downscale. |
| `maxFileSizeMb` | 25 | Larger downloads are skipped. |
| `zip`, `zipMaxMb` | false, 100 | One `images.zip` with manifest and attribution file. |
| `outputStoreName` | - | Keep the files in a named key-value store. |
| `concurrency`, `perHostDelayMs`, `timeoutSecs` | 4, 300, 60 | Download speed and politeness. |

### How to find CC0 images by keyword

1. Put your words in **Search words**, one per line.
2. In **Licenses** choose `cc0` and `pdm` (public domain).
3. Run it and open the dataset. `attributionRequired` is `false` for these images, but keep the `landingUrl` as your record of where the image came from.

### How to get the attribution text for Creative Commons images

1. Choose the licenses you accept (for example `by`, `by-sa`) or the shortcut **Allow commercial use**.
2. Run it and use the `attribution` column: title, creator, license and the license URL, ready to paste under the image or into your credits page.
3. For many images, turn on **Download** and **ZIP**: `ATTRIBUTION.txt` in the ZIP has one credit line per file.

### How to download open license images in bulk

1. Turn on **Download the image files**. Use `thumbnail` for fast, reliable 600 px previews or `original` for the full file from the source site.
2. Optionally set **Convert images to** WebP and a **Max width**.
3. Turn on **Also make one ZIP**. The link to `images.zip` is in the `SUMMARY` record.

### How much does it cost to search Openverse images

Pay per event, plus the normal Apify platform usage of the run (small):

- `result`: **$0.002** per image record returned ($2.00 per 1,000).
- `file`: **$0.0012** per downloaded file (only with Download on; duplicates, skipped and failed downloads are free).
- `megabyte`: **$0.00016** per started MB of a downloaded file beyond its first MB.

Examples:

- 1,000 image records with attribution, no download: $2.00.
- 1,000 records plus 1,000 thumbnails: about $2.00 + $1.20 = $3.20 (a thumbnail is under 1 MB, so no `megabyte` events).
- 10,000 records: $20.00. This takes at least 500 API requests, more than the 200 anonymous requests Openverse allows per day per IP, so plan several runs (or days).

Set a maximum spending limit on the run: it stops cleanly when reached.

### Use cases

- Fill a blog, newsletter or presentation with free images and credit them correctly.
- Build a dataset of openly licensed images for machine learning, with the license stored next to each file.
- Collect public domain illustrations for a design project.
- Check which images on a topic allow commercial use before you commission a design.
- Feed a content pipeline with image URLs and credit lines.

### FAQ

**Do I need an Openverse API key?**
No. It uses the anonymous API. The limits above are the anonymous ones; this Actor does not take API credentials.

**Why did my run return fewer images than I asked for?**
Openverse had fewer matches for your filters, or caps anonymous searches at 240 results, or the daily request allowance was used up. The `NOTES` record and the status message say which.

**Is every image safe to use commercially?**
No. Filter with `licenseType: commercial` (no NC licenses), keep the credit line where the license asks for it, and check the `landingUrl`. Openverse relies on the source sites' license data, which can be wrong.

**Why does a download fail?**
Some source sites refuse downloads from servers (HTTP 403 or 429) or have removed the file. The row says `failed` with the reason and is not charged as a file. Switch `downloadSize` to `thumbnail` to get the Openverse copy instead.

**Does it search audio or video?**
No, images only.

**Are results deduplicated?**
Records are deduplicated by Openverse id across your searches. Downloaded files are deduplicated by content hash (the same picture hosted twice is delivered once).

### Use with the Apify API, MCP, n8n and Make

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("<username>/openverse-image-search").call(run_input={
    "queries": ["mountain lake"],
    "licenses": ["cc0", "pdm"],
    "maxResultsPerQuery": 20,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["title"], row["licenseLabel"], row["attribution"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('<username>/openverse-image-search').call({
    queries: ['mountain lake'],
    licenseType: 'commercial',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => i.attribution));
```

The Actor works as a tool in the Apify MCP server and as an Apify node in n8n and Make: pass the same input JSON.

### Related tools

- **Download Images from URLs: Bulk Image & File Downloader** for any list of image links or web pages.
- **Batch Image Converter & Resizer: WebP, AVIF, PNG & JPEG** to convert the files you collected.
- **Image Compressor & Resizer: Compress Images in Bulk** to make them smaller.

### Data source and attribution

Image records come from [Openverse](https://openverse.org) (WordPress / Automattic), a search engine for openly licensed media. The images belong to their creators and carry the licenses shown in each row. This Actor is independent and not affiliated with or endorsed by Openverse or WordPress.

# Actor input Schema

## `queries` (type: `array`):

What to search for, one search per line. Example: sunset beach. Each search returns up to 'Max results per search' images. Openverse allows only 200 anonymous API requests per day per IP address, and one request returns 20 images.

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

Keep only these licenses. Leave empty for all. cc0 and pdm are public domain; by = CC BY (credit required); by-sa = share-alike; nc = non-commercial; nd = no derivatives. Example: cc0, by.

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

Shortcut on top of 'Licenses'. commercial = licenses that allow commercial use; modification = licenses that allow editing; all-cc = Creative Commons only (no public domain mark). all = no shortcut.

## `categories` (type: `array`):

Keep only these image categories. Leave empty for all. Not every image has a category in Openverse, so a category filter can hide many results.

## `extensions` (type: `array`):

Keep only these file types. Leave empty for all. The type is the one Openverse has on record, not checked against the file.

## `aspectRatio` (type: `string`):

Tall, wide or square images only. Leave empty for any shape.

## `size` (type: `string`):

Openverse size class: small, medium or large. Leave empty for any size. For exact pixels use min width and min height.

## `sources` (type: `string`):

Optional: only these Openverse sources, comma separated. Example: flickr,wikimedia. Source names are the ones listed at api.openverse.org/v1/images/stats/. A name that does not exist makes Openverse reject the search.

## `minWidth` (type: `integer`):

Drop images narrower than this, using the width Openverse has on record. 0 = no filter. Images without a recorded width are dropped when this is set. Example: 1200.

## `minHeight` (type: `integer`):

Drop images shorter than this, using the height Openverse has on record. 0 = no filter. Example: 800.

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

Off by default: results flagged as sensitive or mature are left out. Turn on to include them.

## `maxResultsPerQuery` (type: `integer`):

Most images returned for each search word. Openverse limits anonymous searches to their first 240 results. One API request returns 20 images.

## `maxResults` (type: `integer`):

Most images returned in the whole run, over all searches. Images beyond this are not returned and not charged.

## `download` (type: `boolean`):

Also download each image into the key-value store and add a public link (fileUrl) to the row. Charged per file on top of the result. Off: you get the records and attribution text only.

## `downloadSize` (type: `string`):

original = the image file from its own website (can be large, and some hosts refuse downloads). thumbnail = the roughly 600 px version served by Openverse itself, which is faster and more reliable.

## `convertTo` (type: `string`):

Keep the original format, or convert to JPG, PNG or WebP with Pillow. Transparency is flattened onto white for JPG. SVG stays SVG. Animations keep only the first frame.

## `maxWidth` (type: `integer`):

Shrink downloaded images wider than this, keeping the aspect ratio (never upscales). 0 = original size. Example: 1600.

## `quality` (type: `integer`):

1 to 100, used when images are converted or resized to JPG or WebP.

## `maxFileSizeMb` (type: `number`):

Downloaded files larger than this are skipped. 1 MB = 1,000,000 bytes.

## `zip` (type: `boolean`):

Also save all downloaded files in one images.zip, with manifest.csv and ATTRIBUTION.txt (license and credit line of every file). The link is in the SUMMARY record. The ZIP itself is free.

## `zipMaxMb` (type: `number`):

Files that would push the ZIP over this size stay in the key-value store but are left out of the ZIP.

## `outputStoreName` (type: `string`):

Optional key-value store name. Named stores are kept until you delete them, while a run's own store expires after your plan's retention period.

## `concurrency` (type: `integer`):

How many files are downloaded at the same time.

## `perHostDelayMs` (type: `integer`):

Minimum time between two downloads from the same website. At most 3 run at once per host.

## `timeoutSecs` (type: `integer`):

Time allowed for each API request or file download attempt. Failed requests are retried up to 3 times with backoff.

## Actor input object example

```json
{
  "queries": [
    "sunset beach"
  ],
  "licenseType": "all",
  "aspectRatio": "",
  "size": "",
  "minWidth": 0,
  "minHeight": 0,
  "includeMature": false,
  "maxResultsPerQuery": 20,
  "maxResults": 100,
  "download": false,
  "downloadSize": "original",
  "convertTo": "original",
  "maxWidth": 0,
  "quality": 85,
  "maxFileSizeMb": 25,
  "zip": false,
  "zipMaxMb": 100,
  "concurrency": 4,
  "perHostDelayMs": 300,
  "timeoutSecs": 60
}
```

# Actor output Schema

## `results` (type: `string`):

All result items of this run (the default dataset), as JSON, CSV, Excel and more.

## `records` (type: `string`):

Key-value store records: the run summary, notes on any problems, and any files.

# 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 = {
    "queries": [
        "sunset beach"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-done-right/openverse-image-search").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 = { "queries": ["sunset beach"] }

# Run the Actor and wait for it to finish
run = client.actor("data-done-right/openverse-image-search").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 '{
  "queries": [
    "sunset beach"
  ]
}' |
apify call data-done-right/openverse-image-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-done-right/openverse-image-search"
        }
    }
}
```

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/tkGl3f1280313toGq/builds/RnyzMfULYpNDOdZEX/openapi.json
