API para Google Finance

API para Google Finance: Cotação

Obtenha uma cotação ao vivo de qualquer ação, índice, ETF, fundo mútuo, par de moedas ou símbolo de cripto: nome, preço atual, variação absoluta e percentual no dia, moeda da cotação, bolsa e estado do mercado, além de números intradiários e de referência (abertura, máxima e mínima do dia, fechamento anterior, volume, valor de mercado e a faixa de 52 semanas).

POST/v1/run/google_finance.quote
Requisições
-
30d

Preços

Um preço, em dólares

Provedores
Octopus- atendidas- de disponibilidade- p50US$ 2,20/mil req.preço fixo

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,
        "ask": 12.5,
        "assetType": "general",
        "averageVolume": 12500,
        "bid": 1024,
        "change": 12.5,
        "changePercent": 12.5,
        "currency": "USD",
        "dayHigh": 12.5,
        "dayLow": 12.5,
        "exchange": "example",
        "fiftyTwoWeekHigh": 12.5,
        "fiftyTwoWeekLow": 12.5,
        "marketCap": 12.5,
        "marketState": "CA",
        "name": "Example title",
        "open": 12.5,
        "previousClose": 12.5,
        "price": 19.99,
        "symbol": "example",
        "volume": 12500
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}
Interface da resposta
interface GoogleFinanceQuoteResponse {
  data: {
    items: {
      asOfUtc?: number;
      ask?: number;
      assetType?: string;
      averageVolume?: number;
      bid?: number;
      change?: number;
      changePercent?: number;
      currency?: string;
      dayHigh?: number;
      dayLow?: number;
      exchange?: string;
      fiftyTwoWeekHigh?: number;
      fiftyTwoWeekLow?: number;
      marketCap?: number;
      marketState?: string;
      name?: string;
      open?: number;
      previousClose?: number;
      price: number;
      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/google_finance.quote
curl -X POST https://api.getanyapi.com/v1/run/google_finance.quote \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"AAPL:NASDAQ"}'
CampoTipoValor de exemplo
Corpo da requisição
symbolstring"AAPL:NASDAQ"O símbolo a cotar. Ações dos EUA usam o ticker simples (ex.: AAPL, TSLA); ações de fora dos EUA acrescentam um sufixo de mercado (ex.: VOW3.DE, BABA.HK, BARC.L); índices usam acento circunflexo (ex.: ^GSPC, ^DJI); cripto e moedas usam a forma de par (ex.: BTC-USD, EURUSD=X); fundos mútuos e futuros usam o próprio símbolo (ex.: VFIAX, ES=F). Formas alternativas comuns são aceitas e normalizadas (ex.: AAPL:NASDAQ, .DJI, BTC/USD). Apenas símbolos exatos, não uma busca por nome de empresa.
Resposta
dataobjectResult payload, or null when the symbol did not resolve.
data.itemsobject[]The quote for the requested symbol: name, current price, day change (absolute and percent), quote currency, exchange and market state, plus intraday and reference figures. Up to one element (empty when the symbol did not resolve). 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[].asknumberCurrent ask price.
data.items[].assetTypestringInstrument class (e.g. EQUITY, ETF, CRYPTOCURRENCY, CURRENCY, INDEX, MUTUALFUND, FUTURE).
data.items[].averageVolumenumberAverage daily trading volume.
data.items[].bidnumberCurrent bid price.
data.items[].changenumberAbsolute price change on the day, in the quote currency.
data.items[].changePercentnumberPercent price change on the day.
data.items[].currencystringISO currency the quote is priced in (e.g. USD). Populated whenever the provider has data for the entity.
data.items[].dayHighnumberHighest price so far in the current session.
data.items[].dayLownumberLowest price so far in the current session.
data.items[].exchangestringExchange the instrument trades on (e.g. NasdaqGS). Populated whenever the provider has data for the entity.
data.items[].fiftyTwoWeekHighnumberHighest price over the trailing 52 weeks.
data.items[].fiftyTwoWeekLownumberLowest price over the trailing 52 weeks.
data.items[].marketCapnumberMarket capitalization in the quote currency.
data.items[].marketStatestringCurrent market state (e.g. REGULAR, PRE, POST, CLOSED).
data.items[].namestringInstrument or company name. Populated whenever the provider has data for the entity.
data.items[].opennumberOpening price for the current session.
data.items[].previousClosenumberPrevious session close price.
data.items[].pricenumberCurrent price in the quote currency.
data.items[].symbolstringResolved ticker symbol for the quote. Populated whenever the provider has data for the entity.
data.items[].volumenumberTraded volume for the current session.
foundbooleanTrue when the symbol resolved to a quote.
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,0022
Preço /mil req.USDUS$ 2,20

Dúvidas frequentes

Sobre o endpoint Cotação da API para Google Finance

O endpoint Cotação da AnyAPI para Google Finance retorna dados de Google Finance em JSON normalizado com uma chamada POST para /v1/run/google_finance.quote. Obtenha uma cotação ao vivo de qualquer ação, índice, ETF, fundo mútuo, par de moedas ou símbolo de cripto: nome, preço atual, variação absoluta e percentual no dia, moeda da cotação, bolsa e estado do mercado, além de números intradiários e de referência (abertura, máxima e mínima do dia, fechamento anterior, volume, valor de mercado e a faixa de 52 semanas). A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 2,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal.

Custa a partir de US$ 2,20 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.

Obtenha uma cotação ao vivo de qualquer ação, índice, ETF, fundo mútuo, par de moedas ou símbolo de cripto: nome, preço atual, variação absoluta e percentual no dia, moeda da cotação, bolsa e estado do mercado, além de números intradiários e de referência (abertura, máxima e mínima do dia, fechamento anterior, volume, valor de mercado e a faixa de 52 semanas). 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.