---
title: "Genius API: Songs, Artists and Charts as JSON | Perceptlayer"
description: "Get Genius song metadata as JSON: release date, album, artist IDs, stats.pageviews and Spotify and Apple Music IDs from one song call, 1 credit each."
url: https://perceptlayer.com/blog/genius-api-json
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Genius API: Songs, Artists and Charts as JSON

24 Nov 2026 Perceptlayer 8 min read

To get Genius song data as JSON, call `GET /v1/genius/song` with a song `id`: the recorded call for "HUMBLE." returned its title, artist, release date, album, `stats.pageviews`, annotation counts and IDs for Spotify and Apple Music, for 1 credit. The Genius API on Perceptlayer has 26 endpoints, all at 1 credit a call, covering songs, artists, albums, charts and annotations. This guide follows the metadata path: song, album, artist and chart, with the requests, the recorded responses, a Python chart tracker and the cost.

## Key takeaways

-   The Genius API on Perceptlayer has 26 `GET` endpoints, all standard tier, and every one costs 1 credit per successful call.
-   `GET /v1/genius/song?id=3039923` returned `album.id` 337082 and an artist `id` 1421, and the recorded `album-tracks` and `artist-songs` calls use those same IDs.
-   `GET /v1/genius/chart` takes optional `type`, `chart_genre`, `time_period`, `page` and `per_page`, and returns `chart_items` with `stats.pageviews` and `stats.hot` per song.
-   List endpoints such as `artist-songs` return `next_page` (2 in the recording) and take a `page` parameter; the names match.
-   A daily snapshot of the song chart in six genres is 6 × 30 days × 1 credit = 180 credits a month, inside the 100 free credits for the first 16 days.

## What does the Genius API on Perceptlayer cover?

The Genius API on Perceptlayer has 26 endpoints that return Genius data as JSON: songs, artists, albums, charts, search, annotations and videos. All are `GET` requests, all are standard tier, so a new key can call them straight away, and each costs 1 credit per successful call. Most take a numeric `id`; a few take a search string `q`, a site `path` or a full `url`.

| Group | Endpoints | Required input |
| --- | --- | --- |
| Songs | `song`, `song-contributors`, `song-recommendations`, `song-page` | `id` (or `path` for `song-page`) |
| Artists | `artist`, `artist-songs`, `artist-albums`, `artist-leaderboard`, `artist-autocomplete` | `id` (or `q` for autocomplete) |
| Albums | `album`, `album-tracks`, `album-leaderboard`, `album-page`, `album-autocomplete` | `id` (or `path`, `q`) |
| Discovery | `search`, `chart`, `chart-state`, `hot`, `lookup`, `videos` | `q`, none, `model` and `id`, none, `url`, none |
| Annotations | `annotation`, `annotation-edits`, `annotation-versions`, `referent`, `referents`, `referents-multi` | `id`, `song_id` or `ids` |

The data is collected from publicly available sources and returned as found at the time of the call. These are Perceptlayer endpoints; this guide makes no claims about Genius's own developer API or its terms, so compare them yourself if that matters for your project. It also sticks to song and artist metadata and quotes no lyrics. The [Genius API page](https://perceptlayer.com/apis/genius) lists all 26 endpoints and has a playground.

## How do you get one song's metadata?

Send a `GET` request to `https://api.perceptlayer.com/v1/genius/song` with the song's numeric `id` and your key in the `X-API-Key` header. The endpoint also lists optional `q`, `sort`, `page` and `per_page`, but the recorded call uses `id` alone:

```bash
curl "https://api.perceptlayer.com/v1/genius/song?id=3039923" \
  -H "X-API-Key: $API_KEY"
```

Keys start with `sk_live_`. Where you can't set a header, the key can go in the `api_key` query parameter; the [authentication docs](https://docs.perceptlayer.com/authentication) cover both. Successful responses carry `X-Credits-Used` and `X-Credits-Remaining`.

### What does the song response contain?

The response wraps one `song` object under `data`. It holds identity fields, release dates in three formats, counts of annotations and contributors, page views, links to other services, and nested `album` and artist objects. This is the recorded response, trimmed to the metadata a catalogue job reads:

```json
{
  "success": true,
  "data": {
    "song": {
      "annotation_count": 21,
      "apple_music_id": "1223592498",
      "artist_names": "Kendrick Lamar",
      …
      "explicit": true,
      "full_title": "HUMBLE. by Kendrick Lamar",
      …
      "id": 3039923,
      "instrumental": false,
      "language": "en",
      …
      "path": "/Kendrick-lamar-humble-lyrics",
      …
      "pyongs_count": 1211,
      …
      "release_date": "2017-03-30",
      …
      "spotify_uuid": "3GnLo84IkdSWCPYt6tnLll",
      "stats": {
        "accepted_annotations": 19,
        "contributors": 1067,
        …
        "hot": false,
        "pageviews": 12368628
      },
      "title": "HUMBLE.",
      …
      "youtube_url": "https://www.youtube.com/watch?v=tvTRZJ-4EyI",
      …
      "album": {
        "api_path": "/albums/337082",
        …
        "id": 337082,
        "name": "DAMN.",
        …
        "artist": {
          "api_path": "/artists/1421",
          …
          "id": 1421,
          …
          "name": "Kendrick Lamar",
          …
        },
        …
      },
      …
    }
  },
  …
}
```

| Field | What a catalogue job does with it |
| --- | --- |
| `id`, `title`, `artist_names` | Key and labels |
| `release_date`, `language`, `explicit`, `instrumental` | Filters and grouping |
| `spotify_uuid`, `apple_music_id`, `youtube_url` | Joins to other music datasets |
| `stats.pageviews`, `stats.contributors`, `annotation_count`, `pyongs_count` | Interest and activity figures to track over time |
| `album.id`, `album.artist.id` | IDs for the album and artist endpoints |

The recording is the first 300 lines of a longer response, so fields past that point aren't shown here. Treat the cross-service IDs as optional fields and check for them before a join.

## How do you get from a song to its album and artist?

The song response gives you the IDs, and the recordings show them working. `album.id` is 337082, and the recorded `album` and `album-tracks` calls use `id=337082`. The nested artist `id` is 1421, and the recorded `artist`, `artist-songs`, `artist-albums` and `videos` calls use 1421 ( `videos` as `artist_id`). The song's `id`, 3039923, is the one the recorded `chart-state` call passes with `model=songs`.

```bash
curl "https://api.perceptlayer.com/v1/genius/album-tracks?id=337082" \
  -H "X-API-Key: $API_KEY"

curl "https://api.perceptlayer.com/v1/genius/artist-songs?id=1421" \
  -H "X-API-Key: $API_KEY"
```

`album-tracks` returns a `tracks` array; each track has `disc_number`, `disc_track_number`, `number` and a nested `song` object with fields such as `id`, `full_title`, `annotation_count` and `pyongs_count`. `artist-songs` returns `songs` plus `next_page`, which was 2 in the recording. Both endpoints take `page`, `per_page` and a `sort` of `popularity`, `title` or `release_date`. The [album tracks endpoint page](https://perceptlayer.com/apis/genius/album-tracks) has the full recording.

### What does the artist endpoint return?

`GET /v1/genius/artist?id=1421` returns one `artist` object with `name`, `alternate_names`, `slug`, `url`, `is_verified`, `followers_count`, `iq`, a `social_links` object with profile links on music and social services, and a long description. Use `social_links` to join an artist to other catalogues. The description is biographical prose, so store it only if your product needs it.

## Which parameters do the discovery endpoints take?

The discovery endpoints find songs without knowing an ID. `chart` takes three optional filters with fixed values, `search` takes a query and a result type, and `artist-autocomplete` and `album-autocomplete` take a partial name. The table lists their documented constraints. Nothing else is documented, including defaults and page sizes, so try values in the playground first.

| Endpoint | Parameter | Type | Required | Documented constraint |
| --- | --- | --- | --- | --- |
| `chart` | `type` | string | no | One of `songs`, `albums`, `artists`, `referents` |
| `chart` | `chart_genre` | string | no | One of `all`, `pop`, `rap`, `rock`, `country`, `electronic` |
| `chart` | `time_period` | string | no | One of `all_time`, `day`, `week`, `month` |
| `chart`, `search`, `hot` | `page`, `per_page` | integer | no | None documented |
| `search` | `q` | string | yes | Up to 200 characters |
| `search` | `type` | string | no | One of `song`, `lyric`, `artist`, `album`, `all` |
| `artist-autocomplete` | `q` | string | yes | Up to 200 characters |
| `chart-state` | `model`, `id` | string, integer | yes | `model` one of `songs`, `albums`, `artists`, `referents` |
| `lookup` | `url` | string | yes | Up to 2,048 characters |

The recorded `search` for `q=humble` returned `sections` of `hits`, each with `type`, `lyric_match`, `matched_words`, `nb_exact_words` and `nb_typos`, and `next_page: 2`; the hit `result` objects are cut in the recording. The recorded `artist-autocomplete` for `q=kendr` returned `artists` with `id`, `name` and `match_metadata.exact_match`, which is how you pick the right ID from a partial name.

## What does the chart response contain?

The recorded `chart` call, sent with no parameters, returned `chart_items`, each with a `type` of `song` and an `item` holding the same short song fields as other lists, plus `stats.concurrents`, `stats.hot` and `stats.pageviews`. This is the recorded response, trimmed to the first two items' chart fields:

```json
{
  "success": true,
  "data": {
    "chart_items": [
      {
        "_type": "chart_item",
        "type": "song",
        "item": {
          …
          "full_title": "FIRESTARTER (League of Legends) by SB19",
          …
          "id": 14583870,
          …
          "primary_artist_names": "SB19",
          …
          "stats": {
            "unreviewed_annotations": 4,
            "concurrents": 2,
            "hot": false,
            "pageviews": 136736
          },
          …
        }
      },
      {
        "_type": "chart_item",
        "type": "song",
        "item": {
          …
          "id": 14109835,
          …
          "stats": {
            "unreviewed_annotations": 14,
            "concurrents": 101,
            "hot": true,
            "pageviews": 286490
          },
          …
        }
      }
    ]
  },
  …
}
```

The chart response carries no explicit rank field in the recording, so record each item's position in `chart_items` yourself. `stats.hot` was `false` for the first item and `true` for the second, so don't read it as a proxy for position.

## How do you track the Genius charts in Python?

A chart tracker takes a daily snapshot of one chart per genre and appends one row per song: the date, the genre, the position in the array, the song `id`, title, artist names and the stats. Over weeks, that gives you chart history per song and per genre. The script below uses `requests` and `csv`, reads only fields in the recorded response, and waits on 429 and 503 using `Retry-After`.

```python
import csv
import datetime
import os
import time

import requests

API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/genius/chart"
GENRES = ["all", "pop", "rap", "rock", "country", "electronic"]

def chart(genre, attempts=3):
    params = {"type": "songs", "chart_genre": genre, "time_period": "day"}
    for _ in range(attempts):
        r = requests.get(URL, params=params, headers={"X-API-Key": API_KEY}, timeout=60)
        if r.status_code in (429, 503):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r.json()["data"]
    raise RuntimeError(f"gave up on {genre}")

today = datetime.date.today().isoformat()
with open("genius-charts.csv", "a", newline="") as f:
    out = csv.writer(f)
    for genre in GENRES:
        items = chart(genre).get("chart_items", [])
        for position, entry in enumerate(items, start=1):
            song = entry.get("item", {})
            stats = song.get("stats", {})
            out.writerow([
                today, genre, position, song.get("id"), song.get("title"),
                song.get("primary_artist_names"), stats.get("pageviews"),
                stats.get("concurrents"), stats.get("hot"),
            ])
        time.sleep(1)
```

Only the no-parameter chart call is recorded, so run one genre in the playground and check the shape before you schedule all six. To enrich a row, pass the stored song `id` to the song endpoint for its release date and cross-service IDs, at 1 more credit per song.

### What should the job do with errors?

Every error returns an HTTP status and a JSON body with `code`, `message` and `request_id`, and costs nothing. Retry `rate_limited` (429) and `temporarily_unavailable` (503) after the `Retry-After` seconds. Treat `not_found` (404) as an ID to check and `invalid_parameters` (422) as a bad filter value. Requests have no idempotency key, so a client timeout can hide a billed call. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

## What does Genius data cost?

Every successful call to any of the 26 endpoints costs 1 credit, and failed calls cost nothing. A chart snapshot is 1 credit per chart, whatever it returns. Song metadata is 1 credit per song; list endpoints such as `artist-songs` and `album-tracks` return many songs per call, so walking an artist's catalogue costs 1 credit per page.

| Plan | Arithmetic | Credits a month |
| --- | --- | --- |
| Song chart, 6 genres daily | 6 × 30 days × 1 credit | 180 |
| 6 genres × 4 chart types daily | 24 × 30 days × 1 credit | 720 |
| 2,000 songs refreshed weekly | 2,000 × 4 weeks × 1 credit | 8,000 |
| 1,500 songs refreshed daily | 1,500 × 30 days × 1 credit | 45,000 |

The 100 free credits on signup cover the six-genre chart for 16 days. The middle two plans fit the Starter pack's 10,000 credits, and the last fits the Build pack's 50,000. Purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how calls are debited.

To try it, run `id=3039923` on the song endpoint in the playground on the [Genius API page](https://perceptlayer.com/apis/genius), then [get a free API key](https://perceptlayer.com/signup). Other media sources are on the [apps and media APIs](https://perceptlayer.com/verticals/apps) page; the [Discogs API guide](https://perceptlayer.com/blog/discogs-api-json) covers release and marketplace data, and more guides are in [API guides](https://perceptlayer.com/blog/category/api-guides).

## APIs in this post

-   [Genius **1 credit per call** · 26 endpoints](https://perceptlayer.com/apis/genius)

## Frequently asked questions

### Is this the official Genius API?

No. These are Perceptlayer endpoints that return public Genius data, collected from publicly available sources and returned as found at the time of the call. This guide makes no claims about Genius's own developer API or its terms; compare them yourself, and read Genius's terms before you use the data commercially.

### Does the Genius API return lyrics?

This guide doesn't use lyric text and quotes none. The song endpoint returns metadata such as `lyrics_state` and `path`, and the catalogue also has `song-page`, `lookup` and a `search` type of `lyric`. If your project touches lyric text, check the rights you need before storing or showing it; song and artist metadata covers most catalogue and chart jobs.

### How do I find a song's Genius ID?

Search with `GET /v1/genius/search` and a `q`, or use `artist-autocomplete` to find an artist `id` and then list its songs with `artist-songs`. Every list item carries the song `id`. In the recordings, the artist ID 1421 from the song response is the one the `artist-songs` call uses.

### How many credits does a Genius call cost?

Each successful call to any of the 26 endpoints costs 1 credit; a failed call costs nothing and returns `X-Credits-Used: 0`. Paged lists cost 1 credit per page. The 100 free credits on signup cover 100 calls, and purchased credits come in packs starting at 10,000 credits that last 12 months.

### How fast can I call the Genius endpoints?

Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second, 60 a minute, so a six-genre chart snapshot takes a few seconds. Paying accounts run at least 5 requests a second, 300 a minute, depending on the pack. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the rate each pack includes.

genius music data song metadata charts python

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 23 Nov 2026 Perceptlayer 8 min read
    
    ## [SoundCloud API: Tracks and Playlists as JSON](https://perceptlayer.com/blog/soundcloud-api-json)
    
    Search SoundCloud tracks as JSON with genre, tag\_list, playback\_count and likes\_count per track. The recorded "night drive" search reported 63,047 results.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 11 Nov 2026 Perceptlayer 7 min read
    
    ## [Spotify Scraper or API: What You Get](https://perceptlayer.com/blog/spotify-scraper-vs-api)
    
    A Spotify scraper vs 18 Spotify endpoints: playlist-tracks at 1–10 credits, charts at 1–10, top tracks at 1, and how to budget a playlist and chart tracker.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Oct 2026 Updated 12 Nov 2026 Perceptlayer 8 min read
    
    ## [Spotify API: Official Web API vs Public Music Data](https://perceptlayer.com/blog/spotify-api-public-music-data)
    
    The Spotify Web API needs an OAuth app and limits new apps; 18 public-data endpoints cover artists, top tracks, playlists and charts, most at 1 credit a call.
