# IDX Channel API

> Returns IDX Channel news: latest articles, RSS feeds, channel listings, keyword search results and items related to a ticker or tag.

Category: News & Media. Region: ID. 15 endpoints at `https://api.hoshime.com/v1/idxchannel/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/idxchannel
## GET /v1/idxchannel/latest

Latest news of IDX Channel, newest first.

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

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

## GET /v1/idxchannel/newsroom

The newsroom's RSS feed of IDX Channel, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Maximum items to return, from 1 to 100. (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: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `category` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

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

## GET /v1/idxchannel/syndication

The RSS feed of one IDX Channel channel, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `channel` | string | yes | Syndication channel, such as market-news. (one of market-news, economics, banking, syariah, ecotainment, milenomic, inspirator, economia, news, technology, idxtainment, the-founder, video, idxc-live; e.g. market-news) |
| `limit` | integer | no | Maximum items to return, from 1 to 100. (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: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `category` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/idxchannel/syndication?channel=market-news" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/idxchannel/channel

Newest articles of one IDX Channel channel from its listing page, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `channel` | string | yes | Channel to list, such as market-news. (one of market-news, economics, banking, syariah, ecotainment, milenomic, inspirator, news, technology; e.g. market-news) |
| `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), `category` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/idxchannel/channel?channel=market-news" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/idxchannel/search

IDX Channel articles that match a keyword, from the first results page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search keyword, such as BBCA. (e.g. BBCA) |
| `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), `category` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

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

## GET /v1/idxchannel/related

IDX Channel articles and videos filed under a ticker code or tag keyword.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Ticker code or tag keyword, such as BBCA. (e.g. BBCA) |
| `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: `channel` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `title` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/idxchannel/related?query=BBCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/idxchannel/detail

One IDX Channel article with its body, writer, tags and word count.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Full article URL on idxchannel.com. (e.g. https://www.idxchannel.com/market-news/medcoenergi-medc-terbitkan-obligasi-dolar-as-usd300-juta-jatuh-tempo-2032) |
| `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), `authors` (Author[]), `authors[].avatarUrl` (string), `authors[].id` (string), `authors[].name` (string), `authors[].url` (string), `authors[].username` (string), `body` (string), `id` (string), `imageUrl` (string), `modifiedAt` (string), `publishedAt` (string), `source` (string), `summary` (string), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string), `wordCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/idxchannel/detail?url=https%3A%2F%2Fwww.idxchannel.com%2Fmarket-news%2Fmedcoenergi-medc-terbitkan-obligasi-dolar-as-usd300-juta-jatuh-tempo-2032" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/idxchannel/stocks

One page of IDX Channel's stock table (10 stocks per page), optionally sorted.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `sortBy` | string | no | Sort column. Omit for the upstream's default order. (one of volume, changePercent) |
| `sort` | string | no | Sort direction. Only applied together with sortBy. (one of asc, desc) |
| `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: `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `previous` (string), `price` (string), `symbol` (string), `trend` (string), `updatedAt` (string), `volume` (string)

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

## GET /v1/idxchannel/stocksAll

Every stock IDX Channel prices, with the day's open, close and change.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Filter by ticker code, case-insensitive substring. |
| `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: `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `previous` (string), `price` (string), `symbol` (string), `trend` (string), `updatedAt` (string), `volume` (string)

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

## GET /v1/idxchannel/quote

Today's quote of one stock: open, high, low, previous and close, with the change.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `code` | string | yes | Ticker code, with or without case, such as BBCA. (e.g. BBCA) |
| `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: `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `previous` (string), `price` (string), `symbol` (string), `trend` (string), `updatedAt` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/idxchannel/quote?code=BBCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/idxchannel/tickers

Every listed stock code IDX Channel knows.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Filter by code, case-insensitive substring. |
| `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: `code` (string)

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

## GET /v1/idxchannel/indices

Market indices with their last value and change, such as IHSG and LQ45.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `code` | string | no | Filter to one index code, such as IHSG. |
| `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: `change` (string), `changePercent` (string), `high` (string), `low` (string), `open` (string), `price` (string), `symbol` (string), `trend` (string), `updatedAt` (string), `volume` (string)

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

## GET /v1/idxchannel/currencies

Exchange rates against the rupiah for every currency IDX Channel shows.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | no | Filter to one currency by its three-letter name, such as USD. |
| `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: `code` (string), `name` (string), `rate` (string), `updatedAt` (string)

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

## GET /v1/idxchannel/marketSnapshot

The indices and currencies IDX Channel shows at the top of its pages, in one call.

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

| 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: `currencies` (Currency[]), `currencies[].code` (string), `currencies[].name` (string), `currencies[].rate` (string), `currencies[].updatedAt` (string), `indices` (Index[]), `indices[].change` (string), `indices[].changePercent` (string), `indices[].high` (string), `indices[].low` (string), `indices[].open` (string), `indices[].price` (string), `indices[].symbol` (string), `indices[].trend` (string), `indices[].updatedAt` (string), `indices[].volume` (string)

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

## GET /v1/idxchannel/popular

The most-read IDX Channel articles of the day, in the order of the Populer panel of the home page.

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: `channel` (string), `date` (string), `id` (string), `imageUrl` (string), `title` (string), `url` (string)

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