# Yahoo Finance API

> Returns price charts and quotes, symbol search, trending symbols, prebuilt screens, market summaries and symbol news from Yahoo Finance.

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

Price bars of one symbol over a range, oldest first, with the current quote.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Yahoo Finance symbol, such as AAPL or BBCA.JK, or a finance.yahoo.com quote URL. (e.g. AAPL) |
| `range` | string | no | Period the bars cover: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd or max. (one of 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max; default 1mo) |
| `interval` | string | no | Length of one bar: 1m to 90m, 1h, 1d, 5d, 1wk, 1mo or 3mo. Intraday intervals need a short range. (one of 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo; default 1d) |
| `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: `bars` (Bar[]), `bars[].adjClose` (string), `bars[].close` (string), `bars[].high` (string), `bars[].low` (string), `bars[].open` (string), `bars[].openedAt` (string), `bars[].volume` (string), `currency` (string), `exchange` (string), `fiftyTwoWeekHigh` (number (double)), `fiftyTwoWeekLow` (number (double)), `instrumentType` (string), `interval` (string), `name` (string), `previousClose` (number (double)), `price` (number (double)), `range` (string), `symbol` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/chart?symbol=AAPL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoofinance/search

Symbols and news that match a company name, a symbol or words.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Company name, symbol or words to search for. (e.g. apple) |
| `quotes` | integer | no | Most quotes to return, 0 to 20. (default 10) |
| `news` | integer | no | Most news items to return, 0 to 20. (default 5) |
| `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: `news` (News[]), `news[].author` (Author), `news[].id` (string), `news[].imageUrl` (string), `news[].publishedAt` (string), `news[].source` (string), `news[].summary` (string), `news[].tickers` (RelatedTicker[]), `news[].title` (string), `news[].url` (string), `quotes` (Quote[]), `quotes[].exchange` (string), `quotes[].industry` (string), `quotes[].name` (string), `quotes[].sector` (string), `quotes[].symbol` (string), `quotes[].type` (string)

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

## GET /v1/yahoofinance/trending

Symbols that are trending on Yahoo Finance in one region.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `region` | string | no | Two-letter country code, such as US, GB, IN or ID. (default US) |
| `limit` | integer | no | Items per page, 1 to 50. (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: `symbol` (string)

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

## GET /v1/yahoofinance/screener

Quotes of one of Yahoo Finance's prebuilt screens, such as day gainers, most actives or most shorted stocks.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `screen` | string | no | Which prebuilt screen to read. Default day_gainers. (one of day_gainers, day_losers, most_actives, growth_technology_stocks, undervalued_growth_stocks, undervalued_large_caps, aggressive_small_caps, small_cap_gainers, most_shorted_stocks, portfolio_anchors, solid_large_growth_funds, solid_midcap_growth_funds, conservative_foreign_funds, high_yield_bond; default day_gainers; e.g. day_gainers) |
| `limit` | integer | no | Items per page, 1 to 100. (default 25) |
| `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: `change` (string), `changePercent` (string), `currency` (string), `exchange` (string), `high` (string), `low` (string), `marketCap` (string), `name` (string), `open` (string), `peRatio` (number (double)), `price` (string), `symbol` (string), `updatedAt` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/screener?screen=day_gainers" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoofinance/marketSummary

The market summary strip of one region: its indexes, futures and currencies with the change of each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `region` | string | no | Region whose summary strip to return: US, ID, GB, DE, JP, HK, SG, IN or AU. Default US. (one of US, ID, GB, DE, JP, HK, SG, IN, AU; default US; e.g. US) |
| `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: `items` (MarketQuote[]), `items[].change` (string), `items[].changePercent` (string), `items[].exchange` (string), `items[].high` (string), `items[].low` (string), `items[].marketState` (string), `items[].name` (string), `items[].open` (string), `items[].price` (string), `items[].symbol` (string), `items[].type` (string), `items[].updatedAt` (string), `items[].volume` (string), `region` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/marketSummary?region=US" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoofinance/news

Recent news headlines that Yahoo Finance links to a symbol, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Yahoo Finance symbol, such as AAPL or BBCA.JK. (e.g. AAPL) |
| `limit` | integer | no | Items per page, 1 to 50. (default 20) |
| `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), `tickers` (RelatedTicker[]), `tickers[].symbol` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/news?symbol=AAPL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoofinance/insights

Trading Central's technical outlook, support and resistance levels, valuation, analyst recommendation and recent developments of one symbol.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Instrument symbol. Jakarta listings use the .JK suffix. (e.g. AAPL) |
| `developments` | integer | no | Significant developments to return, from 1 to 30. (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: `developments` (Development[]), `developments[].date` (string), `developments[].headline` (string), `discount` (string), `intermediateTerm` (Outlook | null), `intermediateTerm.direction` (string), `intermediateTerm.score` (integer (int64)), `intermediateTerm.state` (string), `longTerm` (Outlook | null), `longTerm.direction` (string), `longTerm.score` (integer (int64)), `longTerm.state` (string), `rating` (string), `resistancePrice` (number (double)), `shortTerm` (Outlook | null), `shortTerm.direction` (string), `shortTerm.score` (integer (int64)), `shortTerm.state` (string), `stopLoss` (number (double)), `supportPrice` (number (double)), `symbol` (string), `targetPrice` (number (double)), `valuation` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/insights?symbol=AAPL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoofinance/financials

Reported figures of a symbol by period: income statement, balance sheet or cash flow, newest period first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Yahoo Finance symbol, such as AAPL or BBCA.JK. (e.g. AAPL) |
| `statement` | string | no | Which statement to return. Default income. (one of income, balance, cashflow; default income) |
| `period` | string | no | Reporting period: annual, quarterly or trailing (twelve months). Default annual. (one of annual, quarterly, trailing; default annual) |
| `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: `items` (Period[]), `items[].currency` (string), `items[].date` (string), `items[].values` (map), `period` (string), `statement` (string), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/financials?symbol=AAPL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoofinance/similar

Symbols that Yahoo Finance recommends alongside one symbol, most related first, each with a relatedness score.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Ticker symbol, such as AAPL, BBCA.JK or BRK-B. (e.g. AAPL) |
| `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: `score` (number (double)), `symbol` (string)

```bash
curl "https://api.hoshime.com/v1/yahoofinance/similar?symbol=AAPL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
