Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/internet4000/media-now
Get media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.
https://github.com/internet4000/media-now
api discogs-api microservice music-information-retrieval spotify-api vimeo-api youtube-api
Last synced: 6 days ago
JSON representation
Get media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.
- Host: GitHub
- URL: https://github.com/internet4000/media-now
- Owner: internet4000
- Created: 2017-01-18T11:27:49.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T02:51:55.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T15:34:22.670Z (3 months ago)
- Topics: api, discogs-api, microservice, music-information-retrieval, spotify-api, vimeo-api, youtube-api
- Language: JavaScript
- Homepage:
- Size: 417 KB
- Stars: 16
- Watchers: 7
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media Now
Get media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.
Media Now is an API that proxies and unifies different providers.
Creating new providers is straight forward ([example](https://github.com/internet4000/media-now/blob/master/src/serializer-discogs.js)).![](https://travis-ci.org/Internet4000/media-now.svg?branch=master)
![The Burning of the Library at Alexandria in 391 AD. Ambrose Dudley](http://i.imgur.com/2fvkbVem.jpg)
## API
Here is a hopefully self-explanatory list of endpoints. Try them!
- /youtube/YyI52_FEYgY
- /vimeo/121814744
- /discogs/1728315
- /spotify/3S2R0EVwBSAVMd5UMgKTL0
- /analyse/3S2R0EVwBSAVMd5UMgKTL0
- /spotify-search/Michael%20Jackson%20-%20ThrillerThe data returned will (mostly) be formatted like so:
```js
{
"provider": "youtube",
"id": "YyI52_FEYgY",
"url": "https://www.youtube.com/watch?v=YyI52_FEYgY",
"title": "I Due Nemici",
"thumbnail": "https://i.ytimg.com/vi/YyI52_FEYgY/default.jpg",
"duration": 6300 // seconds,
"status" {} // privacy info, is it embeddable etc.
}
```## Developing
You'll need node.js and yarn (or npm) installed.
* git clone this repo and cd into it
* `yarn install`
* `yarn start`Some requests require authentication. Copy the `.env-example` file to `.env` and replace the keys with your own. You can register (free) here:
- https://console.developers.google.com/apis/api/youtube/overview
- https://developer.vimeo.com/apps
- https://developer.spotify.com/my-applications/## Deploying
This used to be deployed to media.now.sh, but it no longer is. Deploying to Heroku works.