User avatar
luna the doggie neofox_snug therian @lunareclipse@snug.moe
3y
foundkey will really send you the data for your own profile with the profile of every follow requester

this api is so badly designed holy shit

like, if you have 50 follow requests, you will get the copy of your profile repeated 50 times
⭐1
2
0
0
1
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@lunareclipse misskey api moment
⭐2
1
0
0
2
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@lunareclipse i once made a tool scraping your followers from the api and holy shit, first, you can do it without authenticating, which is standard in masto api for this kind of stuff, second, it's of course a fucking POST instead of GET, third, it's not paginated, well it is, but not in the way masto or anyone else in the world does it, in masto you have the nextpage thing sent with the response, in misskey, you need to get the last id of the response, check if it responds with another set of followers, otherwise break the loop, though I guess you could check if the response isn't as long as the full one
⭐4
2
0
0
4
User avatar
luna the doggie neofox_snug therian @lunareclipse@snug.moe
3y
@jeder yeah I save the last id on the list and repeat the request if the last one was as long as the limit
1
0
0
0
User avatar
luna the doggie neofox_snug therian @lunareclipse@snug.moe
3y
@jeder wait how do normal apis do pagination?
2
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
3y
@lunareclipse they just give you url of next page
⭐1
1
0
0
1

User avatar
luna the doggie neofox_snug therian @lunareclipse@snug.moe
3y
@jeder oh, that makes a lot of sense
0
0
0
0