Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radio4000/media-now-deno
https://github.com/radio4000/media-now-deno
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/radio4000/media-now-deno
- Owner: radio4000
- Archived: true
- Created: 2023-05-13T09:07:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-07T13:06:03.000Z (over 1 year ago)
- Last Synced: 2024-11-06T04:10:00.037Z (2 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media Now deno
This is a temporary API that runs on deno. It will probably move to https://github.com/radio4000/api at some point.
# Search YouTube videos
- doesn't require an API key (because it uses the old, but active v1 endpoint)
- just javascript `fetch` without dependenciesTry it out:
- `https://medianow.deno.dev/youtube/search?query=johnny and mary`
# Search Spotify playlists
Also doesn't require you to enter an API key. It fetches a maximum of 500 trracks.
- `https://medianow.deno.dev/spotify/playlists/:id`
## Run locally in watch mode
```
deno run --watch --allow-net --allow-read --watch main.js
```## Deploying to Deno cloud
```
deployctl project=medianow main.js --token
```The new deployment needs to be 'promoted to production', after which it'll be on medianow.deno.dev
> Docs: https://deno.com/deploy/docs/deployctl