elixirfm v1.0.1 Elixirfm.Tag

Functions for Last.fm Tags endpoints

Link to this section Summary

Functions

Get the metadata for a tag

Search for similar tags. Returns tags ranked by similarity, based on listening data.

Get the top albums tagged by this tag, ordered by tag count.

Get the top artists tagged by this tag, ordered by tag count.

Fetches the top global tags on Last.fm, sorted by popularity (number of times used)

Get the top tracks tagged by this tag, ordered by tag count.

Get a list of available charts for this tag, expressed as date ranges which can be sent to the chart services.

Link to this section Types

Specs

tag_opts() :: [page: non_neg_integer(), limit: non_neg_integer()]

Link to this section Functions

Link to this function

info(query, args \\ [lang: "eng"])

Specs

info(String.t(), [{:lang, String.t()}]) :: Elixirfm.response()

Get the metadata for a tag

Specs

similar(String.t()) :: Elixirfm.response()

Search for similar tags. Returns tags ranked by similarity, based on listening data.

Link to this function

top_albums(query, args \\ [page: 1, limit: 15])

Specs

top_albums(String.t(), tag_opts()) :: Elixirfm.response()

Get the top albums tagged by this tag, ordered by tag count.

Link to this function

top_artists(query, args \\ [page: 1, limit: 15])

Specs

top_artists(String.t(), tag_opts()) :: Elixirfm.response()

Get the top artists tagged by this tag, ordered by tag count.

Fetches the top global tags on Last.fm, sorted by popularity (number of times used)

Link to this function

top_tracks(query, args \\ [page: 1, limit: 50])

Specs

top_tracks(String.t(), tag_opts()) :: Elixirfm.response()

Get the top tracks tagged by this tag, ordered by tag count.

Link to this function

weekly_chart(query)

Specs

weekly_chart(String.t()) :: Elixirfm.response()

Get a list of available charts for this tag, expressed as date ranges which can be sent to the chart services.