Genius Scraper avatar
Genius Scraper
Try for free

3 days trial then $5.00/month - No credit card required now

View all Actors
Genius Scraper

Genius Scraper

epctex/genius-scraper
Try for free

3 days trial then $5.00/month - No credit card required now

The Genius.com scraper extracts songs and lyrics from the platform. It fetches details from song, album, artist pages, supports tag-based retrieval, searches, and includes comments. Simplify accessing and analyzing music content from Genius.com.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "startUrls": [
8    "https://genius.com/Fifty-fifty-cupid-twin-version-lyrics",
9    "https://genius.com/albums/Fifty-fifty/The-beginning-cupid",
10    "https://genius.com/artists/Drake",
11    "https://genius.com/tags/pop",
12    "https://genius.com/search?q=tiktok"
13  ],
14  "search": "rap",
15  "searchMode": "song",
16  "maxItems": 20,
17  "endPage": 1,
18  "extendOutputFunction": "($) => { return {} }",
19  "customMapFunction": "(object) => { return {...object} }",
20  "proxy": {
21    "useApifyProxy": true
22  }
23}
24EOF
25
26# Run the Actor using an HTTP API
27# See the full API reference at https://docs.apify.com/api/v2
28curl "https://api.apify.com/v2/acts/epctex~genius-scraper/runs?token=$API_TOKEN" \
29  -X POST \
30  -d @input.json \
31  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 4 monthly users
  • 100.0% runs succeeded
  • 0.0 days response time
  • Created in Jun 2023
  • Modified about 4 hours ago