# Lobsters API

> Returns lobste.rs hottest and newest stories, single stories, stories by tag and the list of tags.

Category: Developer & Tech. Region: global. 9 endpoints at `https://api.hoshime.com/v1/lobsters/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/lobsters
## GET /v1/lobsters/hottest

The hottest stories on lobste.rs right now.

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), `commentCount` (integer (int64)), `commentsUrl` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `score` (integer (int64)), `source` (string), `summary` (string), `tags` (string[]), `title` (string), `url` (string)

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

## GET /v1/lobsters/newest

The newest stories submitted to lobste.rs.

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), `commentCount` (integer (int64)), `commentsUrl` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `score` (integer (int64)), `source` (string), `summary` (string), `tags` (string[]), `title` (string), `url` (string)

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

## GET /v1/lobsters/newestPage

One page of the newest stories on lobste.rs, 25 per page, for reading past the first page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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)), `commentsUrl` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `score` (integer (int64)), `source` (string), `summary` (string), `tags` (string[]), `title` (string), `url` (string)

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

## GET /v1/lobsters/story

One lobste.rs story by its short id, such as oq5pem.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Story short id, the part after /s/ in its URL. (e.g. oq5pem) |
| `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)), `commentsUrl` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `score` (integer (int64)), `source` (string), `summary` (string), `tags` (string[]), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/lobsters/story?id=oq5pem" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/lobsters/tag

The newest stories of one lobste.rs tag, such as go.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | yes | Tag name, such as go, linux or security. (e.g. go) |
| `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)), `commentsUrl` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `score` (integer (int64)), `source` (string), `summary` (string), `tags` (string[]), `title` (string), `url` (string)

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

## GET /v1/lobsters/tags

Every active lobste.rs tag with its description and category.

Scope: `social:read` · Units: 1 · Cached: 60 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: `active` (boolean), `category` (string), `description` (string), `isMedia` (boolean), `privileged` (boolean), `tag` (string)

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

## GET /v1/lobsters/domain

The stories on lobste.rs that link to one website, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Host name of the linked site, such as github.com. (e.g. github.com) |
| `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)), `commentsUrl` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `score` (integer (int64)), `source` (string), `summary` (string), `tags` (string[]), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/lobsters/domain?domain=github.com" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/lobsters/user

Profile of one lobste.rs account: karma, join date and post counts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `username` | string | yes | lobste.rs username, such as jcs. (e.g. jcs) |
| `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), `commentsPosted` (integer (int64)), `createdAt` (string), `followerCount` (integer (int64)), `followingCount` (integer (int64)), `id` (string), `karma` (integer (int64)), `name` (string), `postCount` (integer (int64)), `status` (string), `storiesSubmitted` (integer (int64)), `url` (string), `username` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/lobsters/user?username=jcs" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/lobsters/comments

The comments of one lobste.rs story, in thread order with their depth. Deleted comments are left out.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Story short id, the part after /s/ in its URL, such as oq5pem. (e.g. oq5pem) |
| `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` (string), `createdAt` (string), `depth` (integer (int64)), `id` (string), `parentId` (string), `score` (integer (int64)), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/lobsters/comments?id=oq5pem" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
