API para Yahoo Finance: Cotação
Consulte uma ação ou ETF pelo ticker e receba a cotação do Yahoo Finance (preço, valor de mercado, volume e principais indicadores) em JSON normalizado.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"items": [
{
"asOfUtc": 12.5,
"assetType": "general",
"change": 12.5,
"changePercent": 12.5,
"dayHigh": 12.5,
"dayLow": 12.5,
"industry": "general",
"marketCap": 42,
"name": "Example title",
"previousClose": 12.5,
"price": 19.99,
"sector": "example",
"symbol": "example",
"volume": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface YahooFinanceQuoteResponse {
data: {
items: {
asOfUtc?: number;
assetType?: string;
change?: number;
changePercent?: number;
dayHigh?: number;
dayLow?: number;
industry?: string;
marketCap?: number;
name?: string;
previousClose?: number;
price: number;
sector?: string;
symbol?: string;
volume?: number;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/yahoo_finance.quote \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker":"AAPL"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| ticker | string | "AAPL"O ticker a consultar. |
| Resposta | ||
| data | object | |
| data.items | object[] | Quote records for the ticker: current price, day range, volume, and market cap. Populated whenever the provider has data for the entity. |
| data.items[].asOfUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.items[].assetType | string | Instrument type Yahoo classifies the symbol as (e.g. EQUITY, ETF). |
| data.items[].change | number | Absolute price change from the previous close. |
| data.items[].changePercent | number | Percent price change from the previous close (e.g. 3.14 means +3.14%). |
| data.items[].dayHigh | number | Highest trade price during the current session. |
| data.items[].dayLow | number | Lowest trade price during the current session. |
| data.items[].industry | string | Industry the issuer belongs to. |
| data.items[].marketCap | integer | Total market capitalization in the security's native currency. |
| data.items[].name | string | The security's display name, e.g. "Apple Inc.". Populated whenever the provider has data for the entity. |
| data.items[].previousClose | number | The previous session's closing price. |
| data.items[].price | number | The latest trade price in the security's native currency. Populated whenever the provider has data for the entity. |
| data.items[].sector | string | Sector the issuer belongs to. |
| data.items[].symbol | string | The resolved ticker symbol for the quote, e.g. "AAPL". Populated whenever the provider has data for the entity. |
| data.items[].volume | integer | Number of shares traded during the current session. |
| found | boolean | |
| 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. |
| Preço | ||
| Preço por requisição | USD | US$ 0,00105 |
| Preço /mil req. | USD | US$ 1,05 |
Dúvidas frequentes
Sobre o endpoint Cotação da API para Yahoo Finance
O endpoint Cotação da AnyAPI para Yahoo Finance retorna dados de Yahoo Finance em JSON normalizado com uma chamada POST para /v1/run/yahoo_finance.quote. Consulte uma ação ou ETF pelo ticker e receba a cotação do Yahoo Finance (preço, valor de mercado, volume e principais indicadores) em JSON normalizado. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,05 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Cotação da API para Yahoo Finance feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 7,7 segundos, em 12 chamadas medidas.