Believe it or not, this so simple, it will take you fewer than 10 seconds to add to your site. As we covered, for now, assume we're trying to embed the latest setlist in the sidebar of your site. The sidebar might look like this:
Or, if you're cutting edge, maybe like this:
Are you ready to embed the latest setlists? This is all we have to add, in between div or aside tags:
That's it. Everything should work as-is. But what's actually happening?
Part of that script is defining a function, a function we call a "callback" function, because we'll call on the data we get back. While the API is fetching the data, the callback function, is parsing it and wrapping it HTML and writing it to the browser window. Add that line to your website, insert your API key, and - boom! - the latest setlist will be on your website. Check out the API documentation for more.
Phish.net is a non-commercial project run by Phish fans and for Phish fans under the auspices of the all-volunteer, non-profit Mockingbird Foundation.
This project serves to compile, preserve, and protect encyclopedic information about Phish and their music.
The Mockingbird Foundation is a non-profit organization founded by Phish fans in 1996 to generate charitable proceeds from the Phish community.
And since we're entirely volunteer – with no office, salaries, or paid staff – administrative costs are less than 2% of revenues! So far, we've distributed over $1,000,000 to support music education for children – hundreds of grants in all 50 states, with more on the way.