polygon.io Scraper
Pricing
$5.00 / 1,000 results
Go to Apify Store
polygon.io Scraper
This Apify Actor fetches time series data for stock ticker symbols using the Polygon.io API. It provides historical and real-time OHLCV (Open, High, Low, Close, Volume) data with customizable time frames and parameters. ormance: Efficient data fetching and processing
4.0 (1)
Pricing
$5.00 / 1,000 results
0
1
1
Last modified
2 days ago
Polygon.io Time Series Data Scraper
This Apify Actor fetches time series data for stock ticker symbols using the Polygon.io API. It provides historical and real-time OHLCV (Open, High, Low, Close, Volume) data with customizable time frames and parameters.
๐ Features
- ๐ Comprehensive Stock Data: Get OHLCV data for any US stock ticker
- โฑ๏ธ Flexible Time Frames: Support for minute, hour, day, week, month, quarter, and year data
- ๐ Data Insights: Automatic calculation of price ranges, volume statistics, and summary metrics
- ๐ง Customizable Parameters: Adjust multipliers, date ranges, and sorting options
- ๐พ Structured Output: Clean, normalized JSON data suitable for analysis and visualization
- ๐ก๏ธ Error Handling: Robust error handling with detailed logging
- ๐ High Performance: Efficient data fetching and processing
๐ฅ Input Configuration
Required Fields
- Ticker Symbol (
ticker
): Stock ticker symbol (e.g., AAPL, MSFT, GOOGL) - Polygon.io API Key (
polygonApiKey
): Your API key from Polygon.io - From Date (
fromDate
): Start date in YYYY-MM-DD format - To Date (
toDate
): End date in YYYY-MM-DD format
Optional Fields
- Timespan (
timespan
): Time frame for each data point (default:day
) - Multiplier (
multiplier
): Multiplier for the timespan (default:1
) - Adjusted Prices (
adjusted
): Include adjusted prices for splits/dividends (default:true
) - Sort Order (
sort
): Result sorting -asc
ordesc
(default:asc
) - Limit (
limit
): Maximum number of data points (default:5000
)
๐ฏ Example Input
{"ticker": "AAPL","polygonApiKey": "YOUR_POLYGON_API_KEY_HERE","fromDate": "2023-01-01","toDate": "2023-01-31","timespan": "day","multiplier": 1,"adjusted": true,"sort": "asc","limit": 1000}
๐ Output Format
Summary Data
{"ticker": "AAPL","totalResults": 21,"priceRange": {"highestPrice": 150.12,"lowestPrice": 142.53},"volumeStats": {"totalVolume": 1234567890,"avgVolume": 58789423}}
Individual Data Points
{"ticker": "AAPL","date": "2023-01-01","open": 145.23,"high": 147.89,"low": 144.56,"close": 146.78,"volume": 45632178}
๐ ๏ธ Quick Start
- Get API Key: Sign up at Polygon.io for a free API key
- Configure Input: Set your ticker, API key, and date range
- Run Actor: Execute and download your financial data
- Analyze: Use the structured JSON output for your analysis
๐ก Use Cases
- Financial Analysis: Analyze stock price movements and trends
- Backtesting: Test trading strategies with historical data
- Portfolio Tracking: Monitor portfolio performance over time
- Risk Assessment: Calculate volatility and risk metrics
- Data Visualization: Create charts and dashboards
- Machine Learning: Train models with financial time series data
๐ง Local Development
# Install dependenciesnpm install# Set your API key in INPUT.json# Run locallynpm start
๐ Deployment
# Deploy to Apifyapify loginapify push
โ Important Notes
- Free Polygon.io accounts include 2 years of historical data
- Rate limits apply to free accounts
- All timestamps are in UTC
- Data includes pre-market, regular, and after-hours sessions
๐ Support
For issues or questions:
- Check Polygon.io API docs
- Review Actor logs for error details
- Verify your API key permissions
Happy Trading! ๐๐
On this page
Share Actor: