# Loom API

> Returns title, author, duration, thumbnail, MP4 link and transcript of public Loom videos.

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

A public Loom video by its share URL or id: title, author, duration and thumbnail.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Loom share URL, embed URL or the 32-character video id. (e.g. https://www.loom.com/share/09b1aa507cb846138847bf8e98b56a71) |
| `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), `description` (string), `duration` (number (double)), `embedUrl` (string), `height` (integer (int64)), `id` (string), `thumbnail` (string), `title` (string), `url` (string), `width` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/loom/video?url=https%3A%2F%2Fwww.loom.com%2Fshare%2F09b1aa507cb846138847bf8e98b56a71" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/loom/download

The direct MP4 link of a public Loom video. The link is signed and expires; ask again for a fresh one.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Loom share URL, embed URL or the 32-character video id. (e.g. https://www.loom.com/share/09b1aa507cb846138847bf8e98b56a71) |
| `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: `downloadUrl` (string), `id` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/loom/download?url=https%3A%2F%2Fwww.loom.com%2Fshare%2F09b1aa507cb846138847bf8e98b56a71" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/loom/transcript

The transcript of a public Loom video, phrase by phrase with the time each one starts.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Loom share URL, embed URL or the 32-character video id. (e.g. https://www.loom.com/share/09b1aa507cb846138847bf8e98b56a71) |
| `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: `id` (string), `phrases` (Phrase[]), `phrases[].start` (integer (int64)), `phrases[].text` (string), `text` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/loom/transcript?url=https%3A%2F%2Fwww.loom.com%2Fshare%2F09b1aa507cb846138847bf8e98b56a71" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
