Function searchLyrics

  • Sends a request to the lyrics search API at https://lrclib.net/api/search.

    Example Usage:

    const search = await searchLyrics({ query: "The Chain" });
    

    Parameters

    • info: Search

      An object containing search parameters:

      • query: The search term (conditional | e.g., song title or lyrics fragment).
      • track_name: The name of the track (conditional).
      • artist_name: The artist's name (optional).
      • duration: The song duration in milliseconds (optional).

    Returns Promise<FindLyricsResponse[]>

    A promise that resolves to an array of FindLyricsResponse[].