# Yahoo API: Get price history

> Returns Yahoo Finance daily, weekly or monthly price history and total adjusted-close return for a stock, fund, index or cryptocurrency.

Unofficial. Not affiliated with or endorsed by Yahoo.

- Page: https://fous.com/methods/finance.yahoo.com/get-price-history
- Method: `finance.yahoo.com/get_price_history`, version 1
- Website: finance.yahoo.com
- Returns: name, ticker, currency, total return percent, price rows (date, open, high, low, close, adjusted close, volume)
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `asset` | string | yes | `"Apple"` | Company, fund, index, or cryptocurrency name or ticker, for example Apple, AAPL, S&P 500, or Bitcoin. |
| `end_date` | string | no | `"2026-09-18"` | Last date to include (YYYY-MM-DD), for example 2026-09-18. Defaults to today. |
| `frequency` | string | no |  | Price grouping, for example weekly. Defaults to daily. One of "daily", "weekly", "monthly". Default "daily". |
| `start_date` | string | no | `"2026-09-01"` | First date to include (YYYY-MM-DD), for example 2026-01-01. Defaults to one year ago. |

## Output

From a run on Oct 23, 2026, shortened. Its input:

```json
{
  "asset": "Apple",
  "end_date": "2026-09-18",
  "start_date": "2026-09-01"
}
```

Its output:

```json
{
  "name": "Apple Inc.",
  "prices": [
    {
      "low": 314.7300109863281,
      "date": "2026-09-01",
      "high": 327.29998779296875,
      "open": 316.9800109863281,
      "close": 325.1300048828125,
      "volume": 53167400,
      "adjusted_close": 325.1300048828125
    },
    {
      "low": 323.5299987792969,
      "date": "2026-09-02",
      "high": 328.3999938964844,
      "open": 326.8699951171875,
      "close": 324.9599914550781,
      "volume": 33776400,
      "adjusted_close": 324.9599914550781
    },
    {
      "low": 324.1099853515625,
      "date": "2026-09-03",
      "high": 330.80999755859375,
      "open": 324.8699951171875,
      "close": 328.2099914550781,
      "volume": 37225800,
      "adjusted_close": 328.2099914550781
    }
  ],
  "ticker": "AAPL",
  "currency": "USD",
  "yahoo_finance_link": "https://finance.yahoo.com/quote/AAPL/history/",
  "total_return_percent": 3.383262028973544
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"finance.yahoo.com/get_price_history","input":{"asset":"Apple","end_date":"2026-09-18","start_date":"2026-09-01"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Show me the weekly closing prices for Tesla from January 2025 through June 2025, with the total return percentage.
- I need the monthly adjusted close history for the Vanguard S&P 500 ETF over the last three years.
- Pull daily open, high, low and volume data for Microsoft between 2026-03-01 and 2026-03-31 on Yahoo Finance.
- What has Bitcoin's total return been over the past five years, grouped monthly?
- Get the historical daily price rows for the NASDAQ Composite index for the period ending 2026-09-18, starting 2026-01-01.

## Input schema

```json
{
  "type": "object",
  "required": [
    "asset"
  ],
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "description": "Company, fund, index, or cryptocurrency name or ticker, for example Apple, AAPL, S&P 500, or Bitcoin."
    },
    "end_date": {
      "type": "string",
      "description": "Last date to include (YYYY-MM-DD), for example 2026-09-18. Defaults to today."
    },
    "frequency": {
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ],
      "type": "string",
      "default": "daily",
      "description": "Price grouping, for example weekly. Defaults to daily."
    },
    "start_date": {
      "type": "string",
      "description": "First date to include (YYYY-MM-DD), for example 2026-01-01. Defaults to one year ago."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "name",
    "ticker",
    "currency",
    "total_return_percent",
    "yahoo_finance_link",
    "prices"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "prices": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "date",
          "open",
          "high",
          "low",
          "close",
          "adjusted_close",
          "volume"
        ],
        "properties": {
          "low": {
            "type": [
              "number",
              "null"
            ]
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "high": {
            "type": [
              "number",
              "null"
            ]
          },
          "open": {
            "type": [
              "number",
              "null"
            ]
          },
          "close": {
            "type": [
              "number",
              "null"
            ]
          },
          "volume": {
            "type": [
              "integer",
              "null"
            ]
          },
          "adjusted_close": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "maxItems": 5000
    },
    "ticker": {
      "type": "string"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "yahoo_finance_link": {
      "type": "string",
      "format": "uri"
    },
    "total_return_percent": {
      "type": [
        "number",
        "null"
      ],
      "description": "Percentage change from first to last adjusted close; null when unavailable."
    }
  },
  "additionalProperties": false
}
```

## See more

- [Yahoo API: Get quote](https://fous.com/methods/finance.yahoo.com/get-quote.md): Looks up a stock, fund, index, or cryptocurrency by name or ticker and returns its latest displayed price and key statistics. Unavailable figures are null; quotes may be delayed.
- [Yahoo API: Get company news](https://fous.com/methods/finance.yahoo.com/get-company-news.md): Looks up a company by name or ticker on Yahoo Finance and returns its latest news headlines, with article summaries when the article page provides one.
- [Yahoo API: Get earnings calendar](https://fous.com/methods/finance.yahoo.com/get-earnings-calendar.md): Gets earnings reports for a date range, or the upcoming reports and up to four previous reports for one company.
- [Yahoo API: Get player stats](https://fous.com/methods/sports.yahoo.com/get-player-stats.md): Looks up a Yahoo Sports player by name and returns the player's regular-season statistics for a season, alongside career totals. Each stat includes season and career values.
- [Yahoo API: List market movers](https://fous.com/methods/finance.yahoo.com/list-market-movers.md): Lists Yahoo Finance's top gainers, top losers, most active stocks, or regional trending tickers in Yahoo's order, with price, change, volume and market cap.
- [Yahoo API: Get analyst ratings](https://fous.com/methods/finance.yahoo.com/get-analyst-ratings.md): Shows analyst recommendations, price targets, earnings estimates and recent rating changes for a public company on Yahoo Finance.
- [Yahoo API: Search Yahoo News](https://fous.com/methods/yahoo.com/search-news.md): Searches Yahoo News articles by keyword, newest first or by relevance, with optional publication dates and pages; returns only articles hosted on Yahoo News, with authors, original publisher and section.
- [Yahoo API: Get scores](https://fous.com/methods/sports.yahoo.com/get-scores.md): Gets scores and schedules for a league on a date, or for the football week that contains the date. Results can be limited to one team. Venue names come from each game page, for up to 22 games.
- [All Yahoo methods](https://fous.com/methods/yahoo.com.md)
