this post was submitted on 04 Jul 2023
4 points (83.3% liked)
Lemmy Support
4652 readers
1 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For subscribed communities you have to add an
auth
parameter (that you can obtain by POST'ing{username_or_email: "your_name", password: "your_password"}
to/user/login
, then extracting thejwt
from the response) andtype_=Subscribed
. A complete request would look like that:curl "https://mander.xyz/api/v3/community/list?auth=verylongstring&type_=Subscribed" | jq
While this is the correct syntax, in reality the API is broken and isn't returning communities (either filtered or sorted first) by their listingtype == "Subscribed"