# Genius Song Search Scraper (`real-estate-api/genius-song-search-scraper`) Actor

Genius Song Search Scraper is a Python tool to extract song titles, artist names, album titles, lyrics URLs, and release dates from the Genius media database. It exports structured music metadata datasets into clean CSV or JSON formats for audio analytics and media research

- **URL**: https://apify.com/real-estate-api/genius-song-search-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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

### Genius Song Search Scraper — Song, Artist, and Album Discovery

![Genius Song Search Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/genius-song-search-scraper-cover.png)

Collect song, artist, album, and other search results from Genius. Search for one or more keywords, gather matching music listings, and export structured results as JSON, CSV, Excel, or other supported formats.

### Overview

This actor searches Genius for the terms you provide and collects matching results from different result categories, including top hits, songs, artists, and albums.

Each result is saved as a separate dataset record. Duplicate records are skipped using their Genius IDs, and the total collection is controlled by `maxItems`.

### Features

- Search Genius using one or multiple queries.
- Discover songs, artists, albums, and related results.
- Collect names, Genius IDs, page links, and available images.
- Capture result categories and additional metadata.
- Skip duplicate records within a run.
- Set a maximum number of results per run.
- Export results in JSON, CSV, Excel, and other supported formats.
- Schedule recurring searches through Apify.

### Collection Mode

**Multi Search:** Searches for each supplied query and collects matching results across the available result categories.

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Collection mode. Use `search`. |
| `queries` | Array | Search terms, such as artist names, song titles, or album names. |
| `maxItems` | Integer | Maximum number of unique results to collect. Up to 1,000. |
| `requestDelaySecs` | Number | Delay between search requests, in seconds. |

### Example Input

```json id="genius1"
{
  "mode": "search",
  "queries": ["drake"],
  "maxItems": 50,
  "requestDelaySecs": 1
}
```

### What Data Does This Actor Extract?

Available fields depend on the type of Genius search result.

| Field | Description |
|---|---|
| `_type` | Result category, such as artist, song, or album. |
| `api_path` | Genius resource path associated with the result. |
| `header_image_url` | Header image link, when available. |
| `geniusId` | Unique Genius identifier for the result. |
| `image_url` | Result image or artwork link, when available. |
| `index_character` | Character associated with the result's index entry. |
| `is_meme_verified` | Indicates whether the result has a meme verification status. |
| `is_verified` | Indicates whether the result is verified. |
| `links_config` | Additional link configuration data, when available. |
| `name` | Artist, song, album, or result name. |
| `slug` | Genius result slug. |
| `url` | Link to the Genius page. |
| `scraped_at` | Timestamp when the record was collected. |

### Example Output

```json id="genius2"
{
  "_type": "artist",
  "api_path": "/artists/130",
  "header_image_url": "https://images.genius.com/37f807d88f0fb2fe7502f7e220414ffc.1000x635x1.jpg",
  "geniusId": 130,
  "image_url": "https://images.genius.com/c477edf44f766ab268d601658a2b725e.1000x1000x1.jpg",
  "index_character": "d",
  "is_meme_verified": false,
  "is_verified": false,
  "links_config": null,
  "name": "Drake",
  "slug": "Drake",
  "url": "https://genius.com/artists/Drake",
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Song Research:** Find Genius results for artists, tracks, and albums.
- **Music Catalog Building:** Collect Genius IDs, names, images, and page links into structured datasets.
- **Content Planning:** Discover related songs and artists for music-related content research.
- **Artist Discovery:** Explore artist listings and related search results.
- **Dataset Management:** Export and organize search results for further analysis.
- **Recurring Research:** Schedule searches to refresh your collected music listings.

### Working with Your Dataset

After the actor finishes running, open its dataset to explore the collected results. You can:

- Export records as JSON, CSV, Excel, and other supported formats.
- Filter results by category or name.
- Identify records using their Genius IDs.
- Open Genius page links to explore individual results.
- Use image links to reference available artwork.

### FAQ

**Who is this actor for?**

It is useful for music researchers, content creators, marketers, analysts, and developers who want structured Genius search results.

**What export formats are supported?**

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

**Can I search for multiple artists or songs?**

Yes. Add multiple search terms to the `queries` array.

**Does it collect songs, artists, and albums?**

Yes. The actor collects matching results across the available search categories.

**Can I run it on a schedule?**

Yes. You can configure an Apify schedule to run the actor automatically at your preferred interval.

**What happens if a search fails?**

The actor continues processing other queries when possible. A failed search may not produce records.

**How many results can one run collect?**

You can set `maxItems` up to 1,000 unique results.

**Does it download full song lyrics?**

No. This actor collects search result information and links. It does not collect or reproduce full song lyrics.

### Disclaimer

This is an independent data collection tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Genius or its owners. Genius and related names and trademarks belong to their respective owners.

The actor collects information from publicly accessible pages. Users are responsible for ensuring that their collection and use of the data comply with applicable laws and the source's terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to scrape. Multi search queries Genius public search for songs, artists, albums, and more.

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

Search texts to look up on Genius.

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

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

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

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

User-Agent header sent with each request.

## `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": "search",
  "queries": [
    "drake"
  ],
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "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 = {
    "queries": [
        "drake"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/genius-song-search-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 = { "queries": ["drake"] }

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/genius-song-search-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 '{
  "queries": [
    "drake"
  ]
}' |
apify call real-estate-api/genius-song-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/genius-song-search-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/j8Rn6n8K8tmT9bz6Y/builds/fHbh2RhnyXDqmD2Ad/openapi.json
