Lemmy API
Returns Lemmy communities, posts, comments and server feeds with counts and sort options.
View as Markdown| GET | /lemmy/community | A community by its name, name@server or community URL, with its counts. |
| GET | /lemmy/communities | Communities a server knows, or only its own, in one sort order, 20 per page. |
| GET | /lemmy/posts | Posts of a community in one sort order, 20 per page. |
| GET | /lemmy/feed | Posts across a server: all communities it knows, or only its own, in one sort order, 20 per page. |
| GET | /lemmy/post | A post by its id or URL, with its top comments. |
| GET | /lemmy/comments | Recent comments on a server, or in one community, in one sort order, 20 per page. |
| GET | /lemmy/comment | One comment by its id, or comment URL, with the post it belongs to. |
| GET | /lemmy/user | Profile and post and comment counts of one account on a server. |
| GET | /lemmy/userPosts | Posts one Lemmy account has written on a server, in one sort order, 20 per page. |
| GET | /lemmy/userComments | Comments one Lemmy account has written on a server, in one sort order, 20 per page. |
| GET | /lemmy/postComments | The comments of one post, in one sort order, 20 per page, flat with each reply's parent id. |
| GET | /lemmy/instance | A Lemmy server's own profile: its name and description, software version, user, post, comment and community counts, and its admins. |
| GET | /lemmy/searchPosts | Posts that match a search, 20 per page. |
| GET | /lemmy/searchCommunities | Communities that match a search, 20 per page. |
community
/v1/lemmy/communityA community by its name, name@server or community URL, with its counts.
Parameters
communitystring required | Community name such as asklemmy, name@server, or a URL such as https://lemmy.world/c/asklemmy. e.g. technology |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
actorId | string |
banner | string |
comments | integer (int64) |
createdAt | string |
description | string |
icon | string |
id | string |
name | string |
nsfw | boolean |
posts | integer (int64) |
subscribers | integer (int64) |
title | string |
usersActiveMonth | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/community?community=technology" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/community?community=technology", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/community?community=technology", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "actorId": "https://lemmy.world/c/technology", "banner": "https://lemmy.world/pictrs/image/be818d42-f96f-4a33-b963-2a6e35938d54.png", "comments": 985816, "createdAt": "2023-06-11T02:16:17.173483Z", "description": "This is a [most excellent](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExN3N0NmhuODNib3d3Nzg0OHU2bTFqMXAzNW42Y2JsOTVmenNsNG8ycSZlcD12MV9p…", "icon": "https://lemmy.world/pictrs/image/2a85bf08-5c07-4326-8dad-f549bfb2189e.png", "id": "2478", "name": "technology", "nsfw": false, "posts": 22605, "subscribers": 89526, "title": "Technology", "usersActiveMonth": 15425 }, "meta": { "cached": false, "endpoint": "community", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
communities
/v1/lemmy/communitiesCommunities a server knows, or only its own, in one sort order, 20 per page.
Parameters
typestring | All for every community the server knows, Local for its own.AllLocaldefault All |
sortstring | Sort order of the communities.ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaleddefault TopMonth |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
actorId | string |
banner | string |
comments | integer (int64) |
createdAt | string |
description | string |
icon | string |
id | string |
name | string |
nsfw | boolean |
posts | integer (int64) |
subscribers | integer (int64) |
title | string |
usersActiveMonth | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/communities" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/communities", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/communities", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "actorId": "https://lemmy.world/c/technology", "banner": "https://lemmy.world/pictrs/image/be818d42-f96f-4a33-b963-2a6e35938d54.png", "comments": 985816, "createdAt": "2023-06-11T02:16:17.173483Z", "description": "This is a [most excellent](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExN3N0NmhuODNib3d3Nzg0OHU2bTFqMXAzNW42Y2JsOTVmenNsNG8ycSZlcD12MV9p…", "icon": "https://lemmy.world/pictrs/image/2a85bf08-5c07-4326-8dad-f549bfb2189e.png", "id": "2478", "name": "technology", "nsfw": false, "posts": 22605, "subscribers": 89526, "title": "Technology", "usersActiveMonth": 15425 }, { "actorId": "https://lemmy.world/c/lemmyshitpost", "banner": "https://lemmy.world/pictrs/image/7f4a91de-49a1-4f76-a257-afab586d9abf.png", "comments": 742135, "createdAt": "2023-06-10T16:30:55.861489Z", "description": "Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.\n\nAnything and everything goes. Memes, Jokes, Vents and Banter. Thou…", "icon": "https://lemmy.world/pictrs/image/64bfcc49-c61e-44c8-9908-037f6bf61361.webp", "id": "1994", "name": "lemmyshitpost", "nsfw": false, "posts": 31593, "subscribers": 42777, "title": "Lemmy Shitpost", "usersActiveMonth": 14845 } ], "meta": { "cached": false, "endpoint": "communities", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
posts
/v1/lemmy/postsPosts of a community in one sort order, 20 per page.
Parameters
communitystring required | Community name, name@server, or a community URL such as https://lemmy.world/c/asklemmy. e.g. technology |
sortstring | Sort order of the posts.ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaleddefault Hot |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
apId | string |
author | string |
body | string |
commentCount | integer (int64) |
community | string |
createdAt | string |
downvotes | integer (int64) |
id | string |
locked | boolean |
nsfw | boolean |
score | integer (int64) |
title | string |
upvotes | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/lemmy/posts?community=technology" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/posts?community=technology", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/posts?community=technology", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "apId": "https://sh.itjust.works/post/69516098", "author": "GolfFoxtrotLima", "body": "cross-posted from: https://reddthat.com/post/76163261\n\n> >Reuters reports that around 100 people made it into the construction site, with so…", "commentCount": 3, "community": "technology", "createdAt": "2026-11-06T16:02:32.892231Z", "downvotes": 2, "id": "54067868", "locked": false, "nsfw": false, "score": 97, "title": "Protesters break into Microsoft data center site in Amsterdam - Europe is witnessing a wave of protests against data centers.", "upvotes": 99, "url": "https://www.theverge.com/news/1028549/protesters-microsoft-data-center-site-amsterdam" }, { "apId": "https://sh.itjust.works/post/69516255", "author": "GolfFoxtrotLima", "body": "cross-posted from: https://lemmy.world/post/54061344\n\n> https://archive.ph/2026.11.05-224738/https://www.ft.com/content/32fd4450-5880-437d-9…", "commentCount": 19, "community": "technology", "createdAt": "2026-11-06T16:07:35.879279Z", "downvotes": 1, "id": "54067893", "locked": false, "nsfw": false, "score": 73, "title": "AI backlash threatens trillion-dollar data centre boom, say tech leaders", "upvotes": 74, "url": "https://www.ft.com/content/32fd4450-5880-437d-9bd9-df13289ada24" } ], "meta": { "cached": false, "endpoint": "posts", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
feed
/v1/lemmy/feedPosts across a server: all communities it knows, or only its own, in one sort order, 20 per page.
Parameters
typestring | All for every community the server knows, Local for its own communities.AllLocaldefault All |
sortstring | Sort order of the posts.ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaleddefault Hot |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
apId | string |
author | string |
body | string |
commentCount | integer (int64) |
community | string |
createdAt | string |
downvotes | integer (int64) |
id | string |
locked | boolean |
nsfw | boolean |
score | integer (int64) |
title | string |
upvotes | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/lemmy/feed" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/feed", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/feed", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "apId": "https://lemmy.world/post/54071104", "author": "fireweed", "body": "", "commentCount": 3, "community": "politicalmemes", "createdAt": "2026-11-06T17:34:15.003345Z", "downvotes": 0, "id": "54071104", "locked": false, "nsfw": false, "score": 48, "title": "Before and after the 2026 midterms: Georgia's statewide officers", "upvotes": 48, "url": "https://lemmy.world/pictrs/image/e40a0a0f-81c6-4196-b287-39860495e007.jpeg" }, { "apId": "https://lemmy.world/post/54070583", "author": "HonoraryMancunian", "body": "Dismantled an old bed and wanted to keep the nuts, bolts, screws and washers. Probably the first time in over 4 decades I've managed to reu…", "commentCount": 6, "community": "dull_mens_club", "createdAt": "2026-11-06T17:23:31.915840Z", "downvotes": 0, "id": "54070583", "locked": false, "nsfw": false, "score": 35, "title": "Finally! Me not throwing away a random baggie has paid off!", "upvotes": 35, "url": "https://lemmy.world/pictrs/image/1a7bdc71-f3cb-46c5-9d3b-10cf64e6b2c2.jpeg" } ], "meta": { "cached": false, "endpoint": "feed", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
post
/v1/lemmy/postA post by its id or URL, with its top comments.
Parameters
idstring required | Post id or post URL, such as https://lemmy.world/post/54055841. e.g. 1 |
commentsinteger | Top comments to return, 0 to 50. default 10 |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
22 fields
apId | string |
author | string |
body | string |
commentCount | integer (int64) |
comments | Comment[] |
author | string |
content | string |
createdAt | string |
id | string |
parentId | string |
postId | string |
score | integer (int64) |
community | string |
createdAt | string |
downvotes | integer (int64) |
id | string |
locked | boolean |
nsfw | boolean |
score | integer (int64) |
title | string |
upvotes | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/lemmy/post?id=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/post?id=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/post?id=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "apId": "https://lemmy.world/post/1", "author": "ruud", "body": "Trying out Lemmy. \nIt seems to work, e-mail and federation fixed now", "commentCount": 12, "comments": [ { "author": "ruud", "content": "Added a banner as test, but need an official banner for Lemmy.world. (@vsp@mastodon.world ? :-) )", "createdAt": "2023-06-01T11:43:36.609468Z", "id": "4", "parentId": "", "postId": "1", "score": 18 }, { "author": "ruud", "content": "E-mail is working now", "createdAt": "2023-06-01T10:21:10.424565Z", "id": "3", "parentId": "", "postId": "1", "score": 10 } ], "community": "fediverse", "createdAt": "2023-06-01T08:28:56.724232Z", "downvotes": 2, "id": "1", "locked": false, "nsfw": false, "score": 12, "title": "Lemmy.world", "upvotes": 14, "url": "https://lemmy.world/" }, "meta": { "cached": false, "endpoint": "post", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
comments
/v1/lemmy/commentsRecent comments on a server, or in one community, in one sort order, 20 per page.
Parameters
communitystring | Community name, name@server, or a community URL. Omit it for comments in every community. |
typestring | All for every community the server knows, Local for its own.AllLocaldefault All |
sortstring | Sort order of the comments.HotTopNewOldControversialdefault New |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
author | string |
content | string |
createdAt | string |
id | string |
parentId | string |
postId | string |
score | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/comments?instance=lemmy.world" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/comments?instance=lemmy.world", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/comments?instance=lemmy.world", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "Akido37", "content": "Most if not all public schools _already_ recite the Pledge no matter how creepy it is, and student-led prayers are _already_ legal. It’s tea…", "createdAt": "2026-11-06T18:01:31.092869Z", "id": "26730950", "parentId": "", "postId": "54070717", "score": 1 }, { "author": "europeancricket", "content": "It's really not. If you assume they are corrupt and at least slightly fascist, you got it covered.", "createdAt": "2026-11-06T18:01:30.124596Z", "id": "26730949", "parentId": "26729082", "postId": "54032087", "score": 1 } ], "meta": { "cached": false, "endpoint": "comments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
comment
/v1/lemmy/commentOne comment by its id, or comment URL, with the post it belongs to.
Parameters
idstring required | Comment id or comment URL, such as https://lemmy.world/comment/26725501. e.g. 1 |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.world |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
author | string |
content | string |
createdAt | string |
id | string |
parentId | string |
postId | string |
score | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/comment?id=1&instance=lemmy.world" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/comment?id=1&instance=lemmy.world", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/comment?id=1&instance=lemmy.world", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": "ruud", "content": "You can create an account, if you like.", "createdAt": "2023-06-01T08:59:19.068084Z", "id": "1", "parentId": "", "postId": "1", "score": 4 }, "meta": { "cached": false, "endpoint": "comment", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
user
/v1/lemmy/userProfile and post and comment counts of one account on a server.
Parameters
usernamestring required | Username, name@server, or a profile URL such as https://lemmy.ml/u/nutomic. e.g. Nutomic |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.ml |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
actorId | string |
avatar | string |
banned | boolean |
bio | string |
bot | boolean |
commentCount | integer (int64) |
createdAt | string |
displayName | string |
id | string |
name | string |
postCount | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/user?username=Nutomic&instance=lemmy.ml" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/user?username=Nutomic&instance=lemmy.ml", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/user?username=Nutomic&instance=lemmy.ml", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "actorId": "https://lemmy.ml/u/nutomic", "avatar": "https://lemmy.ml/pictrs/image/24716431-8f92-417a-8492-06d5d3fe9fab.jpeg", "banned": false, "bio": "Lemmy Lead Developer and father of two children. \n\nI also develop [Ibis](https://ibis.wiki/), a federated wiki.", "bot": false, "commentCount": 3943, "createdAt": "2020-01-17T01:38:22.348392Z", "displayName": "Nutomic", "id": "8169", "name": "nutomic", "postCount": 500 }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
userPosts
/v1/lemmy/userPostsPosts one Lemmy account has written on a server, in one sort order, 20 per page.
Parameters
usernamestring required | Username, name@server, or a profile URL such as https://lemmy.ml/u/nutomic. e.g. Nutomic |
sortstring | Sort order of the posts.ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaleddefault New |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.ml |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
apId | string |
author | string |
body | string |
commentCount | integer (int64) |
community | string |
createdAt | string |
downvotes | integer (int64) |
id | string |
locked | boolean |
nsfw | boolean |
score | integer (int64) |
title | string |
upvotes | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/lemmy/userPosts?username=Nutomic&instance=lemmy.ml" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/userPosts?username=Nutomic&instance=lemmy.ml", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/userPosts?username=Nutomic&instance=lemmy.ml", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "apId": "abc123", "author": "…", "body": "…", "commentCount": 1280, "community": "…", "createdAt": "2026-11-06T09:41:00Z", "downvotes": 0, "id": "abc123", "locked": false, "nsfw": false, "score": 0, "title": "…", "upvotes": 0, "url": "https://…" } ], "meta": { "cached": false, "endpoint": "userPosts", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
userComments
/v1/lemmy/userCommentsComments one Lemmy account has written on a server, in one sort order, 20 per page.
Parameters
usernamestring required | Username, name@server, or a profile URL such as https://lemmy.ml/u/nutomic. e.g. Nutomic |
sortstring | Sort order of the comments.HotTopNewOldControversialdefault New |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.ml |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
author | string |
content | string |
createdAt | string |
id | string |
parentId | string |
postId | string |
score | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/userComments?username=Nutomic&instance=lemmy.ml" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/userComments?username=Nutomic&instance=lemmy.ml", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/userComments?username=Nutomic&instance=lemmy.ml", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "…", "content": "…", "createdAt": "2026-11-06T09:41:00Z", "id": "abc123", "parentId": "abc123", "postId": "abc123", "score": 0 } ], "meta": { "cached": false, "endpoint": "userComments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
postComments
/v1/lemmy/postCommentsThe comments of one post, in one sort order, 20 per page, flat with each reply's parent id.
Parameters
idstring required | Post id or post URL, such as https://lemmy.world/post/54055841. e.g. 54055841 |
sortstring | Sort order of the comments.HotTopNewOldControversialdefault Top |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
author | string |
content | string |
createdAt | string |
id | string |
parentId | string |
postId | string |
score | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/postComments?id=54055841&instance=lemmy.world" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/postComments?id=54055841&instance=lemmy.world", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/postComments?id=54055841&instance=lemmy.world", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "…", "content": "…", "createdAt": "2026-11-06T09:41:00Z", "id": "abc123", "parentId": "abc123", "postId": "abc123", "score": 0 } ], "meta": { "cached": false, "endpoint": "postComments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
instance
/v1/lemmy/instanceA Lemmy server's own profile: its name and description, software version, user, post, comment and community counts, and its admins.
Parameters
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.worlde.g. lemmy.ml |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
activeUsersMonth | integer (int64) |
admins | string[] |
comments | integer (int64) |
communities | integer (int64) |
createdAt | string |
description | string |
name | string |
posts | integer (int64) |
users | integer (int64) |
version | string |
curl "https://api.hoshime.com/v1/lemmy/instance?instance=lemmy.ml" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/instance?instance=lemmy.ml", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/instance?instance=lemmy.ml", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "activeUsersMonth": 0, "admins": [ "…" ], "comments": 0, "communities": 0, "createdAt": "2026-11-06T09:41:00Z", "description": "…", "name": "…", "posts": 0, "users": 0, "version": "…" }, "meta": { "cached": false, "endpoint": "instance", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
searchPosts
/v1/lemmy/searchPostsPosts that match a search, 20 per page.
Parameters
querystring required | Search terms. e.g. linux |
sortstring | Sort order of the results.ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaleddefault TopAll |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
apId | string |
author | string |
body | string |
commentCount | integer (int64) |
community | string |
createdAt | string |
downvotes | integer (int64) |
id | string |
locked | boolean |
nsfw | boolean |
score | integer (int64) |
title | string |
upvotes | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/lemmy/searchPosts?query=linux" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/searchPosts?query=linux", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/searchPosts?query=linux", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "apId": "https://lemmy.ml/post/4488445", "author": "Uluganda", "body": "", "commentCount": 307, "community": "linux", "createdAt": "2023-09-06T09:10:32.206827Z", "downvotes": 85, "id": "4544125", "locked": false, "nsfw": false, "score": 2979, "title": "It either runs on Linux or refund", "upvotes": 3064, "url": "https://lemmy.ml/pictrs/image/52bd0a21-b549-4dbe-ae42-0c8613e40e14.jpeg" }, { "apId": "https://lemmy.world/post/6140625", "author": "atmur", "body": "I remember when Proton launched it was like magic playing games like Doom and Nier Automata straight from the Linux Steam client with excell…", "commentCount": 328, "community": "linuxmemes", "createdAt": "2023-10-02T01:49:50.242743Z", "downvotes": 47, "id": "6140625", "locked": false, "nsfw": false, "score": 2323, "title": "There's still room for improvement, but Linux gaming has come a long way in a short time.", "upvotes": 2370, "url": "https://lemmy.world/pictrs/image/d33cf31b-9acd-4604-b173-4dc5d3a73e42.png" } ], "meta": { "cached": false, "endpoint": "searchPosts", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }
searchCommunities
/v1/lemmy/searchCommunitiesCommunities that match a search, 20 per page.
Parameters
querystring required | Search terms. e.g. linux |
sortstring | Sort order of the results.ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaleddefault TopAll |
instancestring | Server hostname, such as lemmy.world. An argument given as a URL names its own server instead. default lemmy.world |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
actorId | string |
banner | string |
comments | integer (int64) |
createdAt | string |
description | string |
icon | string |
id | string |
name | string |
nsfw | boolean |
posts | integer (int64) |
subscribers | integer (int64) |
title | string |
usersActiveMonth | integer (int64) |
curl "https://api.hoshime.com/v1/lemmy/searchCommunities?query=linux" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lemmy/searchCommunities?query=linux", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lemmy/searchCommunities?query=linux", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "actorId": "https://lemmy.ml/c/linux", "banner": "", "comments": 243016, "createdAt": "2019-06-01T15:07:36.179766Z", "description": "From Wikipedia, the free encyclopedia\n\nLinux is a family of open source Unix-like operating systems based on the Linux kernel, an operating …", "icon": "https://lemmy.ml/pictrs/image/q98XK4sKtw.png", "id": "37", "name": "linux", "nsfw": false, "posts": 9531, "subscribers": 68593, "title": "Linux", "usersActiveMonth": 6122 }, { "actorId": "https://lemmy.world/c/linuxmemes", "banner": "https://lemmy.world/pictrs/image/4701d6d0-a080-461e-8a33-5927dd1809e6.png", "comments": 143478, "createdAt": "2023-06-15T20:22:32.340233Z", "description": "Hint: `:q!`\n\n----\n\n\n::: spoiler Sister communities:\n* !tech_memes@lemmy.world\n* !memes@lemmy.world\n* !lemmyshitpost@lemmy.world\n* !risa@star…", "icon": "https://lemmy.world/pictrs/image/4271bdc6-5114-4749-a5a9-afbc82a99c78.png", "id": "11684", "name": "linuxmemes", "nsfw": false, "posts": 2417, "subscribers": 33343, "title": "linuxmemes", "usersActiveMonth": 6166 } ], "meta": { "cached": false, "endpoint": "searchCommunities", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lemmy", "requestId": "req_2Xb9kQ…", "units": 1 } }