Yahoo Finance Data API

    by Khristian Kopachelli

    1

    Technical reference for Yahoo Finance public endpoints covering OHLC charts, symbol search, and sparkline data.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Yahoo Finance Data API

    Example session with this skill installed

    Get the last 5 days of OHLC data for BTC-USD and find the ticker symbol for NVIDIA.

    • Read your context and instructions
    • Compiled the yahoo finance data

    I have retrieved the OHLC data for BTC-USD and located the ticker for NVIDIA.

    Yahoo Finance Data Retrieval

    TaskEndpointParametersResult/Status
    Symbol Search/v1/finance/searchq=NVIDIA, quotesCount=1Found: NVDA (NASDAQ)
    Chart Data/v8/finance/chart/BTC-USDrange=5d, interval=1d5 Days OHLCV Retrieved

    BTC-USD 5-Day Historical (Close)

    {
      "symbol": "BTC-USD",
      "currency": "USD",
      "timestamp": [1715212800, 1715299200, 1715385600, 1715472000, 1715558400],
      "indicators": {
        "quote": [{
          "close": [63050.22, 62915.10, 60792.55, 61280.12, 62150.45],
          "volume": [25234500000, 22105000000, 28450000000, 21500000000, 19850000000]
        }]
      }
    }
    

    Next steps

    1. Cache the NVDA symbol mapping for 5 minutes to avoid redundant searches.
    2. Normalize the BTC-USD timestamps from Unix seconds to your local ISO format.
    3. Call /v1/spark if you need a lighter weight payload for multiple crypto pairs.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Financial data integration is often brittle due to undocumented endpoints and aggressive rate limiting. This skill provides a precise technical map for interfacing with Yahoo Finance's unofficial public API endpoints for equities, ETFs, and crypto pairs.

    What it does

    • OHLCV Retrieval fetches time-series quote data including Open, High, Low, Close, and Volume for specific symbols.
    • Symbol Discovery queries the search endpoint to resolve ticker symbols and related news items.
    • Sparkline Generation pulls lightweight close-price data for single or multiple symbols simultaneously.
    • Parametric Filtering provides the correct query parameters for ranges and intervals to avoid truncated responses.
    • Cache Management implements upstream TTL logic to minimize redundant network calls.

    How it works

    1. Identify the asset by using the search endpoint to find the exact ticker symbol for a stock or crypto pair.
    2. Select the data granularity by defining the range and interval parameters for the chart or spark endpoints.
    3. Execute the request via the public query1.finance.yahoo.com gateway using the provided URI structures.
    4. Process the response by handling the upstream API's native JSON format and checking for empty data arrays.

    Frameworks & tools

    Uses standard HTTP/REST patterns compatible with curl, fetch, axios, or any backend language. Targets the Yahoo Finance v1 and v8 query APIs.

    Why this beats prompting it yourself

    Generic LLMs often hallucinate endpoint paths or forget required query parameters like quotesCount. This skill ensures the agent uses stable, tested URI patterns and respects specific 5-minute cache TTLs to avoid 429 rate-limit blocks.

    Use cases

    • Build market monitoring dashboards with real-time price sparklines.
    • Extract historical OHLCV data for technical analysis or backtesting.
    • Map company names to ticker symbols for automated portfolio tracking.
    • Retrieve recent financial news linked to specific market tickers.

    Known limitations

    Coverage is restricted to data exposed by the unofficial public API. Responses require normalization for cross-source comparison and may vary by jurisdiction.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    Terminal / Shell
    Network Access
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill provides the exact technical maps and URI structures for Yahoo Finance's unofficial endpoints, preventing the '429 Rate Limit' errors and hallucinated API paths common when using standard LLM prompts.

    You receive a comprehensive technical reference for the v1 and v8 query APIs, including pre-configured parameters for OHLCV retrieval, symbol search, and multi-symbol sparklines.

    Yes, it supports a wide range of financial instruments including global equities, ETFs, and major cryptocurrency pairs available through the Yahoo Finance public gateway.

    Setup is minimal; once integrated, your agent simply follows the mapped URI patterns to query the finance gateway directly without requiring a private API key.

    The skill includes documentation on handling native JSON responses and implementing upstream TTL (Time-To-Live) logic to ensure data freshness while maintaining high performance.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.