Skip to main content
POST
/
api
/
macrotrends
/
stocks
/
financials
/macrotrends/stocks/financials
curl --request POST \
  --url https://api.anysite.io/api/macrotrends/stocks/financials \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "count": 2,
  "timeout": 300,
  "freq": "quarterly"
}
'
[
  {
    "date": "<string>",
    "@type": "@macrotrends_financial_bar",
    "stock_price": 123,
    "value": 123,
    "yoy_change": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
symbol
string
required

Ticker symbol

Minimum string length: 1
Examples:

"AAPL"

"MSFT"

"GOOGL"

metric
enum<string>
required

Financial metric to retrieve

Available options:
revenue,
gross-profit,
ebitda,
net-income,
eps-earnings-per-share-diluted,
shares-outstanding,
research-development-expenses,
selling-general-administrative-expenses,
cost-goods-sold,
total-assets,
total-liabilities,
total-stockholders-equity,
cash-on-hand,
long-term-debt,
book-value-per-share,
free-cash-flow,
pe-ratio,
price-book,
market-cap
count
integer
required

Number of data points to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
freq
enum<string>
default:quarterly

Data frequency

Available options:
quarterly,
annual

Response

Successful Response

date
string
required
@type
string
default:@macrotrends_financial_bar
stock_price
number | null
value
number | null
yoy_change
number | null