API para Yahoo Finance

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.

POST/v1/run/yahoo_finance.quote
Disponibilidade
100,00%
30d · 12 chamadas
Requisições
12
30d · semanal, últimas 12 sem.
Resposta
7,7s
mediana · 30d

Preços

Um preço, em dólares

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "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 da resposta
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 30d
POST /v1/run/yahoo_finance.quote
curl -X POST https://api.getanyapi.com/v1/run/yahoo_finance.quote \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker":"AAPL"}'
CampoTipoValor de exemplo
Corpo da requisição
tickerstring"AAPL"O ticker a consultar.
Resposta
dataobject
data.itemsobject[]Quote records for the ticker: current price, day range, volume, and market cap. Populated whenever the provider has data for the entity.
data.items[].asOfUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
data.items[].assetTypestringInstrument type Yahoo classifies the symbol as (e.g. EQUITY, ETF).
data.items[].changenumberAbsolute price change from the previous close.
data.items[].changePercentnumberPercent price change from the previous close (e.g. 3.14 means +3.14%).
data.items[].dayHighnumberHighest trade price during the current session.
data.items[].dayLownumberLowest trade price during the current session.
data.items[].industrystringIndustry the issuer belongs to.
data.items[].marketCapintegerTotal market capitalization in the security's native currency.
data.items[].namestringThe security's display name, e.g. "Apple Inc.". Populated whenever the provider has data for the entity.
data.items[].previousClosenumberThe previous session's closing price.
data.items[].pricenumberThe latest trade price in the security's native currency. Populated whenever the provider has data for the entity.
data.items[].sectorstringSector the issuer belongs to.
data.items[].symbolstringThe resolved ticker symbol for the quote, e.g. "AAPL". Populated whenever the provider has data for the entity.
data.items[].volumeintegerNumber of shares traded during the current session.
foundboolean
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çãoUSDUS$ 0,00105
Preço /mil req.USDUS$ 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.

Custa a partir de US$ 1,05 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

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 resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

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. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.