https://github.com/timkley/lastfm-cloudflare-worker
This is a Cloudflare worker to fetch my latest scrobble from last.fm
https://github.com/timkley/lastfm-cloudflare-worker
cloudflare-worker lastfm-api
Last synced: 29 days ago
JSON representation
This is a Cloudflare worker to fetch my latest scrobble from last.fm
- Host: GitHub
- URL: https://github.com/timkley/lastfm-cloudflare-worker
- Owner: timkley
- License: mit
- Created: 2022-02-20T11:08:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T15:49:45.000Z (about 3 years ago)
- Last Synced: 2025-01-31T22:45:44.006Z (3 months ago)
- Topics: cloudflare-worker, lastfm-api
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_MIT
Awesome Lists containing this project
README
# Last scrobble of @timmotheus
This worker gets the last scrobble of [@timmotheus](https://www.last.fm/user/Timmotheus) as a JSON response using a Cloudflare Worker and the Last.FM API.
## Usage
You can fork this repo and use Cloudflares [wrangler](https://github.com/cloudflare/wrangler) CLI to publish this worker in your own account.
You'll need to add one secret:
```
wrangler secret put LASTFM_API_KEY --env production
```You can create an App and get this key by visiting the [API applications page](https://www.last.fm/api/accounts).