Skip to content

Company metric history, commodity prices and stock index prices

Back to tools

Macrotrends provides long-term financial and economic charts, company metric histories, and yearly commodity and index prices; current-year prices may be incomplete.

Get company metric history

Get annual or quarterly company metric history, newest first, with full values and year-over-year change. Dividend values are trailing twelve-month payouts per share; quarterly employee counts and histories before a company began reporting or paying dividends may be unavailable.

Your information

Metric to retrieve, for example revenue.

Annual or quarterly history, for example annual.

Company name or ticker, for example Apple or AAPL.

1 credit per completed run

The same inputs also work from your code or an AI assistant. See For developers.

Example results

Microsoft, Net Income

Latest value35,766,000,000US dollars
Year-over-year change31.33%

Ticker MSFT, Newest first

Quarter endingValueYear-over-year change

Choose an action

About the Macrotrends tool

Macrotrends returns annual or quarterly company metrics and year-over-year changes; provide a metric and company, and optionally a period.

Get long term price history returns yearly commodity or stock index prices; provide an asset and optionally start and end years.

Built from macrotrends.net. Last checked Sep 29, 2026.

Actions

Get company metric history

1 credit

Get annual or quarterly company metric history, newest first, with full values and year-over-year change. Dividend values are trailing twelve-month payouts per share; quarterly employee counts and histories before a company began reporting or paying dividends may be unavailable.

What you provide

FieldTypeRequiredDescription
MetricmetricTextRequiredMetric to retrieve, for example revenue.Example: Net income
PeriodperiodTextOptionalAnnual or quarterly history, for example annual.Example: Quarterly
CompanycompanyTextRequiredCompany name or ticker, for example Apple or AAPL.Example: MSFT

What you get

FieldTypeDescription
RowsrowsList
Valuerows[].valueNumberFull numeric value in the stated unit.Example: 35766000000
Page URLrows[].page_urlTextCompany metric history page.Example: https://www.macrotrends.net/stocks/charts/MSFT/microsoft/net-income
Fiscal Yearrows[].fiscal_yearNumberFiscal year for annual values; null for quarterly values.Example: 2025
Quarter End Daterows[].quarter_end_dateTextQuarter ending date (YYYY-MM-DD); null for annual values.Example: 2026-06-30
Change Vs Prior Year (%)rows[].change_vs_prior_year_percentNumberPercentage change from the previous year or the same quarter a year before, when available.Example: 31.33
UnitunitTextExample: US dollars
MetricmetricTextExample: Net Income
TickertickerTextExample: MSFT
CompanycompanyTextExample: Microsoft

Example result

For Metric: Net income, Period: Quarterly, Company: MSFT

JSON
{
  "rows": [
    {
      "value": 35766000000,
      "page_url": "https://www.macrotrends.net/stocks/charts/MSFT/microsoft/net-income",
      "fiscal_year": null,
      "quarter_end_date": "2026-06-30",
      "change_vs_prior_year_percent": 31.33
    },
    {
      "value": 31778000000,
      "page_url": "https://www.macrotrends.net/stocks/charts/MSFT/microsoft/net-income",
      "fiscal_year": null,
      "quarter_end_date": "2026-03-31",
      "change_vs_prior_year_percent": 23.06
    },
    {
      "value": 38458000000,
      "page_url": "https://www.macrotrends.net/stocks/charts/MSFT/microsoft/net-income",
      "fiscal_year": null,
      "quarter_end_date": "2025-12-31",
      "change_vs_prior_year_percent": 59.52
    }
  ],
  "unit": "US dollars",
  "metric": "Net Income",
  "ticker": "MSFT",
  "company": "Microsoft"
}

Get long term price history

1 credit

Get decades of yearly commodity or stock-index price history from Macrotrends. Yearly open, high, low and close use daily closing prices for Dow Jones, S&P 500, Nasdaq and copper; gold, silver, crude oil and natural gas use monthly closing prices. Inflation-adjusted value is the final adjusted monthly close for each year where published. The current year may be incomplete.

What you provide

FieldTypeRequiredDescription
AssetassetTextRequiredCommodity or stock index name, for example gold, crude oil, or S&P 500.Example: Gold
End Yearend_yearNumberOptionalLast calendar year to include, for example 2024. Defaults to the last available year.Example: 1973
Start Yearstart_yearNumberOptionalFirst calendar year to include, for example 2000. Defaults to the first available year.Example: 1970

What you get

FieldTypeDescription
UnitunitTextExample: US dollars per pound
AssetassetTextExample: Copper
Price Historyprice_historyList
Yearprice_history[].yearNumberExample: 1973
Page URLprice_history[].page_urlTextExample: https://www.macrotrends.net/1476/copper-prices-historical-chart-data
Year Lowprice_history[].year_lowNumberExample: 0.5062
Year Highprice_history[].year_highNumberExample: 0.6875
Year Openprice_history[].year_openNumberExample: 0.5062
Year Closeprice_history[].year_closeNumberExample: 0.6875
Annual Change (%)price_history[].annual_change_percentNumberExample: 35.82
Average Closing Priceprice_history[].average_closing_priceNumberExample: 0.6
Inflation Adjusted Valueprice_history[].inflation_adjusted_valueNumberExample: 2792.81

Example result

For Asset: Copper, End Year: 1973, Start Year: 1970

JSON
{
  "unit": "US dollars per pound",
  "asset": "Copper",
  "price_history": [
    {
      "year": 1973,
      "page_url": "https://www.macrotrends.net/1476/copper-prices-historical-chart-data",
      "year_low": 0.5062,
      "year_high": 0.6875,
      "year_open": 0.5062,
      "year_close": 0.6875,
      "annual_change_percent": 35.82,
      "average_closing_price": 0.6,
      "inflation_adjusted_value": null
    },
    {
      "year": 1972,
      "page_url": "https://www.macrotrends.net/1476/copper-prices-historical-chart-data",
      "year_low": 0.5,
      "year_high": 0.5265,
      "year_open": 0.5037,
      "year_close": 0.5062,
      "annual_change_percent": 0.5,
      "average_closing_price": 0.51,
      "inflation_adjusted_value": null
    },
    {
      "year": 1971,
      "page_url": "https://www.macrotrends.net/1476/copper-prices-historical-chart-data",
      "year_low": 0.5037,
      "year_high": 0.5325,
      "year_open": 0.5325,
      "year_close": 0.5037,
      "annual_change_percent": 8.42,
      "average_closing_price": 0.52,
      "inflation_adjusted_value": null
    }
  ]
}

For developers

Call it from your code with one request. Change the values in input to run it on new data. To get an API key, open Developers at the bottom of Studio, turn on Developer mode and go to API keys.

cURL
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@macrotrends",
  "visibility": "public",
  "operation": "get_company_metric_history",
  "version": 1,
  "input": {
    "metric": "net_income",
    "period": "quarterly",
    "company": "MSFT"
  },
  "response": {
    "format": "json"
  }
}'

What you can do with it

  • Compare a company’s annual revenue over time
  • Track quarterly company metrics and year-over-year changes
  • Review long-term commodity price movements
  • Compare yearly stock index highs, lows, opens, and closes
  • Examine inflation-adjusted commodity values

Questions about Macrotrends

Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

Can I call this Macrotrends tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

Do I need a Macrotrends account?

No. You only need a Fous account.

How current is the data?

Fous gets the data from macrotrends.net when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

What was a company’s revenue in prior years?

Get company metric history returns annual or quarterly values for a selected metric and company.

How have commodity prices changed over time?

Get long term price history returns yearly price data, including annual change percentages, for a selected asset.

What were a stock index’s yearly highs and lows?

Get long term price history returns yearly highs and lows for a selected stock index.

All Finance toolsBrowse all tools