tgxn / lemmy-explorer

Instance and Community Explorer for Lemmy
https://lemmyverse.net/
109 stars 9 forks source link

Public API #84

Closed tconroy closed 1 year ago

tconroy commented 1 year ago

Hello! 👋 great work on Lemmy Explorer! This is really more of a question/request than an issue, but I was curious if the API is able/allowed to be used within other apps (ie as the search functionality in a lemmy client)?

tgxn commented 1 year ago

If you want you can download the .jsons from here: https://github.com/tgxn/lemmy-explorer/tree/main/frontend/public/data

Please don't hotlink them from the public site - as it's an AWS CloudFront Distribution, BW costs money.

https://github.com/tgxn/lemmy-explorer/blob/main/frontend/public/data/instance.full.json (1.2 MB) https://github.com/tgxn/lemmy-explorer/blob/main/frontend/public/data/community.full.json (10.3 MB) (the .full. ones contains a full dump, instead of the website ones which are split into chunks)

ATM, everything is statically hosted, without a internet-exposed backend. I don't really plan to have backend servers or manage any access control, so a public API (outside of the data dumps) is not on the cards.

tgxn commented 1 year ago

I'm planning on putting the static dumps somewhere other than Git, since it's a bit of a waste of repo space storing every version of the data. Maybe GitHub Releases?

I'll update the README.md when I change this though.