Yahoo Finance 报价 API
按股票代码查询股票或 ETF,以标准化 JSON 返回其 Yahoo Finance 行情(价格、市值、成交量和关键指标)。
US$1.05/千次请求,按请求付费,无需订阅。
Summary
News
Research
Chart
Community
Statistics
Historical Data
Profile
Financials
Analysis
Options
Holders
NasdaqGS - Real Time Price • USD
Apple Inc. (AAPL)
At close: 4:00:01 PM EDT
Trade Apple Inc. on CoinbaseTrending tickers
{"symbol": "AAPL","name": "Apple Inc.","price": 227.52,"previousClose": 224.31,"change": 3.21,"changePercent": 1.43,"dayLow": 224.9,"dayHigh": 228.15,... 还有 6 个字段}
价格
Yahoo Finance 报价 API 价格
试一试
一个请求获取 Yahoo Finance 报价
这个示例展示了 18 个字段中的 17 个。查看全部字段
{
"found": true,
"data": {
"items": [
{
"symbol": "AAPL",
"name": "Apple Inc.",
"price": 227.52,
"previousClose": 224.31,
"change": 3.21,
"changePercent": 1.43,
"dayLow": 224.9,
"dayHigh": 228.15,
"volume": 48213700,
"marketCap": 3467000000000,
"assetType": "EQUITY",
"sector": "Technology",
"industry": "Consumer Electronics",
"asOfUtc": 1758999600
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- tickerstring
AAPL
要查询的股票代码。
响应
JSON,每个字段一个示例值。
Quote records for the ticker: current price, day range, volume, and market cap. Populated whenever the provider has data for the entity.
- asOfUtcnumber
1758999600
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- assetTypestring
EQUITY
Instrument type Yahoo classifies the symbol as (e.g. EQUITY, ETF).
- changenumber
3.21
Absolute price change from the previous close.
- changePercentnumber
1.43
Percent price change from the previous close (e.g. 3.14 means +3.14%).
- dayHighnumber
228.15
Highest trade price during the current session.
- dayLownumber
224.9
Lowest trade price during the current session.
- industrystring
Consumer Electronics
Industry the issuer belongs to.
- marketCapinteger
3467000000000
Total market capitalization in the security's native currency.
- namestring
Apple Inc.
The security's display name, e.g. "Apple Inc.". Populated whenever the provider has data for the entity.
- previousClosenumber
224.31
The previous session's closing price.
- pricenumber
227.52
The latest trade price in the security's native currency. Populated whenever the provider has data for the entity.
- sectorstring
Technology
Sector the issuer belongs to.
- symbolstring
AAPL
The resolved ticker symbol for the quote, e.g. "AAPL". Populated whenever the provider has data for the entity.
- volumeinteger
48213700
Number of shares traded during the current session.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 Yahoo Finance 报价 API
AnyAPI 的 Yahoo Finance 报价 API 只需一次 POST 请求 /v1/run/yahoo_finance.quote,就以统一格式的 JSON 返回 Yahoo Finance 数据。按股票代码查询股票或 ETF,以标准化 JSON 返回其 Yahoo Finance 行情(价格、市值、成交量和关键指标)。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千次请求 US$1.05 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Yahoo Finance 报价 API 调用中有 86.9% 成功,响应时间中位数为 5.2 秒,共测量 906 次调用。