# KASKUS API

> Returns KASKUS hot threads, thread posts, forums (communities) and public member profiles.

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

The hot threads of the KASKUS forum, in the order the site ranks them.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/kaskus/hot" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/thread

One KASKUS thread with its opening post and totals.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `threadId` | string | yes | Thread id (24 hexadecimal characters) or its kaskus.co.id/thread URL. (e.g. 6aed7fd30a01d9a5490503b8) |
| `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), `commentCount` (integer (int64)), `community` (string), `communityId` (string), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `shareCount` (integer (int64)), `text` (string), `title` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/kaskus/thread?threadId=6aed7fd30a01d9a5490503b8" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/threadPosts

One page of the replies in a KASKUS thread.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `threadId` | string | yes | Thread id (24 hexadecimal characters) or its kaskus.co.id/thread URL. (e.g. 6aed7fd30a01d9a5490503b8) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `replyCount` (integer (int64)), `text` (string), `threadId` (string), `threadTitle` (string)

```bash
curl "https://api.hoshime.com/v1/kaskus/threadPosts?threadId=6aed7fd30a01d9a5490503b8" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/community

One KASKUS forum (community) with its description and size.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `communityId` | integer | yes | Community id, such as 21 for The Lounge. (e.g. 21) |
| `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: `description` (string), `iconUrl` (string), `id` (string), `memberCount` (integer (int64)), `name` (string), `postCount` (integer (int64)), `threadCount` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/kaskus/community?communityId=21" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/communities

KASKUS forums whose names match a query, one page at a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words in the forum name, such as lounge. (e.g. lounge) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `description` (string), `iconUrl` (string), `id` (string), `memberCount` (integer (int64)), `name` (string), `postCount` (integer (int64)), `threadCount` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/kaskus/communities?query=lounge" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/communityThreads

The threads posted in one KASKUS forum (community), newest first, 20 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `communityId` | integer | yes | Community id, such as 21 for The Lounge. (e.g. 21) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `commentCount` (integer (int64)), `community` (string), `communityId` (string), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `media` (Media[]), `media[].durationSeconds` (integer (int64)), `media[].height` (any), `media[].thumbnailUrl` (string), `media[].type` (string), `media[].url` (string), `media[].width` (any), `shareCount` (integer (int64)), `text` (string), `title` (string), `url` (string), `viewCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/kaskus/communityThreads?communityId=21" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/profile

The public profile of one KASKUS member.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `userId` | integer | yes | Numeric KASKUS user id. (e.g. 3583703) |
| `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), `name` (string), `postCount` (integer (int64)), `title` (string), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/kaskus/profile?userId=3583703" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/userPosts

One page of the replies one KASKUS member has written.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `userId` | integer | yes | Numeric KASKUS user id. (e.g. 3583703) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `replyCount` (integer (int64)), `text` (string), `threadId` (string), `threadTitle` (string)

```bash
curl "https://api.hoshime.com/v1/kaskus/userPosts?userId=3583703" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/kaskus/followers

One page of the members who follow one KASKUS member.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `userId` | integer | yes | Numeric KASKUS user id. (e.g. 3583703) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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), `name` (string), `postCount` (integer (int64)), `title` (string), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/kaskus/followers?userId=3583703" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
