Finnhub's API at https://finnhub.io/api/v1 serves real-time quotes, company fundamentals, and market news.
Get a free key at finnhub.io and send it as the X-Finnhub-Token header (or token in the query string). In the examples it's written {{FINNHUB_API_KEY}}.
Full reference: https://finnhub.io/docs/api
c is the current price, pc the previous close.
curl "https://finnhub.io/api/v1/quote?symbol=AAPL" \
-H "X-Finnhub-Token: {{FINNHUB_API_KEY}}"
curl "https://finnhub.io/api/v1/stock/profile2?symbol=AAPL" \
-H "X-Finnhub-Token: {{FINNHUB_API_KEY}}"
curl "https://finnhub.io/api/v1/company-news?symbol=AAPL&from=2026-09-01&to=2026-09-23" \
-H "X-Finnhub-Token: {{FINNHUB_API_KEY}}"