What it does
Marketstack gives end-of-day stock prices, splits and dividends, for example to show a share's closing price. Requests are GET calls with an access_key parameter, and the answers are JSON. Free with a free API key for 100 requests a month and one year of history, non-commercial use only.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free with a free API key for 100 requests a month and one year of history, non-commercial use only.
- Commercial use
- Not on the free plan
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- marketstack.com
More information: https://marketstack.com/documentation
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.marketstack.com/v2/eod?symbols=AAPL&access_key=YOUR_API_KEY'
JavaScript
const response = await fetch("https://api.marketstack.com/v2/eod?symbols=AAPL&access_key=YOUR_API_KEY");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.marketstack.com/v2/eod?symbols=AAPL&access_key=YOUR_API_KEY",
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.