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

  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    8 hours ago

    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”.