Skip to content

Lemmy API

14 endpointsSocial & VideoGlobalsocial:read10 real examples

Returns Lemmy communities, posts, comments and server feeds with counts and sort options.

View as Markdown
GET/lemmy/communityA community by its name, name@server or community URL, with its counts.
GET/lemmy/communitiesCommunities a server knows, or only its own, in one sort order, 20 per page.
GET/lemmy/postsPosts of a community in one sort order, 20 per page.
GET/lemmy/feedPosts across a server: all communities it knows, or only its own, in one sort order, 20 per page.
GET/lemmy/postA post by its id or URL, with its top comments.
GET/lemmy/commentsRecent comments on a server, or in one community, in one sort order, 20 per page.
GET/lemmy/commentOne comment by its id, or comment URL, with the post it belongs to.
GET/lemmy/userProfile and post and comment counts of one account on a server.
GET/lemmy/userPostsPosts one Lemmy account has written on a server, in one sort order, 20 per page.
GET/lemmy/userCommentsComments one Lemmy account has written on a server, in one sort order, 20 per page.
GET/lemmy/postCommentsThe comments of one post, in one sort order, 20 per page, flat with each reply's parent id.
GET/lemmy/instanceA Lemmy server's own profile: its name and description, software version, user, post, comment and community counts, and its admins.
GET/lemmy/searchPostsPosts that match a search, 20 per page.
GET/lemmy/searchCommunitiesCommunities that match a search, 20 per page.

community

GET/v1/lemmy/community

A community by its name, name@server or community URL, with its counts.

scope social:read1 unitcached 10 min

Parameters

community
string
required
Community name such as asklemmy, name@server, or a URL such as https://lemmy.world/c/asklemmy.
e.g. technology
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
tunnel
string
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.
proxy
string
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.
profileId
string
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
actorIdstring
bannerstring
commentsinteger (int64)
createdAtstring
descriptionstring
iconstring
idstring
namestring
nsfwboolean
postsinteger (int64)
subscribersinteger (int64)
titlestring
usersActiveMonthinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/community?community=technology" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/communities

Communities a server knows, or only its own, in one sort order, 20 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

type
string
All for every community the server knows, Local for its own.
AllLocal
default All
sort
string
Sort order of the communities.
ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaled
default TopMonth
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
actorIdstring
bannerstring
commentsinteger (int64)
createdAtstring
descriptionstring
iconstring
idstring
namestring
nsfwboolean
postsinteger (int64)
subscribersinteger (int64)
titlestring
usersActiveMonthinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/communities" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/posts

Posts of a community in one sort order, 20 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

community
string
required
Community name, name@server, or a community URL such as https://lemmy.world/c/asklemmy.
e.g. technology
sort
string
Sort order of the posts.
ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaled
default Hot
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
apIdstring
authorstring
bodystring
commentCountinteger (int64)
communitystring
createdAtstring
downvotesinteger (int64)
idstring
lockedboolean
nsfwboolean
scoreinteger (int64)
titlestring
upvotesinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/lemmy/posts?community=technology" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/feed

Posts across a server: all communities it knows, or only its own, in one sort order, 20 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

type
string
All for every community the server knows, Local for its own communities.
AllLocal
default All
sort
string
Sort order of the posts.
ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaled
default Hot
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
apIdstring
authorstring
bodystring
commentCountinteger (int64)
communitystring
createdAtstring
downvotesinteger (int64)
idstring
lockedboolean
nsfwboolean
scoreinteger (int64)
titlestring
upvotesinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/lemmy/feed" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/post

A post by its id or URL, with its top comments.

scope social:read1 unitcached 5 min

Parameters

id
string
required
Post id or post URL, such as https://lemmy.world/post/54055841.
e.g. 1
comments
integer
Top comments to return, 0 to 50.
default 10
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
tunnel
string
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.
proxy
string
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.
profileId
string
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
apIdstring
authorstring
bodystring
commentCountinteger (int64)
commentsComment[]
authorstring
contentstring
createdAtstring
idstring
parentIdstring
postIdstring
scoreinteger (int64)
communitystring
createdAtstring
downvotesinteger (int64)
idstring
lockedboolean
nsfwboolean
scoreinteger (int64)
titlestring
upvotesinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/lemmy/post?id=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/comments

Recent comments on a server, or in one community, in one sort order, 20 per page.

scope social:read1 unitcached 2 minpaginated

Parameters

community
string
Community name, name@server, or a community URL. Omit it for comments in every community.
type
string
All for every community the server knows, Local for its own.
AllLocal
default All
sort
string
Sort order of the comments.
HotTopNewOldControversial
default New
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
contentstring
createdAtstring
idstring
parentIdstring
postIdstring
scoreinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/comments?instance=lemmy.world" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/comment

One comment by its id, or comment URL, with the post it belongs to.

scope social:read1 unitcached 10 min

Parameters

id
string
required
Comment id or comment URL, such as https://lemmy.world/comment/26725501.
e.g. 1
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.world
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
contentstring
createdAtstring
idstring
parentIdstring
postIdstring
scoreinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/comment?id=1&instance=lemmy.world" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/user

Profile and post and comment counts of one account on a server.

scope social:read1 unitcached 10 min

Parameters

username
string
required
Username, name@server, or a profile URL such as https://lemmy.ml/u/nutomic.
e.g. Nutomic
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.ml
tunnel
string
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.
proxy
string
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.
profileId
string
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
actorIdstring
avatarstring
bannedboolean
biostring
botboolean
commentCountinteger (int64)
createdAtstring
displayNamestring
idstring
namestring
postCountinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/user?username=Nutomic&instance=lemmy.ml" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/userPosts

Posts one Lemmy account has written on a server, in one sort order, 20 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

username
string
required
Username, name@server, or a profile URL such as https://lemmy.ml/u/nutomic.
e.g. Nutomic
sort
string
Sort order of the posts.
ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaled
default New
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.ml
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
apIdstring
authorstring
bodystring
commentCountinteger (int64)
communitystring
createdAtstring
downvotesinteger (int64)
idstring
lockedboolean
nsfwboolean
scoreinteger (int64)
titlestring
upvotesinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/lemmy/userPosts?username=Nutomic&instance=lemmy.ml" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/lemmy/userComments

Comments one Lemmy account has written on a server, in one sort order, 20 per page.

scope social:read1 unitcached 5 minpaginated

Parameters

username
string
required
Username, name@server, or a profile URL such as https://lemmy.ml/u/nutomic.
e.g. Nutomic
sort
string
Sort order of the comments.
HotTopNewOldControversial
default New
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.ml
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
contentstring
createdAtstring
idstring
parentIdstring
postIdstring
scoreinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/userComments?username=Nutomic&instance=lemmy.ml" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/lemmy/postComments

The comments of one post, in one sort order, 20 per page, flat with each reply's parent id.

scope social:read1 unitcached 2 minpaginated

Parameters

id
string
required
Post id or post URL, such as https://lemmy.world/post/54055841.
e.g. 54055841
sort
string
Sort order of the comments.
HotTopNewOldControversial
default Top
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
contentstring
createdAtstring
idstring
parentIdstring
postIdstring
scoreinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/postComments?id=54055841&instance=lemmy.world" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/lemmy/instance

A Lemmy server's own profile: its name and description, software version, user, post, comment and community counts, and its admins.

scope social:read1 unitcached 1 h

Parameters

instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.worlde.g. lemmy.ml
tunnel
string
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.
proxy
string
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.
profileId
string
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
activeUsersMonthinteger (int64)
adminsstring[]
commentsinteger (int64)
communitiesinteger (int64)
createdAtstring
descriptionstring
namestring
postsinteger (int64)
usersinteger (int64)
versionstring
curl "https://api.hoshime.com/v1/lemmy/instance?instance=lemmy.ml" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/lemmy/searchPosts

Posts that match a search, 20 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

query
string
required
Search terms.
e.g. linux
sort
string
Sort order of the results.
ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaled
default TopAll
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
apIdstring
authorstring
bodystring
commentCountinteger (int64)
communitystring
createdAtstring
downvotesinteger (int64)
idstring
lockedboolean
nsfwboolean
scoreinteger (int64)
titlestring
upvotesinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/lemmy/searchPosts?query=linux" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/lemmy/searchCommunities

Communities that match a search, 20 per page.

scope social:read1 unitcached 10 minpaginated

Parameters

query
string
required
Search terms.
e.g. linux
sort
string
Sort order of the results.
ActiveHotNewOldTopHourTopSixHourTopTwelveHourTopDayTopWeekTopMonthTopYearTopAllMostCommentsNewCommentsControversialScaled
default TopAll
instance
string
Server hostname, such as lemmy.world. An argument given as a URL names its own server instead.
default lemmy.world
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
actorIdstring
bannerstring
commentsinteger (int64)
createdAtstring
descriptionstring
iconstring
idstring
namestring
nsfwboolean
postsinteger (int64)
subscribersinteger (int64)
titlestring
usersActiveMonthinteger (int64)
curl "https://api.hoshime.com/v1/lemmy/searchCommunities?query=linux" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open