17
Lemmy API? (self.asklemmy)
submitted 1 year ago by lntl to c/asklemmy@lemmy.ml

Suppose I wanted to make a ncurses client for Lemmy. Is there an api to interect with communities/posts/voting etc?

top 7 comments
sorted by: hot top controversial new old

There is. See here. IDK how good the API documentation is (haven't checked), but it should be linked in that page.

[-] aeharding@lemmy.world 3 points 1 year ago
[-] PriorProject@lemmy.world 2 points 1 year ago

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.

[-] Stumblinbear@pawb.social 1 points 1 year ago

There's a JS client, or you can generate one from the OpenAPI spec I put together: https://github.com/Stumblinbear/lemmy-openapi

[-] Rain@lm.melonbread.dev 1 points 1 year ago
[-] Kissaki@feddit.de 1 points 1 year ago

There's an API, and generated JS bindings, and docs generated from those JS bindings.

I was planning on looking into generating generic docs or C# bindings from the server Rust code annotations that are being used for generating the JS bindings.

For now, you can try that, or orient yourself on the JS docs even if you won't use JS.

[-] jballs@sh.itjust.works 0 points 1 year ago

There's got to be for apps like Jerboa to work.

this post was submitted on 20 Jun 2023
17 points (100.0% liked)

Asklemmy

43317 readers
884 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS