Track Stock Prices with ScrapeGraphAI, Yahoo Finance & Google Sheets - n8n Workflow | Neura Market

    Track Stock Prices with ScrapeGraphAI, Yahoo Finance & Google Sheets

    # AI-Powered Stock Tracker with Yahoo Finance & Google Sheets ![Stock Tracker Workflow](https://via.placeholder.com/800x400/4A90E2/FFFFFF?text=AI-Powered+Stock+Tracker+Workflow+Preview) **COMMUNITY TEMPLATE DISCLAIMER: This is a community-contributed template that uses ScrapeGraphAI (a community node). Please ensure you have the ScrapeGraphAI community node installed in your n8n instance before using this template.** This automated workflow monitors stock prices by scraping real-time data from Yahoo Finance. It uses a scheduled trigger to run at specified intervals, extracts key stock metrics using AI-powered extraction, formats the data through a custom code node, and automatically saves the structured information to Google Sheets for tracking and analysis. ## Pre-conditions/Requirements ### Prerequisites - n8n instance (self-hosted or cloud) - ScrapeGraphAI community node installed - Google Sheets API access - Yahoo Finance access (no API key required) ### Required Credentials - **ScrapeGraphAI API Key** - For web scraping capabilities - **Google Sheets OAuth2** - For spreadsheet integration ### Google Sheets Setup Create a Google Sheets document with the following column structure: | Column A | Column B | Column C | Column D | Column E | Column F | Column G | |----------|----------|----------|----------|----------|----------|----------| | **symbol** | **current_price** | **change** | **change_percent** | **volume** | **market_cap** | **timestamp** | | AAPL | 225.50 | +2.15 | +0.96% | 45,234,567 | 3.45T | 2024-01-15 14:30:00 | ## How it works This automated workflow monitors stock prices by scraping real-time data from Yahoo Finance. It uses a scheduled trigger to run at specified intervals, extracts key stock metrics using AI-powered extraction, formats the data through a custom code node, and automatically saves the structured information to Google Sheets for tracking and analysis. ## Key Steps: - **Scheduled Trigger**: Runs automatically at specified intervals to collect fresh stock data - **AI-Powered Scraping**: Uses ScrapeGraphAI to intelligently extract stock information (symbol, current price, price change, change percentage, volume, and market cap) from Yahoo Finance - **Data Processing**: Formats extracted data through a custom Code node for optimal spreadsheet compatibility and handles both single and multiple stock formats - **Automated Storage**: Saves all stock data to Google Sheets with proper column mapping for easy filtering, analysis, and historical tracking ## Set up steps **Setup Time: 5-10 minutes** 1. **Configure Credentials**: Set up your ScrapeGraphAI API key and Google Sheets OAuth2 credentials 2. **Customize Target**: Update the website URL in the ScrapeGraphAI node to your desired stock symbol (currently set to AAPL) 3. **Configure Schedule**: Set your preferred trigger frequency (daily, hourly, etc.) for stock price monitoring 4. **Map Spreadsheet**: Connect to your Google Sheets document and configure column mapping for the stock data fields ## Node Descriptions ### Core Workflow Nodes: - **Schedule Trigger** - Initiates the workflow at specified intervals - **Yahoo Finance Stock Scraper** - Extracts real-time stock data using ScrapeGraphAI - **Stock Data Formatter** - Processes and formats extracted data for spreadsheet compatibility - **Google Sheets Stock Logger** - Saves formatted stock data to your spreadsheet ### Data Flow: 1. **Trigger** → **Scraper** → **Formatter** → **Logger** ## Customization Examples ### Track Multiple Stocks ```javascript // In the ScrapeGraphAI node, modify the URL to track different stocks: const stockSymbols = ['AAPL', 'GOOGL', 'MSFT', 'TSLA']; const baseUrl = 'https://finance.yahoo.com/quote/'; ``` ### Add Additional Data Fields ```javascript // In the Code node, extend the data structure: const extendedData = { ...stockData, pe_ratio: extractedData.pe_ratio, dividend_yield: extractedData.dividend_yield, day_range: extractedData.day_range }; ``` ### Custom Scheduling ```javascript // Modify the Schedule Trigger for different frequencies: // Daily at 9:30 AM (market open): 0 30 9 * * * // Every 15 minutes during market hours: 0 */15 9-16 * * 1-5 // Weekly on Monday: 0 0 9 * * 1 ``` ## Data Output Format The workflow outputs structured JSON data with the following fields: ```json { "symbol": "AAPL", "current_price": 225.50, "change": "+2.15", "change_percent": "+0.96%", "volume": "45,234,567", "market_cap": "3.45T", "timestamp": "2024-01-15 14:30:00Z" } ``` ## Troubleshooting ### Common Issues 1. **ScrapeGraphAI Rate Limits** - Implement delays between requests 2. **Yahoo Finance Structure Changes** - Update scraping prompts 3. **Google Sheets Permission Errors** - Verify OAuth2 credentials and document permissions ### Performance Tips - Use appropriate trigger intervals (avoid excessive scraping) - Implement error handling for network issues - Consider data validation before saving to

    Platform
    n8n
    Category
    Data & Analytics
    Price
    Free
    Creator
    vinci-king-01
    • code
    • stickyNote
    • googleSheets
    • scheduleTrigger
    • scrapegraphAi
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related Data & Analytics workflows

    • Generate AI viral videos with VEO 3 and upload to TikTokFree
    Generate a daily multi-asset market report with TwelveData, Groq and Google Sheets
    Free
  1. Build an OpenAI RAG system with document upload, semantic search and cachingFree
  2. Automate Website Content Scraping and SEO Keyword Extraction with GPT-4o-mini and AirtableFree
  3. Process Contact Form Submissions with Validation and MongoDB StorageFree
  4. Add webhook data to a Google SheetFree
  5. More from vinci-king-01

    • Blockchain Monitor with ScrapeGraphAI Risk Detection, Instant Alerts, and Slack Integration
    • Automated Dynamic Pricing with AI: Competitor Monitoring & Revenue Optimization
    All Data & Analytics workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.