1
submitted 2 months ago* (last edited 2 months ago) by okelote360@lemmy.world to c/lemmyapps@lemmy.world

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

top 1 comments
sorted by: hot top controversial new old
[-] ptz@dubvee.org 0 points 2 months ago* (last edited 2 months 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".

this post was submitted on 02 Feb 2025
1 points (100.0% liked)

Lemmy Apps

4992 readers
5 users here now

A home for discussion of Lemmy apps and tools for all platforms.

RULES:


An extensive list of Lemmy apps is available here:

LemmyApps.com

or lemmyapps.netlify.app


Visit our partner Communities!

Lemmy Plugins and Userscripts is a great place to enhance the Lemmy browsing experience. !plugins@sh.itjust.works

Lemmy Integrations is a community about all integrations with the lemmy API. Bots, Scripts, New Apps, etc. !lemmy_integrations@lemmy.dbzer0.com

Lemmy Bots and Tools is a place to discuss and show off bots, tools, front ends, etc. you’re making that relate to lemmy. !lemmy_dev@programming.dev

Lemmy App Development is a place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform. !lemmydev@lemm.ee

founded 2 years ago
MODERATORS