# Openverse Audio Scraper (`dadhalfdev/openverse-audio-scraper`) Actor

Scrape openly licensed audio records from openverse.org. Filter by words, license, and source, or paste an Openverse URL.

- **URL**: https://apify.com/dadhalfdev/openverse-audio-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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 Audio Scraper

Want [Openverse](https://openverse.org/search/audio) audio records in a spreadsheet? This scraper makes it easy.

Use **structured filters** — better for AI agents — **or** paste an **`input_url`**. When `input_url` is set it overrides the filters.

Openverse searches openly licensed audio and shows the title, creator, license, source, and duration. This actor returns up to 2000 rows per run. When that listing does not answer, the actor reads Freesound, Wikimedia Commons, and Jamendo, the catalogs behind it.

### 💡 Perfect for...

- **Creators:** Find openly licensed music and sound with a credit line.
- **Producers:** Export audio by length and source.
- **Data analysts:** Slice a search by license or category.
- **🤖 AI Agents:** Power Claude, Cursor, Codex, the Hermes Agent, and OpenClaw workflows with live results.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Openverse URL, or type the same filters as the site. `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Words, license, category, source, length, and file type.
- 🌐 **Listing rows:** Title, creator, license, source, duration, and file link.

### 📦 What's inside the data?

`id`, `url`, `title`, `creator`, `license`, `source`, `category`, `duration_seconds`, `filetype`, `file_url`

### 🚀 Quick start

**Option A:** paste `https://openverse.org/search/audio?q=piano`.
**Option B:** set category to Music and `max_results`.

**Input Example (filters):**

```json
{
  "query": "piano",
  "category": "Music",
  "max_results": 100
}
```

**Input Example (URL):**

```json
{
  "input_url": "https://openverse.org/search/audio?q=piano",
  "max_results": 100
}
```

**Output Example:**

```json
{
  "id": "2c51e4eb-dbe7-468c-ba6c-d1c85a1b71ae",
  "url": "https://openverse.org/audio/2c51e4eb-dbe7-468c-ba6c-d1c85a1b71ae",
  "title": "Piano Melody",
  "creator": "benpm",
  "license": "Attribution",
  "license_version": "4.0",
  "source": "Freesound",
  "filetype": "mp3",
  "duration_seconds": 10.2,
  "bit_rate_kbps": 128,
  "filesize": 227209,
  "source_url": "https://freesound.org/people/benpm/sounds/186942",
  "file_url": "https://cdn.freesound.org/previews/186/186942_2594536-hq.mp3",
  "attribution": "\"Piano Melody\" by benpm is licensed under CC BY 4.0."
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | Audio id. |
| `url` | Page for this audio. An Openverse page when the listing answers, otherwise the page on Freesound, Wikimedia Commons, or Jamendo. |
| `title` | Title. |
| `creator` | Creator. |
| `creator_url` | Creator page. |
| `license` | License name. |
| `license_version` | License version. |
| `source` | Source, such as Freesound. |
| `category` | Audiobook, music, news, podcast, pronunciation, or sound effect when the record has one. |
| `genres` | Genres when the record has them. |
| `filetype` | File type. |
| `duration_seconds` | Duration in seconds. |
| `bit_rate_kbps` | Bit rate in kbps. |
| `filesize` | File size in bytes. |
| `thumbnail` | Thumbnail when the record has one. |
| `source_url` | Page on the source site. |
| `file_url` | Audio file. |
| `tags` | Tags. |
| `attribution` | Credit line. |

### 📋 Input reference

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Openverse audio search URL. Overrides every filter. |
| `query` | string | No | — | Search words. |
| `license` | string | No | — | Public Domain Mark, CC0, Attribution, Attribution-ShareAlike, Attribution-NoDerivs, Attribution-NonCommercial, Attribution-NonCommercial-ShareAlike, or Attribution-NonCommercial-NoDerivs. |
| `license_type` | string | No | — | Commercial use or Modify or adapt. |
| `category` | string | No | — | Audiobook, Music, News, Podcast, Pronunciation, or Sound effect. |
| `source` | string | No | — | Freesound, Jamendo, or Wikimedia Commons. |
| `extension` | string | No | — | flac, mid, mp3, oga, ogg, opus, wav, or webm. |
| `length` | string | No | — | Shortest, Short, Medium, or Long. |
| `max_results` | integer | No | `50` | How many rows to return (1–2000). |

# Actor input Schema

## `input_url` (type: `string`):

Paste an Openverse audio search URL. Overrides every filter when set.

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

Search words, the same idea as the search box.

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

Public Domain Mark, CC0, Attribution, Attribution-ShareAlike, Attribution-NoDerivs, Attribution-NonCommercial, Attribution-NonCommercial-ShareAlike, or Attribution-NonCommercial-NoDerivs.

## `license_type` (type: `string`):

Commercial use or Modify or adapt.

## `category` (type: `string`):

Audiobook, Music, News, Podcast, Pronunciation, or Sound effect.

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

Freesound, Jamendo, or Wikimedia Commons.

## `extension` (type: `string`):

flac, mid, mp3, oga, ogg, opus, wav, or webm.

## `length` (type: `string`):

Shortest, Short, Medium, or Long.

## `max_results` (type: `integer`):

How many rows to return (1-2000).

## Actor input object example

```json
{
  "max_results": 50
}
```

# Actor output Schema

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

Table view of scraped audio.

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

All scraped audio from the default dataset.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/openverse-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/openverse-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/ytOpoAIgXIqNCFUWX/builds/79hToGlrNJsMBXfJn/openapi.json
