Free trial: 3 of 3 test requests left. Get your own API key with 100 free credits. No credit card.
List Lemmy posts by one user, in the order asked for.
Endpoint
/v1/lemmy/user/posts
Query
The Lemmy instance, e.g. `lemmy.world`. A URL on the instance is also accepted. Ids and counts belong to this instance.
Username, e.g. `dessalines`, or `user@lemmy.ml` to resolve a user on another instance.
Order. Only `New`, `Old` and the time-window tops; `TopAll` and `Hot` are not offered.
Page number, 1 to 100. Default: 1. An instance refuses pages past 100. Lemmy pages by number over a live order, so new or re-ranked items can shift a row onto the next page. Remove repeats by `id`.
Pass `page.nextCursor` from the previous response to get the next page. It only works with the same filters; do not send it with `page`.
Rows per page, 1 to 50. Default: 10.
const response = await fetch( "https://api.socialfetch.dev/v1/lemmy/user/posts?instance=lemmy.world&username=dessalines@lemmy.ml", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);