Genius Scraper avatar

Genius Scraper

Try for free

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

Go to Store
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.

You can access the Genius Scraper programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.0",
5    "x-build-id": "8AKzUdbxgsTbqtsJC"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/epctex~genius-scraper/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-epctex-genius-scraper",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/epctex~genius-scraper/runs": {
50      "post": {
51        "operationId": "runs-sync-epctex-genius-scraper",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/epctex~genius-scraper/run-sync": {
93      "post": {
94        "operationId": "run-sync-epctex-genius-scraper",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "proxy"
135        ],
136        "properties": {
137          "startUrls": {
138            "title": "Start URLs",
139            "type": "array",
140            "description": "URLs to start with. It should be list or detail URL",
141            "items": {
142              "type": "string"
143            }
144          },
145          "search": {
146            "title": "Search keyword",
147            "type": "string",
148            "description": "The keyword that you can search on Genius"
149          },
150          "searchMode": {
151            "title": "Search Mode",
152            "enum": [
153              "song",
154              "lyric"
155            ],
156            "type": "string",
157            "description": "What type of search do you want to make at Genius.",
158            "default": "song"
159          },
160          "includeComments": {
161            "title": "Include comments",
162            "type": "boolean",
163            "description": "Should comments be included in songs.",
164            "default": false
165          },
166          "maxItems": {
167            "title": "Maximum number of listing items",
168            "type": "integer",
169            "description": "Maximum number of listing items that you want as output. Default is all"
170          },
171          "endPage": {
172            "title": "List end page",
173            "type": "integer",
174            "description": "The page number that you want to end with. By default there is no end page. This is applies to all search request and startUrls individually."
175          },
176          "extendOutputFunction": {
177            "title": "Extend output function",
178            "type": "string",
179            "description": "Function that takes a JQuery handle ($) as argument and returns data that will be merged with the default output"
180          },
181          "customMapFunction": {
182            "title": "Custom map function",
183            "type": "string",
184            "description": "Function that takes each of the objects as argument and returns data that will be mapped by the function itself."
185          },
186          "proxy": {
187            "title": "Proxy configuration",
188            "type": "object",
189            "description": "Select proxies to be used by your crawler."
190          }
191        }
192      },
193      "runsResponseSchema": {
194        "type": "object",
195        "properties": {
196          "data": {
197            "type": "object",
198            "properties": {
199              "id": {
200                "type": "string"
201              },
202              "actId": {
203                "type": "string"
204              },
205              "userId": {
206                "type": "string"
207              },
208              "startedAt": {
209                "type": "string",
210                "format": "date-time",
211                "example": "2025-01-08T00:00:00.000Z"
212              },
213              "finishedAt": {
214                "type": "string",
215                "format": "date-time",
216                "example": "2025-01-08T00:00:00.000Z"
217              },
218              "status": {
219                "type": "string",
220                "example": "READY"
221              },
222              "meta": {
223                "type": "object",
224                "properties": {
225                  "origin": {
226                    "type": "string",
227                    "example": "API"
228                  },
229                  "userAgent": {
230                    "type": "string"
231                  }
232                }
233              },
234              "stats": {
235                "type": "object",
236                "properties": {
237                  "inputBodyLen": {
238                    "type": "integer",
239                    "example": 2000
240                  },
241                  "rebootCount": {
242                    "type": "integer",
243                    "example": 0
244                  },
245                  "restartCount": {
246                    "type": "integer",
247                    "example": 0
248                  },
249                  "resurrectCount": {
250                    "type": "integer",
251                    "example": 0
252                  },
253                  "computeUnits": {
254                    "type": "integer",
255                    "example": 0
256                  }
257                }
258              },
259              "options": {
260                "type": "object",
261                "properties": {
262                  "build": {
263                    "type": "string",
264                    "example": "latest"
265                  },
266                  "timeoutSecs": {
267                    "type": "integer",
268                    "example": 300
269                  },
270                  "memoryMbytes": {
271                    "type": "integer",
272                    "example": 1024
273                  },
274                  "diskMbytes": {
275                    "type": "integer",
276                    "example": 2048
277                  }
278                }
279              },
280              "buildId": {
281                "type": "string"
282              },
283              "defaultKeyValueStoreId": {
284                "type": "string"
285              },
286              "defaultDatasetId": {
287                "type": "string"
288              },
289              "defaultRequestQueueId": {
290                "type": "string"
291              },
292              "buildNumber": {
293                "type": "string",
294                "example": "1.0.0"
295              },
296              "containerUrl": {
297                "type": "string"
298              },
299              "usage": {
300                "type": "object",
301                "properties": {
302                  "ACTOR_COMPUTE_UNITS": {
303                    "type": "integer",
304                    "example": 0
305                  },
306                  "DATASET_READS": {
307                    "type": "integer",
308                    "example": 0
309                  },
310                  "DATASET_WRITES": {
311                    "type": "integer",
312                    "example": 0
313                  },
314                  "KEY_VALUE_STORE_READS": {
315                    "type": "integer",
316                    "example": 0
317                  },
318                  "KEY_VALUE_STORE_WRITES": {
319                    "type": "integer",
320                    "example": 1
321                  },
322                  "KEY_VALUE_STORE_LISTS": {
323                    "type": "integer",
324                    "example": 0
325                  },
326                  "REQUEST_QUEUE_READS": {
327                    "type": "integer",
328                    "example": 0
329                  },
330                  "REQUEST_QUEUE_WRITES": {
331                    "type": "integer",
332                    "example": 0
333                  },
334                  "DATA_TRANSFER_INTERNAL_GBYTES": {
335                    "type": "integer",
336                    "example": 0
337                  },
338                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
339                    "type": "integer",
340                    "example": 0
341                  },
342                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
343                    "type": "integer",
344                    "example": 0
345                  },
346                  "PROXY_SERPS": {
347                    "type": "integer",
348                    "example": 0
349                  }
350                }
351              },
352              "usageTotalUsd": {
353                "type": "number",
354                "example": 0.00005
355              },
356              "usageUsd": {
357                "type": "object",
358                "properties": {
359                  "ACTOR_COMPUTE_UNITS": {
360                    "type": "integer",
361                    "example": 0
362                  },
363                  "DATASET_READS": {
364                    "type": "integer",
365                    "example": 0
366                  },
367                  "DATASET_WRITES": {
368                    "type": "integer",
369                    "example": 0
370                  },
371                  "KEY_VALUE_STORE_READS": {
372                    "type": "integer",
373                    "example": 0
374                  },
375                  "KEY_VALUE_STORE_WRITES": {
376                    "type": "number",
377                    "example": 0.00005
378                  },
379                  "KEY_VALUE_STORE_LISTS": {
380                    "type": "integer",
381                    "example": 0
382                  },
383                  "REQUEST_QUEUE_READS": {
384                    "type": "integer",
385                    "example": 0
386                  },
387                  "REQUEST_QUEUE_WRITES": {
388                    "type": "integer",
389                    "example": 0
390                  },
391                  "DATA_TRANSFER_INTERNAL_GBYTES": {
392                    "type": "integer",
393                    "example": 0
394                  },
395                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
396                    "type": "integer",
397                    "example": 0
398                  },
399                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
400                    "type": "integer",
401                    "example": 0
402                  },
403                  "PROXY_SERPS": {
404                    "type": "integer",
405                    "example": 0
406                  }
407                }
408              }
409            }
410          }
411        }
412      }
413    }
414  }
415}

Genius Scraper OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Genius Scraper from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 13 monthly users

  • 6 bookmarks

  • 96% runs succeeded

  • Created in Jun 2023

  • Modified a day ago

Categories