How to return all playlists that include a specific track

Hello, I'm interested in creating a tool that returns all playlists that include a certain track. The tool would be similar to the one used in these websites: 

Except I also want to return songs that most often appear in the playlists that include the song in question. Essentially, I want to find "similar songs" to a query using user playlists.

 

Here's the trouble - I can't figure out how the sites above are searching "all users" or "all playlists". How is this possible with the Web API?

Child Item
Child Item
Child Item

Accepted answers

All comments

Child Item
Child Item