Lastex.Tag (Lastex v0.1.0)

Copy Markdown View Source

Functions for the Last.fm Tag API methods.

Summary

Functions

Fetches metadata for a tag, including its wiki (tag.getInfo).

Fetches tags similar to the given one (tag.getSimilar).

Fetches the top albums tagged with the given tag (tag.getTopAlbums).

Fetches the top artists tagged with the given tag (tag.getTopArtists).

Fetches the most popular tags on Last.fm (tag.getTopTags).

Fetches the top tracks tagged with the given tag (tag.getTopTracks).

Fetches the weekly chart periods available for a tag (tag.getWeeklyChartList).

Functions

info(tag, opts \\ [])

Fetches metadata for a tag, including its wiki (tag.getInfo).

Pass lang: "es" for a translated wiki summary.

Lastex.Tag.info("progressive metal")

similar(tag)

Fetches tags similar to the given one (tag.getSimilar).

Lastex.Tag.similar("progressive metal")

top_albums(tag, opts \\ [])

Fetches the top albums tagged with the given tag (tag.getTopAlbums).

Returns a Lastex.Page. Supports limit and page.

Lastex.Tag.top_albums("progressive metal", limit: 10)

top_artists(tag, opts \\ [])

Fetches the top artists tagged with the given tag (tag.getTopArtists).

Returns a Lastex.Page. Supports limit and page.

Lastex.Tag.top_artists("progressive metal", limit: 10)

top_tags(opts \\ [])

Fetches the most popular tags on Last.fm (tag.getTopTags).

Returns a Lastex.Page.

Lastex.Tag.top_tags()

top_tracks(tag, opts \\ [])

Fetches the top tracks tagged with the given tag (tag.getTopTracks).

Returns a Lastex.Page. Supports limit and page.

Lastex.Tag.top_tracks("progressive metal", limit: 10)

weekly_chart_list(tag)

Fetches the weekly chart periods available for a tag (tag.getWeeklyChartList).

Each entry carries from and to Unix timestamps.

Lastex.Tag.weekly_chart_list("progressive metal")