Before you start
- An email address
Create your Alpha Vantage API key
- 1
Open the key page
- 2
Fill in the short form
Choose what best describes you (e.g. Investor or Software developer), add an organization if you have one, and enter your email.
- 3
Claim the key
Click GET FREE API KEY. The key appears on the page immediately; copy it. Keep the email too, since the key is tied to it.
- 4
Upgrade only if you need to
If 25 requests a day is too few, buy a premium plan from the same site; your existing key is upgraded in place.
Test the key
Before wiring the key into a strategy, make one request by hand. It separates “the key is wrong” from “my code is wrong”.
curl -s "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=IBM&apikey=$ALPHA_VANTAGE_API_KEY" | head -c 400Meta Data block followed by Time Series (Daily) means the key works. An Information message means the limit or a premium function.Add the key to your AlgoGP project
- 1
Open your project’s APIs & keys tab
Open the strategy project, select APIs & keys, and under Platforms choose Alpha Vantage.
- 2
Paste each value
Paste the values into
ALPHA_VANTAGE_API_KEYand click Save. Values are encrypted at rest, never shown again and never written into code or exports. - 3
Run locally with the same names
Exported projects read the same names from
.env(copy.env.example). Keep.envout of version control.
ALPHA_VANTAGE_API_KEY=paste-your-value-hereKeep it out of URLs you share
Because the key travels in the query string, it ends up in shell history, proxy logs and screenshots. Store it in AlgoGP Keys & secrets or .env, and redact URLs before posting them anywhere.
Frequently asked questions
How many Alpha Vantage keys can I have?
One free key per person. Spreading requests across several free keys breaks the terms; upgrade instead.
Does the Alpha Vantage key expire?
No. A free key keeps working as long as it is used within the terms.
Turn Alpha Vantage data into a tested strategy
Backtest an idea in the browser, then export Python whose live loop reads candles straight from Alpha Vantage with your own key.
- Generated Alpha Vantage candle fetcher, closed bars only
- An AI copilot that writes and revises the rules
- Pair it with Alpaca, Binance, OANDA or another broker
Free plan, no card required.
How the Alpha Vantage API works
AlgoGP is not affiliated with Alpha Vantage. Menus get renamed from time to time; if a label differs, the official documentation has the current path.