-
Notifications
You must be signed in to change notification settings - Fork 22
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
[info] create a csv of all song of a user set as public? #6
Comments
Would be interesting to know currently it looks like it just dumps all the data directly into their HTML, for example querying "https://suno.com/profile/liltingafrobeats036" gives us this in the HTML reply: BUT! There seems to be another API, if you hit the buttons for sorting on the page we get: https://studio-api.suno.ai/api/profiles/liltingafrobeats036?page=1&playlists_sort_by=upvote_count&clips_sort_by=created_at Would that help you? It should contain all the necessary info of a user's songs profile, like profile, name, handle, no. of songs, clips and even the playlists, for example SirBitesAlot: https://studio-api.suno.ai/api/profiles/sirbitesalot?page=1&playlists_sort_by=upvote_count&clips_sort_by=created_at Writing a wrapper for this should be fairly trivial as it seems to contain most of the Clip data this API already uses for the "api/feed" endpoint anyways... So, technically, yes, it is possible to create a csv file with the data, but there is no api function for it yet, implementing one would be rather easy given the data above. |
thanks i'm not a code but i'll try to play around that, i would like to dump at least some info of my profile in a csv and update it mainly name and url and possibly only for "public" songs. (not for trash) |
ok then i was able i'll post there just for any one that could be interested:
|
Hello, great that you managed to get it to work! :-) |
Thanks for sharing 🤝 |
Pu play around I created a containerized app to Monitor my songs Now the question is: is there a way to monitor the trending songs of the homepage? |
in fact i have found this https://studio-api.suno.ai/api/trending/ |
Even better, thanks for looping this info back. |
Ssems that trending list url I provided is not properly updated and can create discrepancies the play list you gave me may be is more precise will try to check against this |
do you guys know if it's possible to look at a user profile and find followers? i want to extract data of new follower name in a week?? |
ok got it: https://studio-api.suno.ai/api/profiles/followers?page=1 but it says not authorized, how can i be authorized? cookie? token?? any idea? |
Not worried about hot to get them but how to authenticate and how to integrate authentication into the script. |
Can you post without sensible data I text format? I'm not using this Suno library in fact up to now since operation I'm doing are not supported by it |
I'm not a real Coder so I have doubts 😂 but I have done a lot maybe I'll post a video of what I'm doing. |
I'll try so then I have to authenticate with your library api and use it Un the script correct? |
Another question why if I open https://studio-api.suno.ai/api/profiles/followers?page=1 From a browser where I'm already authenticated to suno in got: {"detail": "Unauthorized"} Shouldn't be able to use it? |
No, because the browser sends an AJAX request in the website (basically it opens the URL with other things in the header) - you can see that by pressing F12 while being on the Suno page and if you click on the Network tab (and then go to "Followers") you should see the /followers?page=1 request, if you go to "Request headers" you see there is a Auth bearer + alot of data, that is basically what is being sent everytime you click on that, and that is what your browser doesn't send if you just click on that link - it's done via javascript on the suno.com page :-)
Either that, or roll your own login + the 3 requests, basically, the important thing is: you need the JWT token, and with that token you can access the followers API page |
i have to integrate your api into my script correct? can't do it in different way correct? |
No you don't, those are regular requests. calls, I gave you the generic way of doing it, you can use the library, then you do not have to do it per requests (just use Suno (...) as I wrote a couple of posts above). |
i can use the library too but not sure if it is already covering trending list, or follower... just that |
anyway if you are so kind to draft me some sort of code for extract follower with auth i will be really glad |
So, the stripped down version is here: https://gist.github.com/kuhnchris/443c5e69da2dd327a0b74c8f18ce0770 |
thank you su much integrated the code perfectly! :) and i'ts working |
they just changed trending list here is the new trending data structure: |
Yeah i noticed, they also added some search filters (like by language, weekly, monthly, all time, etc.) so we'll probabbly have to check how to refactor it |
i have no time for now going in holiday tomorrow will see in 2 weeks i suppose, old trending playlist is still available and working and updated |
Alright, enjoy your holidays! :-) |
can you share your suno or discord nick so i can follow :) don't want to chat here :) |
did you figure out something on the new tranding? |
do you know guys how to check the status of song that can be mine or from other via command? i'm able to set or unset with this command: with a post command url = f"https://studio-api.prod.suno.com/api/gen/{song_id}/update_reaction_type/"
|
do you know guys how to check the status of like of a song that can be mine or from other via command? i'm able to set or unset like with this command: with a post command url = f"https://studio-api.prod.suno.com/api/gen/{song_id}/update_reaction_type/"
but unable to check before what is the status |
As already talked on discord, we need to grab the data from the RSC (react server component), which we then can parse, it's a bit of a hacky way but given the Repo we are in right now, it would be something like:
And making sure that the
|
is it possible to create and csv file with all song created and present in a user profile with these api?
The text was updated successfully, but these errors were encountered: