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).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"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 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 30dcurl -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"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| symbol | string | "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 | ||
| data | object | Result payload, or null when the symbol did not resolve. |
| data.items | object[] | 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[].asOfUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.items[].ask | number | Current ask price. |
| data.items[].assetType | string | Instrument class (e.g. EQUITY, ETF, CRYPTOCURRENCY, CURRENCY, INDEX, MUTUALFUND, FUTURE). |
| data.items[].averageVolume | number | Average daily trading volume. |
| data.items[].bid | number | Current bid price. |
| data.items[].change | number | Absolute price change on the day, in the quote currency. |
| data.items[].changePercent | number | Percent price change on the day. |
| data.items[].currency | string | ISO currency the quote is priced in (e.g. USD). Populated whenever the provider has data for the entity. |
| data.items[].dayHigh | number | Highest price so far in the current session. |
| data.items[].dayLow | number | Lowest price so far in the current session. |
| data.items[].exchange | string | Exchange the instrument trades on (e.g. NasdaqGS). Populated whenever the provider has data for the entity. |
| data.items[].fiftyTwoWeekHigh | number | Highest price over the trailing 52 weeks. |
| data.items[].fiftyTwoWeekLow | number | Lowest price over the trailing 52 weeks. |
| data.items[].marketCap | number | Market capitalization in the quote currency. |
| data.items[].marketState | string | Current market state (e.g. REGULAR, PRE, POST, CLOSED). |
| data.items[].name | string | Instrument or company name. Populated whenever the provider has data for the entity. |
| data.items[].open | number | Opening price for the current session. |
| data.items[].previousClose | number | Previous session close price. |
| data.items[].price | number | Current price in the quote currency. |
| data.items[].symbol | string | Resolved ticker symbol for the quote. Populated whenever the provider has data for the entity. |
| data.items[].volume | number | Traded volume for the current session. |
| found | boolean | True 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ção | USD | US$ 0,0022 |
| Preço /mil req. | USD | US$ 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.