# Odysee API

> Returns Odysee videos and channels from search, lbry URL resolution, stream listings and comments.

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

Videos and channels on Odysee that match a query.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for in titles, descriptions and tags. (e.g. linux) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `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), `description` (string), `id` (string), `kind` (string), `name` (string), `publishedAt` (string), `thumbnailUrl` (string), `title` (string), `url` (string)

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

## GET /v1/odysee/resolve

One Odysee video or channel by its lbry:// URL.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | lbry:// URL, such as lbry://@Odysee#c for a channel. (e.g. lbry://@Odysee#c) |
| `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), `description` (string), `id` (string), `kind` (string), `name` (string), `publishedAt` (string), `thumbnailUrl` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/odysee/resolve?url=lbry%3A%2F%2F%40Odysee%23c" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/odysee/streams

Videos and other streams on Odysee, trending or newest first, optionally of one channel or tag, 10 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `order` | string | no | trending for what is popular now, new for the newest uploads. (one of trending, new; default trending) |
| `channel` | string | no | Claim id of a channel, 40 hexadecimal digits, to list only its streams. |
| `tag` | string | no | Tag name, such as linux, to list only streams with it. |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `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), `description` (string), `id` (string), `kind` (string), `name` (string), `publishedAt` (string), `thumbnailUrl` (string), `title` (string), `url` (string)

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

## GET /v1/odysee/comments

Top-level comments on one stream or channel, newest first, 10 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `claim` | string | yes | Claim id of the stream or channel, 40 hexadecimal digits, as resolve and streams give it. (e.g. 5ce60797526647a9f044e06a55affc90a3d34e9a) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `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), `claimId` (string), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `replyCount` (integer (int64)), `text` (string)

```bash
curl "https://api.hoshime.com/v1/odysee/comments?claim=5ce60797526647a9f044e06a55affc90a3d34e9a" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/odysee/replies

Replies to one comment on an Odysee stream or channel, 10 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `claim` | string | yes | Claim id of the stream or channel the comment is on, 40 hexadecimal digits. (e.g. d1623278be3acf86528b5877af1a6963916d7821) |
| `comment` | string | yes | Comment id, 64 hexadecimal digits, as comments give it. (e.g. 426749e4e5f9d8d07dc69e414be58fc26faf0b88f58056af4626a78117b96f31) |
| `limit` | integer | no | Replies per page, from 1 to 50. (default 10) |
| `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), `claimId` (string), `createdAt` (string), `id` (string), `likeCount` (integer (int64)), `replyCount` (integer (int64)), `text` (string)

```bash
curl "https://api.hoshime.com/v1/odysee/replies?claim=d1623278be3acf86528b5877af1a6963916d7821&comment=426749e4e5f9d8d07dc69e414be58fc26faf0b88f58056af4626a78117b96f31" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
