I did: curl https://lemmy.blahaj.zone/api/v3/community/list
I got 4 communities and “egg_irl” wasn’t there…? why it is on !egg_irl? I’m confused and the lemmy api docs aren’t beginner friendly… ahhhh And I know the most of you know how to code.
I just looked at the Rust code from https://github.com/LemmyNet/lemmy/blob/main/crates/api_common/src/community.rs
and it looks like you need to give it params to get what you need, i.e.
curl https://lemmy.blahaj.zone/api/v3/community/list?type_=Local\&sort=Active\&limit=50 | jq
Returns the top 50 local communities sorted by Active
Finding the docs for the API end points is a pain in the ass. Best I found is this but it seems to be version 1 of the API.
Looking at the communities/list end point I the request can have the following arguments.
{ op: "ListCommunities", data: { sort: String, page: Option<i64>, limit: Option<i64>, auth: Option<String> } }
Looks like there are multiple pages you probably only got page 1.Try:
curl https://lemmy.blahaj.zone/api/v3/community/list?page=2