Skip to main content
POST
/
api
/
macrotrends
/
stocks
/
annual-price
/macrotrends/stocks/annual-price
curl --request POST \
  --url https://api.anysite.io/api/macrotrends/stocks/annual-price \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "date": "<string>",
    "close": 123,
    "@type": "@macrotrends_annual_price",
    "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"

count
integer
required

Number of annual bars to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

date
string
required
close
number
required
@type
string
default:@macrotrends_annual_price
yoy_change
number | null