Lastex.Geo (Lastex v0.1.0)

Copy Markdown View Source

Functions for the Last.fm Geo API methods.

Countries are named using the ISO 3166-1 country name, for example "Sweden" or "United States".

Summary

Functions

Fetches the most popular artists in a country (geo.getTopArtists).

Fetches the most popular tracks in a country (geo.getTopTracks).

Functions

top_artists(country, opts \\ [])

Fetches the most popular artists in a country (geo.getTopArtists).

Returns a Lastex.Page. Supports limit and page.

Lastex.Geo.top_artists("Sweden", limit: 10)

top_tracks(country, opts \\ [])

Fetches the most popular tracks in a country (geo.getTopTracks).

Returns a Lastex.Page. Supports limit, page, and location to narrow the results to a metro area.

Lastex.Geo.top_tracks("Sweden", limit: 10)