Skip to content

stevendiaz/whosampled-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whosampled-api

Initial thoughts

An API for fetching songs that other songs have sampled. I want to use a fresh stack so I can learn new things. As of the time of this post, I think I'm going with Ruby & Sinatra for the framework, Nokogiri for the HTML parsing, and some noSQL database for the caching.

Songs can both be sampled in other songs and have samples. Ideally, this API would have endpoints for both at once or just one of the two. The response would look something like this

{
  song: "Father Stretch My Hands Pt. 1",
  artists: ["Kanye West"],
  year: 2016,
  contains_samples: [
    {
      song: "Father I Stretch My Hands",
      artists: [
        "Pastor T. L. Barrett"
      ]
      year: 1976
    },
    {
      song: "Jumpman",
      artists: [ 
        "Drake", 
        "Future"
      ],
      year: 2015
    }
  ]
  was_sampled: []
}

About

Ruby CLI for searching whosampled.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published