# Threads API

> Returns public Threads profiles, posts, replies, reposts, media, topic tags and post and account search.

Category: Social & Video. Region: global. 11 endpoints at `https://api.hoshime.com/v1/threads/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/threads
## GET /v1/threads/profile

Profile of one Threads account: bio, links, follower count and verified badge.

Scope: `social:read` · Units: 2 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | no | Username, with or without @, or profile URL. Required unless userId is set. (e.g. zuck) |
| `userId` | string | no | Numeric user id, instead of username. |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `avatarUrl` (string), `bio` (string), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `links` (string[]), `name` (string), `postCount` (integer (int64)), `private` (boolean), `tags` (string[]), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/threads/profile?username=zuck" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/userPosts

Posts of one Threads account, newest first; a thread the author continued lists each of its posts.

Scope: `social:read` · Units: 2 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, with or without @, or profile URL. (e.g. zuck) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Threads per page, 1 to 15. A thread the author continued counts once and lists each of its posts. (default 15) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/userPosts?username=zuck" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/userReplies

Replies one Threads account wrote to other posts, newest first.

Scope: `social:read` · Units: 2 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, with or without @, or profile URL. (e.g. zuck) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Threads per page, 1 to 15. A thread the author continued counts once and lists each of its posts. (default 15) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/userReplies?username=zuck" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/userReposts

Posts one Threads account reposted, newest first; each item is the original post.

Scope: `social:read` · Units: 2 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, with or without @, or profile URL. (e.g. zuck) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Threads per page, 1 to 15. A thread the author continued counts once and lists each of its posts. (default 15) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/userReposts?username=zuck" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/userMedia

Posts with photos or videos of one Threads account, newest first.

Scope: `social:read` · Units: 2 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | Username, with or without @, or profile URL. (e.g. zuck) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Threads per page, 1 to 15. A thread the author continued counts once and lists each of its posts. (default 15) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/userMedia?username=zuck" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/post

One Threads post: text, media, author and like, reply, repost and quote counts.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Post URL, shortcode (DfihFPxkaZ1) or numeric post id. (e.g. https://www.threads.com/@zuck/post/DfihFPxkaZ1) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/post?id=https%3A%2F%2Fwww.threads.com%2F%40zuck%2Fpost%2FDfihFPxkaZ1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/postReplies

Replies to one Threads post, top or newest first, with the replies to each reply.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Post URL, shortcode (DfihFPxkaZ1) or numeric post id. (e.g. DfihFPxkaZ1) |
| `sort` | string | no | top: most relevant first; recent: newest first. Keep it the same across pages. (one of top, recent; default top) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Replies per page, 1 to 15. Each comes with the replies under it. (default 15) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/postReplies?id=DfihFPxkaZ1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/relatedPosts

Posts Threads shows next to one post: related posts by other accounts.

Scope: `social:read` · Units: 2 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Post URL, shortcode (DfihFPxkaZ1) or numeric post id. (e.g. DfihFPxkaZ1) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/relatedPosts?id=DfihFPxkaZ1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/search

Threads posts matching a keyword, top or newest first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Keywords to search posts for. (e.g. baking) |
| `sort` | string | no | top: most relevant first; recent: newest first. (one of top, recent; default top) |
| `author` | string | no | Only posts of this account: username, with or without @, or profile URL. |
| `startDate` | string | no | Only posts from this day on, YYYY-MM-DD (UTC). |
| `endDate` | string | no | Only posts up to the end of this day, YYYY-MM-DD (UTC). |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/search?query=baking" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/tagPosts

Threads posts with one topic tag, top or newest first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | yes | Topic tag, with or without #. (e.g. baking) |
| `sort` | string | no | top: most relevant first; recent: newest first. (one of top, recent; default top) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `authorVerified` (boolean), `code` (string), `commentCount` (integer (int64)), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `linkUrl` (string), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `quoteCount` (integer (int64)), `quotedPost` (Post | null), `quotedPost.author` (Author), `quotedPost.authorVerified` (boolean), `quotedPost.code` (string), `quotedPost.commentCount` (integer (int64)), `quotedPost.createdAt` (string), `quotedPost.id` (string), `quotedPost.likeCount` (integer (int64)), `quotedPost.linkUrl` (string), `quotedPost.media` (Media[]), `quotedPost.quoteCount` (integer (int64)), `quotedPost.quotedPost` (Post | null), `quotedPost.replyToPostId` (string), `quotedPost.replyToUsername` (string), `quotedPost.repostCount` (integer (int64)), `quotedPost.shareCount` (integer (int64)), `quotedPost.tag` (string), `quotedPost.text` (string), `quotedPost.type` (string), `quotedPost.url` (string), `quotedPost.viewCount` (integer (int64)), `replyToPostId` (string), `replyToUsername` (string), `repostCount` (integer (int64)), `shareCount` (integer (int64)), `tag` (string), `text` (string), `type` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/threads/tagPosts?tag=baking" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/threads/searchUsers

Threads accounts matching a name or username.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Name or username to search for. (e.g. zuck) |
| `limit` | integer | no | Items per page, 1 to 25. (default 10) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `avatarUrl` (string), `bio` (string), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `links` (string[]), `name` (string), `postCount` (integer (int64)), `private` (boolean), `tags` (string[]), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/threads/searchUsers?query=zuck" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
