TheSession-data icon indicating copy to clipboard operation
TheSession-data copied to clipboard

Other collections data

Open zmoon opened this issue 10 months ago • 1 comments

The other collections data (tunes contained in a collection and other collections a tune belongs to) seem to be only available as HTML currently. Would it be possible to add a format=json option for the endpoints and/or include a data export here?

zmoon avatar Mar 23 '25 18:03 zmoon

Good suggestion! I’ll have a think about how to provide endpoints.

adactio avatar Mar 26 '25 15:03 adactio

Sorry, I forgot to close this issue: you can append format=json (or other formats) to the HTML pages that show information on other collections that a tune is in

adactio avatar Sep 25 '25 10:09 adactio

Thanks @adactio . Just noting that this works now

https://thesession.org/tunes/1/collections?format=json

though it doesn't seem to for the collection pages

https://thesession.org/tunes/collections/1?format=json

zmoon avatar Sep 25 '25 12:09 zmoon

I've added that endpoint now.

adactio avatar Sep 26 '25 10:09 adactio

Awesome, thanks!

zmoon avatar Sep 26 '25 15:09 zmoon

Ah, what about https://thesession.org/tunes/collections?format=json? (to easily discover the available collections)

zmoon avatar Sep 26 '25 20:09 zmoon