Skip to content

Get media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.

Notifications You must be signed in to change notification settings

exog3n/media-now

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

The Burning of the Library at Alexandria in 391 AD. Ambrose Dudley

API

Here is a hopefully self-explanatory list of endpoints. Try them!

The data returned will (mostly) be formatted like so:

{
	"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:

Deploying

  1. yarn deploy (or npm run deploy, if you please)
  2. now alias <paste now url here> media.now.sh (the id will be ready to paste automatically)

About

Get media information from YouTube and Vimeo videos, Spotify tracks and Discogs releases.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%