Prerequisites
Get an Alpha Vantage API Key
Visit
https://www.alphavantage.co, create a free account, and copy your API key.
Install the Plugin in Bubble
Ensure that the WGD - Alpha Vantage plugin is installed via the Bubble Plugin tab.
1. Add Your API Key
In the API plugin configuration under "Shared Headers for all calls":
Key: apikey
Value: Your API key (e.g., ZB4BSAXHELTVRDC)
Set it to be a "Secret"
2. Stock Time Series Endpoints
Intraday
Name: Intraday
URL:
https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=[symbol]&interval=[interval]
Parameters:
symbol (e.g., IBM)
interval (e.g., 5min)
Use as: Data
Data type: JSON
Daily, Weekly, Monthly
These calls follow the same format:
Change function=TIME_SERIES_DAILY, WEEKLY, or MONTHLY
Add a symbol parameter (e.g., IBM)
3. Company Financial Data
Income Statement, Balance Sheet, Cash Flow, Earnings
Each of these uses a different function query:
Example: INCOME_STATEMENT, BALANCE_SHEET, CASH_FLOW, EARNINGS
URL format:
https://www.alphavantage.co/query?function=[FUNCTION]&symbol=[symbol]
Add the symbol parameter (e.g., IBM)
Company Overview
Function: OVERVIEW
Returns company metadata like name, description, sector, etc.
4. News and Sentiment (Alpha Intelligence)
Function: NEWS_SENTIMENT
URL format:
https://www.alphavantage.co/query?function=NEWS_SENTIMENT&tickers=[tickers]&topics=[topics]
Parameters:
tickers (e.g., AAPL)
topics (e.g., technology)
5. Forex Endpoints
Daily, Weekly, Monthly Forex
URL format:
https://www.alphavantage.co/query?function=FX_[DAILY|WEEKLY|MONTHLY]&from_symbol=[From]&to_symbol=[To]
Parameters:
From (e.g., EUR)
To (e.g., USD)
6. Crypto Endpoints
Intraday, Daily, Weekly, Monthly
Function examples:
CRYPTO_INTRADAY
DIGITAL_CURRENCY_DAILY
DIGITAL_CURRENCY_WEEKLY
DIGITAL_CURRENCY_MONTHLY
Parameters:
symbol (e.g., ETH)
market (e.g., USD)
7. Search Symbol Endpoint
Function: SYMBOL_SEARCH
URL format:
https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=[keywords]
Useful for building dynamic symbol lookups based on company names
8. Tournament Portfolio
Function: TOURNAMENT_PORTFOLIO
Parameter: season (e.g., 2021-09)
Displays sample portfolios and performance insights