Browse Lyrics by Artist: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0-9

API Documentation

Overview

The LYRICSnMUSIC API allows your site to legally display up to 150 characters of a songs lyrics with a link back to our copyright compliant lyric page or you can simply link back to the lyrics without displaying them on your App/Site.

URL Format

The API is based on RESTful principles. Basic URL format looks like this:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&q=Coldplay%20Clocks

Response Format

The only output format currently supported by the API is JSON. JSON-P is also supported for cross domain requests by specifying a callback parameter.

An example JSON response looks like this:

# Response headers:
Link:         <http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&page=2&q=coldplay%20clocks>; rel="next"
X-Page:       1
X-TotalPages: 2

# Response body:
[
    {
        "artist": {
            "name": "Coldplay",
            "url": "http://www.lyricsnmusic.com/coldplay"
        },
        "title": "Clocks",
        "url": "http://www.lyricsnmusic.com/coldplay/clocks-lyrics/5725306",
        "snippet": "The lights go out and I can't be saved\r\nTides that I tried to swim against\r\n...",
        "context": "\r\n\r\nConfusion that never stops\r\nThe closing walls and the ticking <em>clocks</em>",
        "viewable": true,
        "instrumental": false
    }
]

The song lyrics snippet is in "snippet" key. Additional "context" key with highlighted word surrounded by em-tag will be added when you search by "words in lyrics".

A JSON-P response has exactly the same content as JSON response, but you get pre-parsed response headers, and presented in the response body in "meta", while the results in "data":

[
    {
        "meta": {
            "status": "200",
            "Link": [
              ["http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&page=2&q=coldpay%20clocks", {rel: "next"}]
            ],
            "X-Page": "1",
            "X-TotalPages": "2",
        },
        "data": {
            "artist": {
                "name": "Coldplay",
                "url": "http://www.lyricsnmusic.com/coldplay"
            },
            "title": "Clocks",
            "url": "http://www.lyricsnmusic.com/coldplay/clocks-lyrics/5725306",
            "snippet": "The lights go out and I can't be saved\r\nTides that I tried to swim against\r\n...",
            "context": "\r\n\r\nConfusion that never stops\r\nThe closing walls and the ticking <em>clocks</em>",
            "viewable": true,
            "instrumental": false
        }
    }
]

Lyrics Search

Allows you to search song lyrics by specifying a keyword or phrase and field(s) to match against. This is currently the only API call exposed to public.

URL:      http://api.lyricsnmusic.com/songs
Method:   GET

Parameters:

api_key:  an alphanumeric string that uniquely identifies the application making an API request. 
artist:   keywords for searching by artist name (example: "Coldplay")
track:    keywords for searching by song title (example: "Clocks")
lyrics:   keywords for searching by words in lyrics (example: "Imagine all the people")
q:        keywords for searching by all fields above (example: "Coldplay Clocks")

page:     page to show (optional)
per_page: number of items per page (optional). default: 15 when searching
          by lyrics, 40 for the other fields.

callback: javascript function name to call for JSON-P format (optional)

API Key

An alphanumeric string that uniquely identifies the application making an API request. You can GENERATE API KEY here.

Example Calls

To search for lyrics by all fields:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&q=coldplay%20clocks

To search for lyrics by artist name:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&artist=coldplay

To search for lyrics by song title:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&track=clocks

To search for lyrics by artist name and song title:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&artist=coldplay&track=clocks

To search for lyrics by words in lyrics:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&lyrics=Imagine%20all%20the%20people

To search for lyrics by all fields in JSON-P format:

http://api.lyricsnmusic.com/songs?api_key=[YOUR_API_KEY]&q=coldplay%20clocks&callback=js_function