# Openverse Images Audio Scraper (`kawsar/openverse-images-audio-scraper`) Actor

Search and scrape openly licensed images and audio from Openverse. Filter by query and license, then export clean results to JSON, CSV, or Excel.

- **URL**: https://apify.com/kawsar/openverse-images-audio-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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 Images and Audio Scraper

![Openverse Images and Audio Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/openverse-images-audio-scraper-cover.png)

Discover openly licensed images and audio from Openverse using keyword searches. Collect media titles, creator details, license information, attribution text, and media metadata in a structured dataset. Export results as JSON, CSV, or Excel for research, content discovery, and creative projects.

### What It Does

This actor searches Openverse for openly licensed images or audio based on your chosen query. Select a search mode, provide keywords, and configure the number of results to collect.

Each media record includes its title, creator, media URL, license details, and available metadata. Duplicate records are skipped, and failed requests are recorded as error rows so the run can continue.

### Modes

- **Image Search:** Find openly licensed images matching a keyword, such as `cat`.
- **Audio Search:** Find openly licensed audio matching a keyword, such as `rain`.

You can also use optional `license` and `source` filters to narrow your search results.

### Input Examples

**Image Search**

```json
{
  "mode": "images",
  "query": "cat",
  "maxItems": 50,
  "requestDelayMs": 500
}
```

**Audio Search**

```json
{
  "mode": "audio",
  "query": "rain",
  "maxItems": 20,
  "requestDelayMs": 500
}
```

### Input Parameters

| Parameter | Description |
|---|---|
| `mode` | Selects the search mode: `images` or `audio`. |
| `query` | Keyword or phrase used to find matching media. |
| `license` | Optional license filter for narrowing results. |
| `source` | Optional source filter for narrowing results. |
| `maxItems` | Maximum number of media records to collect. |
| `requestDelayMs` | Delay between requests in milliseconds. |

### Output Example

```json
{
  "itemId": "1c5442f6-6bb6-4ab7-b603-f598e7579dd2",
  "itemTitle": "Cat Fish 2",
  "indexed_on": "2020-04-24T11:47:34.004529Z",
  "foreign_landing_url": "https://www.flickr.com/photos/32426194@N00/3481540500",
  "url": "https://live.staticflickr.com/3313/3481540500_c846c62863_b.jpg",
  "creator": "admiller",
  "creator_url": "https://www.flickr.com/photos/32426194@N00",
  "license": "by",
  "license_version": "2.0",
  "license_url": "https://creativecommons.org/licenses/by/2.0/",
  "provider": "flickr",
  "source": "flickr",
  "category": null,
  "filesize": null,
  "filetype": null,
  "tags": [
    {
      "name": "cat",
      "accuracy": null,
      "unstable__provider": "flickr"
    }
  ],
  "attribution": "\"Cat Fish 2\" by admiller is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.",
  "fields_matched": ["description", "title"],
  "mature": false,
  "height": 1024,
  "width": 716,
  "thumbnail": "https://api.openverse.org/v1/images/1c5442f6-6bb6-4ab7-b603-f598e7579dd2/thumb/",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `itemId` | Unique media record identifier. |
| `itemTitle` | Title of the image or audio item. |
| `indexed_on` | Date and time the item was indexed. |
| `foreign_landing_url` | Original media page. |
| `url` | Direct media URL. |
| `creator` | Name or username of the creator. |
| `creator_url` | Creator's profile or information page. |
| `license` | License identifier. |
| `license_version` | Version of the license. |
| `license_url` | Link to the license information. |
| `provider` | Media provider. |
| `source` | Original media source. |
| `category` | Media category, when available. |
| `filesize` | File size, when available. |
| `filetype` | Media file type, when available. |
| `tags` | Associated tags and their available metadata. |
| `attribution` | Attribution text supplied for the media item. |
| `fields_matched` | Fields that matched the search query. |
| `mature` | Indicates whether the item is marked as mature content. |
| `height` | Media height, when available. |
| `width` | Media width, when available. |
| `thumbnail` | Thumbnail image URL. |
| `scrapedAt` | Date and time the record was collected. |

### Use Cases

- **Image Discovery:** Find openly licensed images for design projects, research, and creative work.
- **Audio Discovery:** Search for audio clips and sound recordings matching specific keywords.
- **Attribution Management:** Keep creator names, license details, and attribution text alongside media links.
- **Media Research:** Build searchable datasets of openly licensed images and audio.
- **Scheduled Monitoring:** Repeat searches on a schedule to review newly indexed media.

### Frequently Asked Questions

**What types of media can this actor collect?**

It supports two types of searches: images and audio.

**Can I search for specific keywords?**

Yes. Provide a keyword or phrase in the `query` input to find matching media.

**Can I filter results by license or source?**

Yes. The optional `license` and `source` inputs let you narrow the search results.

**Does the output include license and attribution information?**

Yes. Available records include license identifiers, license versions, license links, creator details, and attribution text.

**What export formats are supported?**

You can export the dataset as JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I schedule recurring searches?**

Yes. Use Apify schedules to run the actor automatically at your preferred intervals.

### Trademark Notice

Openverse and WordPress-related names, logos, and trademarks belong to their respective owners. They are mentioned only to identify the source of the collected information. This actor is an independent tool and is not affiliated with or endorsed by Openverse or WordPress.

### Is Web Scraping Legal?

This actor collects publicly accessible media listings and related metadata without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Creator names, usernames, and profile information may qualify as personal data. Handle such information in accordance with applicable privacy laws, including GDPR and CCPA where relevant.
- **Copyright and Licensing:** Media files, images, audio, and descriptions may be protected by copyright. Check each item's license and attribution requirements before using, modifying, or redistributing media.
- **Platform Terms and Rate Limits:** Respect Openverse's applicable terms, source-provider conditions, license requirements, and reasonable request limits.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional if you have questions about your intended use.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to collect. Images searches the Openverse images API. Audio searches the Openverse audio API.

## `query` (type: `string`):

Search query sent as q. Prefill uses cat for images.

## `mediaType` (type: `string`):

Optional alias for mode (images or audio). Mode wins when both are set.

## `license` (type: `string`):

Optional license filter, for example by or cc0.

## `source` (type: `string`):

Optional provider source filter, for example flickr or freesound.

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

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

User-Agent header sent with each request. Put your contact if the source asks for one.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait before each request. Anonymous Openverse traffic is rate limited.

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

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "images",
  "query": "cat",
  "mediaType": "images",
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "requestDelayMs": 500,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "query": "cat"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/openverse-images-audio-scraper").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 = { "query": "cat" }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/openverse-images-audio-scraper").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 '{
  "query": "cat"
}' |
apify call kawsar/openverse-images-audio-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/openverse-images-audio-scraper"
        }
    }
}
```

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/h7ZH3PNx0cL0sgx54/builds/HOM7hyRFYmbKcUxmN/openapi.json
