masterofballs

joined 3 years ago
[–] [email protected] 1 points 3 years ago (5 children)

Docs are pretty bad, let me give you a start,

To get the first page of post of a community,


curl "https://lemmy.ml/api/v3/post/list?community_name=lemmy&limit=2&page=1"

You can paste that json object in a formater somewhere to get an idea of the shape of the data.

To find the other endpoints ignore the javascript docs. They are to hard to read.

Look at, the api_routes file. https://github.com/LemmyNet/lemmy/blob/main/src/api_routes.rs

Now you should be able to put two and two together to get the whole picture.

[–] [email protected] 5 points 3 years ago* (last edited 3 years ago)

Thanks nutomic that was it. Guess I needed to update the ansible repo. This is some really cool stuff. I don't think most people can truly appreciate the weight of it. I can see why facebook is in a hurry to find other markets.

[–] [email protected] 3 points 3 years ago

Yeah. Think it would have to be for me to post this comment

[–] [email protected] 3 points 3 years ago (4 children)

Doesn’t seem to work for my instance. I can see communities from lemmy.ml though

[–] [email protected] 4 points 3 years ago (7 children)

Just playing with federation and wanted to know how you could log into mastadon and follow a lemmy community.

[–] [email protected] 1 points 3 years ago

testing comment here, feel free to delete

view more: ‹ prev next ›