Lemmy API?
Suppose I wanted to make a ncurses client for Lemmy. Is there an api to interect with communities/posts/voting etc?
Syndicated from the fediverse. Read and engage on the original instance.
View original on lemmy.sdf.orgSuppose I wanted to make a ncurses client for Lemmy. Is there an api to interect with communities/posts/voting etc?
6 replies
There is. See here. IDK how good the API documentation is (haven't checked), but it should be linked in that page.
Absolutely!
https://join-lemmy.org/api/classes/LemmyHttp.html
There's got to be for apps like Jerboa to work.
This is the wrong community for this question, it's an open-ended discussion forum like AskReddit... not a support forum for Lemmy.
That said, check out the v18 API before you start writing a bot. It's going to change in a big way shortly.
There's a JS client, or you can generate one from the OpenAPI spec I put together: https://github.com/Stumblinbear/lemmy-openapi
https://join-lemmy.org/docs/en/contributors/04-api.html