instagram

Search Lyrics API

Search Lyrics API

Java SearchLyricsAPI, It is use to search songs lyrics. It is java based lyrics search api.


Download Search Lyrics API From GitHub

Example 1 :Search By Site

   SearchLyrics searchLyrics = new SearchLyrics();
    SearchLyricsBean bean = new SearchLyricsBean();
    bean.setSongName("lucky one");
    bean.setTopMaxResult(1);
    bean.setSongArtist("Taylor swift");
    bean.setSites(Sites.SONGMEANINGS);

    List<Lyrics> lyrics;
    try {
        lyrics = searchLyrics.searchLyrics(bean);
        for (Lyrics lyric : lyrics) {
            System.out.println("Link :" + lyric.getLink());
            System.out.println("Site :" + lyric.getSites().getName());
            System.out.println("Text :" + lyric.getText());
        }
    } catch (SearchLyricsException e) {
        e.printStackTrace();
    }

Example 2 : Search by Service

  SearchLyrics searchLyrics = new SearchLyrics();
    LyricsServiceBean bean = new LyricsServiceBean();
    bean.setSongName("let her go");
    bean.setSongAlbum("passenger");

    List<Lyrics> lyrics;
try {
         lyrics = searchLyrics.searchLyrics(bean);
         for (Lyrics lyric : lyrics) {
         System.out.println("Text :" + lyric.getText());
         }
     } catch (SearchLyricsException e) {
      e.printStackTrace();
     }


Download It and Support this project

Download Demo Example

Share