Skip Navigation

how to get local posts and posts from subscribed communities? (lemmy fetch api)

question is solved! answer: add type_ parameter at /post/list endpoint.
\ example: https://lemmy.world/api/v3/post/list?type_=Local for local posts

2 comments
  • Use the type_ parameter when calling /api/v3/post/list:

    Local: /api/v3/post/list?type_=Local

    Subscribed /api/v3/post/list?type_=Subscribed

    Local will work without auth, but you will need to pass the auth token for "Subscribed". Without auth, "Subscribed" is the same as "All".