All answers

What happens with a private instance or a host that is not Lemmy?

HTTP 200 means the request finished. Lists and lookups against a private instance return lookupStatus: private with a short reason, while the instance route still returns the site object when the host has one. A host that is up but is not a Lemmy instance returns lookupStatus: not_compatible, a host name that does not resolve returns lookupStatus: not_found with reason.code: host_not_found, and a missing post, comment, community or user returns lookupStatus: not_found. Every HTTP 200 answer, including private and not_compatible, is a completed request and is charged the route credits. Data behind a login is never returned.

Read more

This answer comes from Lemmy data API, which covers the full detail, endpoints and pricing in credits.

Keep exploring