Macrotrends
Company metric history, commodity prices and stock index prices
Macrotrends provides long-term financial and economic charts, company metric histories, and yearly commodity and index prices; current-year prices may be incomplete.
Your information
Metric to retrieve, for example revenue.
Annual or quarterly history, for example annual.
Company name or ticker, for example Apple or AAPL.
Example results
- Unit
- US dollars per share
- Metric
- Earnings Per Share
- Ticker
- AAPL
- Company
- Apple
- Rows
Rows Value Page URL Fiscal Year Quarter End Date Change Vs Prior Year (%) 7.462025—22.76.082024—-0.826.132023—0.336.112022—8.915.612021—71.043.282020—10.442.972019—-0.342.982018—29.572.32017—10.582.082016—-9.962.312015—43.481.612014—13.381.422013—-10.131.582012—59.60.992011——
About Macrotrends
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 by Fous from macrotrends.net and checked automatically; it last passed a check on Sep 29, 2026. Fous is not affiliated with Macrotrends.
Actions
Get company metric history
1 credit per runGet 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
| Field | Type | Required | Description |
|---|---|---|---|
Metricmetric | Text | Required | Metric to retrieve, for example revenue.Example: Net income |
Periodperiod | Text | Optional | Annual or quarterly history, for example annual.Example: Quarterly |
Companycompany | Text | Required | Company name or ticker, for example Apple or AAPL.Example: MSFT |
What you get
| Field | Type | Description |
|---|---|---|
Rowsrows | List | |
Valuerows[].value | Number | Full numeric value in the stated unit.Example: 7.46 |
Page URLrows[].page_url | Text | Company metric history page.Example: https://www.macrotrends.net/stocks/charts/AAPL/apple/eps-earnings-per-share-dil… |
Fiscal Yearrows[].fiscal_year | Number | Fiscal year for annual values; null for quarterly values.Example: 2025 |
Quarter End Daterows[].quarter_end_date | Text | Quarter ending date (YYYY-MM-DD); null for annual values. |
Change Vs Prior Year (%)rows[].change_vs_prior_year_percent | Number | Percentage change from the previous year or the same quarter a year before, when available.Example: 22.7 |
Unitunit | Text | Example: US dollars per share |
Metricmetric | Text | Example: Earnings Per Share |
Tickerticker | Text | Example: AAPL |
Companycompany | Text | Example: Apple |
Example result
For Metric: Earnings per share, Period: Annual, Company: Apple
{
"rows": [
{
"value": 7.46,
"page_url": "https://www.macrotrends.net/stocks/charts/AAPL/apple/eps-earnings-per-share-diluted",
"fiscal_year": 2025,
"quarter_end_date": null,
"change_vs_prior_year_percent": 22.7
},
{
"value": 6.08,
"page_url": "https://www.macrotrends.net/stocks/charts/AAPL/apple/eps-earnings-per-share-diluted",
"fiscal_year": 2024,
"quarter_end_date": null,
"change_vs_prior_year_percent": -0.82
},
{
"value": 6.13,
"page_url": "https://www.macrotrends.net/stocks/charts/AAPL/apple/eps-earnings-per-share-diluted",
"fiscal_year": 2023,
"quarter_end_date": null,
"change_vs_prior_year_percent": 0.33
}
],
"unit": "US dollars per share",
"metric": "Earnings Per Share",
"ticker": "AAPL",
"company": "Apple"
}Get long term price history
1 credit per runGet 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
| Field | Type | Required | Description |
|---|---|---|---|
Assetasset | Text | Required | Commodity or stock index name, for example gold, crude oil, or S&P 500.Example: Gold |
End Yearend_year | Number | Optional | Last calendar year to include, for example 2024. Defaults to the last available year.Example: 1973 |
Start Yearstart_year | Number | Optional | First calendar year to include, for example 2000. Defaults to the first available year.Example: 1970 |
What you get
| Field | Type | Description |
|---|---|---|
Unitunit | Text | Example: US dollars per pound |
Assetasset | Text | Example: Copper |
Price Historyprice_history | List | |
Yearprice_history[].year | Number | Example: 1973 |
Page URLprice_history[].page_url | Text | Example: https://www.macrotrends.net/1476/copper-prices-historical-chart-data |
Year Lowprice_history[].year_low | Number | Example: 0.5062 |
Year Highprice_history[].year_high | Number | Example: 0.6875 |
Year Openprice_history[].year_open | Number | Example: 0.5062 |
Year Closeprice_history[].year_close | Number | Example: 0.6875 |
Annual Change (%)price_history[].annual_change_percent | Number | Example: 35.82 |
Average Closing Priceprice_history[].average_closing_price | Number | Example: 0.6 |
Inflation Adjusted Valueprice_history[].inflation_adjusted_value | Number | Example: 2792.81 |
Example result
For Asset: Copper, End Year: 1973, Start Year: 1970
{
"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
Run this workflow from your own code. In Studio, turn on Developer mode and create an API key.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"
curl 'https://api.fous.com/v1/query' \
--fail-with-body --silent --show-error --max-time 120 \
-H "Authorization: Bearer $FOUS_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
Is Fous affiliated with Macrotrends?
No. Fous is not affiliated with Macrotrends. This workflow reads the public macrotrends.net website and returns its data.
How much does it cost?
Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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.