Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter for full sized artwork while embedding playlist? #228

Open
Vrezerino opened this issue Oct 5, 2022 · 6 comments
Open

Parameter for full sized artwork while embedding playlist? #228

Vrezerino opened this issue Oct 5, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@Vrezerino
Copy link

Vrezerino commented Oct 5, 2022

Is there a parameter to get the full sized artwork when embedding a playlist? By default, a request to api.soundcloud.com/playlists/ returns artwork with 500x500 resolution.

Example with imaginary parameter "artwork_resolution":

<iframe 
 width="30%" 
 height="500" 
 scrolling="no" 
 frameborder="no"
 allow="autoplay"
 src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/1445109625&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true&artwork_resolution=3000">
</iframe>
@Vrezerino Vrezerino changed the title Parameter for full sizez artwork while embedding playlist? Parameter for full sized artwork while embedding playlist? Oct 5, 2022
@alexweinstein
Copy link

alexweinstein commented Oct 5, 2022

EDIT: Just realized @Vrezerino asked for a parameter for the iframe embed, which my comment doesn't address. My apologies. Leaving my answer up, in case it helps.


I don't believe there is a parameter for the full sized artwork. However, if you get artwork_url from the /track or /playlist endpoint, you can do a find/replace string to get the 500px version. Just replace large with t500x500.

For example:
https://i1.sndcdn.com/artworks-Tn4ZUlTHPLxQvAdU-zI54aA-large.jpg link
will return the thumbnail version.

and
https://i1.sndcdn.com/artworks-Tn4ZUlTHPLxQvAdU-zI54aA-t500x500.jpg link
will return the 500x500 version.

@Vrezerino
Copy link
Author

Vrezerino commented Oct 5, 2022

Hi,

500x500 is the default I get with this:

<iframe src="
https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/1445109625&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>

I'm trying to get the original artwork which in my case is a 3000x3000
resolution. Adding an artwork_url parameter doesn't seem to work:

<iframe src="
https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/1445109625&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true&artwork_url=
"https://i1.sndcdn.com/artworks-sOdEZjxQLU6Uw0qX-ZdNkyg-t3000x3000.jpg"></iframe>

@dpreussler
Copy link

dpreussler commented Nov 2, 2022

Try
https://i1.sndcdn.com/artworks-Tn4ZUlTHPLxQvAdU-zI54aA-original.jpg

@Vrezerino
Copy link
Author

Try https://i1.sndcdn.com/artworks-Tn4ZUlTHPLxQvAdU-zI54aA-original.jpg

And use what parameter in the embed?

@dpreussler
Copy link

Sorry I also didnt ready thoroughly. Same as Alex. Sorry about that.

There is currently no such way.
Will mark as feature request to consider in the future

@dpreussler dpreussler added the enhancement New feature or request label Nov 2, 2022
@Vrezerino
Copy link
Author

Sorry I also didnt ready thoroughly. Same as Alex. Sorry about that.

There is currently no such way. Will mark as feature request to consider in the future

Thanks👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants