Playlist data (webring app)

I’d like to set up a webring app/tool. Because oldschool.

Glitch Playlists seem like a good way to manage this.

@jennschiffer made a post about this: Making a webring app, contribute your Glitch In Bio!Making a webring app, contribute your Glitch In Bio! but the topic closed.

First question: is there a rss feed or json stream or api or data anything for Glitch Playlists?

If that data is accessible to a script, participants could include a short snippet in their page. I could build an app with landing page for a webring and which hosts the ring management script, etc.

3 Likes

You can use the API like this
https://api.glitch.com/v1/collections/by/fullUrl/projects?fullUrl=derekahmedzai/letterboxd-stuff&limit=100

Or if you know the list id (can get it by digging around in developer tools) then you can get the playlist like this

eg https://api.glitch.com/v1/collections/by/id/projects?id=177152&limit=100

3 Likes

That’s the trick, thanks!

I’ll post back when my webring script is ready.

2 Likes

I’ve completed a first rough version.

Test ring at tricky-jumpy-powder.glitch.me

2 Likes

Code and a package ready to git-cone into a glitch project is at github.com/adriencater/glitch-webring

Hi,

The API seems to be a little capricious, or I’m doing something wrong.

I have a playlist
glitch.com/@nanofiction/nanofiction-playlist

I have a script that reads the data from the API
api.glitch.com/v1/collections/by/fullUrl/projects?fullUrl=nanofiction/nanofiction-playlist

That should show up in the script on the homepage of the webring
nanofiction.glitch.me

But only the first 10 items are listing in the data from the API, and it doesn’t seem to be refreshing.

The app is boosted.

Any ideas?

https://glitch.com/@nanofiction/nanofiction-playlist

https://nanofiction.glitch.me

1 Like

SOLVED

requires making sure &limit=100 is included in the query string.

1 Like

and it does say at the end there,

"limit":10,
"orderKey":"createdAt",
"orderDirection":"ASC",
"lastOrderValue":"2024-12-20T12:09:56.906Z",
"hasMore":true,
"nextPage":"/v1/collections/by/fullUrl/projects?limit=10&orderKey=createdAt&orderDirection=ASC&lastOrderValue=2024-12-20T12%3A09%3A56.906Z&fullUrl=nanofiction/nanofiction-playlist"

so if you know where in the list you need something, you can program in the lastOrderValue to get a slice of exactly what you need

1 Like

yeah, as always I just had to ask the “stupid” question and the answer was right there :slight_smile: Rubber ducks and all that.