# Yahoo Finance Data API

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

Yahoo Finance Data API is a paid AI agent skill on Agensi by Khristian Kopachelli, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Khristian Kopachelli](https://www.agensi.io/creators/khristian-kopachelli)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/yahoo-finance-data-api
- Tags: trading, yahoo-finance, stocks, crypto-api, market-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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Yahoo Finance Data API skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent the common rate-limiting issues associated with Yahoo Finance data?

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.

### What specific technical assets are included in this purchase?

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.

### Can this skill be used to track cryptocurrency prices as well as stocks?

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

### Does this skill require me to sign up for a specific Yahoo Finance API key?

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.

### How does the skill handle data caching and response parsing?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
