# Genius Song Lyrics Scraper (`easyapi/song-lyrics-scraper`) Actor

Extracting music lyrics and metadata from Genius, a leading lyrics platform. Capture essential details like song titles, artist names, album information, and links to streaming services. Perfect for music blogs, developers, and data analysts looking to enrich their content and analyses. 🎶

- **URL**: https://apify.com/easyapi/song-lyrics-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Integrations, Social media
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### 🎤 Song Lyrics Scraper

Unlock the power of music lyrics and metadata with our **Song Lyrics Scraper**! This actor allows you to effortlessly extract valuable information from Genius, the leading lyrics and music knowledge platform.

#### 🌟 Key Features

- **Comprehensive Data Fields**: Our scraper captures crucial details to enhance your music database, including:
  - **Title**: The name of the song 🎵
  - **URL**: Direct link to the song's Genius page 🌐
  - **Artist**: The performer of the track 🎤
  - **Album**: The album the song belongs to 📀
  - **Album Cover**: Visual representation of the album 🖼️
  - **Release Date**: When the song was released 🗓️
  - **Spotify Link**: Stream the song on Spotify 🎧
  - **YouTube Link**: Watch the official music video on YouTube 🎥
  - **SoundCloud Link**: Listen on SoundCloud 🎵
  - **Apple Music Player**: Play on Apple Music 🍏
  - **Lyrics**: Full lyrics with structured headers for easy navigation 📜

#### 🚀 Why Choose Our Scraper?

- **User-Friendly**: Designed for ease of use, even for those new to web scraping!
- **Efficient**: Quickly gather data to enrich your music collection or create insightful analyses.
- **SEO Friendly**: Enhance your website's content with rich metadata, improving search engine visibility.
- **Regular Updates**: Stay current with changes on Genius.com, ensuring your data is accurate and relevant.

#### 📈 Use Cases

- **Music Blogs**: Enrich articles with song details and lyrics.
- **Developers**: Build applications that leverage music data.
- **Data Analysts**: Analyze trends in music releases and artist popularity.

#### Input

A full explanation of an input example in JSON.

```
{
  "query": "Bohemian Rhapsody",
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
   {
    "id": 1063,
    "title": "Bohemian Rhapsody by Queen",
    "url": "https://genius.com/Queen-bohemian-rhapsody-lyrics",
    "artist": "Queen",
    "album": "Studio Collection",
    "albumCover": "https://images.genius.com/718de9d1fbcaae9f3c9b1bf483bfa8f1.1000x1000x1.png",
    "release": "1975-10-31T00:00:00.000Z",
    "spotify": "https://open.spotify.com/track/7tFiyTwD0nx5a1eklYtX2J",
    "youtube": "http://www.youtube.com/watch?v=fJ9rUzIMcZQ",
    "soundcloud": "https://soundcloud.com/rizky-rilos/queen-bohemian-rhapsody",
    "appleMusicPlayer": "https://genius.com/songs/1063/apple_music_player",
    "lyrics": [
        {
            "type": "header",
            "url": "https://genius.com/19351006/Queen-bohemian-rhapsody/Intro",
            "text": "[Intro]"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/31961137/Queen-bohemian-rhapsody/Is-this-the-real-life-is-this-just-fantasy",
            "text": "Is this the real life? Is this just fantasy?"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/20267951/Queen-bohemian-rhapsody/Caught-in-a-landslide-no-escape-from-reality-open-your-eyes-look-up-to-the-skies-and-see",
            "text": "Caught in a landslide, no escape from reality\nOpen your eyes, look up to the skies and see"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/20268088/Queen-bohemian-rhapsody/Im-just-a-poor-boy-i-need-no-sympathy",
            "text": "I'm just a poor boy, I need no sympathy"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/32302881/Queen-bohemian-rhapsody/Because-im-easy-come-easy-go-little-high-little-low-any-way-the-wind-blows-doesnt-really-matter-to-me-to-me",
            "text": "Because I'm easy come, easy go, little high, little low\nAny way the wind blows doesn't really matter to me, to me"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/4300814/Queen-bohemian-rhapsody/Mama-just-killed-a-man-put-a-gun-against-his-head-pulled-my-trigger-now-hes-dead-mama-life-had-just-begun-but-now-ive-gone-and-thrown-it-all-away",
            "text": "Mama, just killed a man\nPut a gun against his head, pulled my trigger, now he's dead\nMama, life had just begun\nBut now I've gone and thrown it all away"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/4301685/Queen-bohemian-rhapsody/Mama-ooh-didnt-mean-to-make-you-cry-if-im-not-back-again-this-time-tomorrow-carry-on-carry-on-as-if-nothing-really-matters",
            "text": "Mama, ooh, didn't mean to make you cry\nIf I'm not back again this time tomorrow\nCarry on, carry on as if nothing really matters"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/21319582/Queen-bohemian-rhapsody/Too-late-my-time-has-come",
            "text": "Too late, my time has come"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/32302792/Queen-bohemian-rhapsody/Sends-shivers-down-my-spine-bodys-aching-all-the-time",
            "text": "Sends shivers down my spine, body's aching all the time"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/22234095/Queen-bohemian-rhapsody/Goodbye-everybody-ive-got-to-go",
            "text": "Goodbye, everybody, I've got to go"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/21319617/Queen-bohemian-rhapsody/Gotta-leave-you-all-behind-and-face-the-truth",
            "text": "Gotta leave you all behind and face the truth"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/20268205/Queen-bohemian-rhapsody/Mama-ooh-any-way-the-wind-blows",
            "text": "Mama, ooh (Any way the wind blows)"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/32302753/Queen-bohemian-rhapsody/I-dont-wanna-die-i-sometimes-wish-id-never-been-born-at-all",
            "text": "I don't wanna die\nI sometimes wish I'd never been born at all"
        },
        {
            "type": "header",
            "url": "https://genius.com/18813245/Queen-bohemian-rhapsody/Guitar-solo",
            "text": "[Guitar Solo]"
        },
        {
            "type": "header",
            "url": "https://genius.com/32303103/Queen-bohemian-rhapsody/Verse-3",
            "text": "[Verse 3]"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/20267257/Queen-bohemian-rhapsody/I-see-a-little-silhouetto-of-a-man",
            "text": "I see a little silhouetto of a man"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/459845/Queen-bohemian-rhapsody/Scaramouche-scaramouche-will-you-do-the-fandango-thunderbolt-and-lightning-very-very-frightening-me",
            "text": "Scaramouche, Scaramouche, will you do the Fandango?\nThunderbolt and lightning, very, very frightening me"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/1114490/Queen-bohemian-rhapsody/Galileo-galileo-galileo-galileo-galileo-figaro-magnifico",
            "text": "(Galileo) Galileo, (Galileo) Galileo, Galileo Figaro magnifico"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/31960923/Queen-bohemian-rhapsody/But-im-just-a-poor-boy-nobody-loves-me",
            "text": "But I'm just a poor boy, nobody loves me"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/31960989/Queen-bohemian-rhapsody/Hes-just-a-poor-boy-from-a-poor-family",
            "text": "He's just a poor boy from a poor family"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/20268670/Queen-bohemian-rhapsody/Spare-him-his-life-from-this-monstrosity",
            "text": "Spare him his life from this monstrosity"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/7458272/Queen-bohemian-rhapsody/Easy-come-easy-go-will-you-let-me-go",
            "text": "Easy come, easy go, will you let me go?"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/1114500/Queen-bohemian-rhapsody/Bismillah-no-we-will-not-let-you-go-let-him-go-bismillah-we-will-not-let-you-go-let-him-go-bismillah-we-will-not-let-you-go-let-me-go-will-not-let-you-go-let-me-go-will-not-let-you-go-never-never-never-never-let-me-go-ah-no-no-no-no-no-no-no",
            "text": "Bismillah, no, we will not let you go\n(Let him go) Bismillah, we will not let you go\n(Let him go) Bismillah, we will not let you go\n(Let me go) Will not let you go\n(Let me go) Will not let you go\n(Never, never, never, never let me go) Ah\nNo, no, no, no, no, no, no"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/2023534/Queen-bohemian-rhapsody/Oh-mamma-mia-mamma-mia-mamma-mia-let-me-go",
            "text": "(Oh, mamma mia, mamma mia) Mamma mia, let me go"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/259501/Queen-bohemian-rhapsody/Beelzebub-has-a-devil-put-aside-for-me-for-me-for-me",
            "text": "Beelzebub has a devil put aside for me, for me, for me"
        },
        {
            "type": "header",
            "url": "https://genius.com/28816593/Queen-bohemian-rhapsody/Bridge",
            "text": "[Bridge]"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/1114508/Queen-bohemian-rhapsody/So-you-think-you-can-stone-me-and-spit-in-my-eye-so-you-think-you-can-love-me-and-leave-me-to-die",
            "text": "So you think you can stone me and spit in my eye?\nSo you think you can love me and leave me to die?"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/6731622/Queen-bohemian-rhapsody/Oh-baby-cant-do-this-to-me-baby-just-gotta-get-out-just-gotta-get-right-outta-here",
            "text": "Oh, baby, can't do this to me, baby\nJust gotta get out, just gotta get right outta here"
        },
        {
            "type": "lyric",
            "url": "https://genius.com/18435112/Queen-bohemian-rhapsody/Nothing-really-matters-anyone-can-see-nothing-really-matters-nothing-really-matters-to-me-any-way-the-wind-blows",
            "text": "Nothing really matters, anyone can see\nNothing really matters\nNothing really matters to me\nAny way the wind blows"
        }
    ]
  }
]
```

# Actor input Schema

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

query text.

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

Maximum number of domains to scrape

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

Proxy settings for the actor

## Actor input object example

```json
{
  "query": "Bohemian Rhapsody",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": "Bohemian Rhapsody",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/song-lyrics-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": "Bohemian Rhapsody",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/song-lyrics-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "Bohemian Rhapsody",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call easyapi/song-lyrics-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=easyapi/song-lyrics-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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