Skip to content
dino.markets
DocsPricing
StocksSee the stocks API →CryptoSee the crypto API →CommoditiesSee the commodities API →EURUSDCurrenciesSee the currencies API →EconomicsSee the economics API →CoverageSee the coverage →
  • StocksStocks and ETFs on 42 exchanges, US funds and crypto
  • CryptoPrices and history for crypto pairs
  • CommoditiesGold in 31 currencies, other metals and oil in US dollars
  • CurrenciesHistory and conversion for 143 currencies
  • EconomicsInflation, GDP, jobs and yield curves
  • CoverageEvery country, currency, commodity and exchange the APIs cover
Build withDocsEndpointsMCPllms.txt
GuidesRead the guides →fxUse casesSee the use cases →dino.marketsCompareSee the comparisons →ChangelogSee what's new →
  • GuidesStep by step, with code you can run
  • Use casesThe calls each kind of app makes
  • CompareHow dino.markets sits against other data APIs
  • ChangelogNew data, countries and features
Build withDocsEndpointsMCPllms.txt
Sign inSign-ups paused

Home/Guides/How to get stock prices in Excel

How to get stock prices in Excel

Get stock prices in Excel with Power Query and one API key. The query loads the latest price into a table and refreshes when you ask or every few minutes.

fx

dino.markets is a financial data API for apps and AI agents with stocks and ETFs on 42 exchanges, a free plan and paid plans from $29 a month (as of November 2026). This guide loads the latest price of a stock into an Excel table with Power Query, and refreshes it when you ask or on a timer. The whole query is below, and the sections after it explain each part.

let
    Source = Json.Document(Web.Contents(
        "https://api.dino.markets/v1/equities/XNAS:MSFT/price",
        [Headers = [Authorization = "Bearer " & DinoKey]]
    )),
    AsTable = Table.FromRecords({Source}),
    Picked = Table.SelectColumns(AsTable, {"symbol", "price", "currency", "change_percent", "timestamp"}, MissingField.UseNull),
    Typed = Table.TransformColumnTypes(Picked, {{"price", type number}, {"change_percent", type number}}, "en-US")
in
    Typed

Before you start

  • Microsoft 365 for Windows or Mac. Power Query ships with Excel there. Menu names below are for the Windows desktop app, and the Mac menus are close but not the same.
  • A dino.markets API key.
  • Each successful request counts against your plan’s monthly limit, and every refresh makes one request for each query. Failed requests do not count.

Why not a formula

The WEBSERVICE() function cannot send a header. dino.markets reads your key only from the Authorization header and refuses keys in the address, so WEBSERVICE() cannot reach it. Power Query can send headers, so use that.

Get a key

Sign up for the Free plan, which needs no card. Then open keys in the dashboard and create a key. The key will sit inside the workbook, so make one just for it.

Open Power Query

Open a new workbook. Choose Data, then Get Data, then From Other Sources, then From Web. In the box that opens, choose Advanced.

Under URL parts, enter this address:

https://api.dino.markets/v1/equities/XNAS:MSFT/price

Under HTTP request header parameters, pick Authorization on the left and enter Bearer followed by your key on the right. Keep the space after Bearer. Choose OK.

If Excel asks how to connect, choose Anonymous. The key travels in the header, so no other sign-in is needed.

Read the request

The id in the address is the exchange code, a colon and the ticker, for example XNAS:MSFT for Microsoft on Nasdaq. A bare US ticker such as MSFT also works when it names one US listing.

Power Query shows one row of fields. The response is shown below.

Example response from 13 November 2026. The price changes all day, the fields stay the same.

{
  "id": "XNAS:MSFT",
  "symbol": "MSFT",
  "currency": "USD",
  "price": "522.10",
  "previous_close": "523.00",
  "change": "-0.90",
  "change_percent": "-0.17",
  "volume": "128104",
  "market_session": "open",
  "timestamp": "2026-11-13T14:59:00Z",
  "stale": false,
  "delayed": true
}

The price is a decimal string. delayed appears, as true, when the price is 15 minutes late. Fields such as change_percent are left out when they are not known, so both queries below pick columns with MissingField.UseNull.

Store the key in a parameter

Do not paste the key into the query code. In the Power Query window, choose Home, then Manage Parameters, then New Parameter. Name it DinoKey, set Type to Text, enter your key as the Current Value and choose OK. Both queries on this page read it as DinoKey in the Headers line.

The workbook still stores the key, so do not share the file (see Keep the key safe).

Turn the JSON into a table

When the Power Query window opens, the data shows as a Record. Choose Home, then Advanced Editor, and replace the code with the query at the top of this page. It reads your key from the DinoKey parameter you created above.

The query does four things. It calls the address with the header, turns the record into a one-row table, keeps five columns, and sets price and change_percent to numbers. The "en-US" at the end makes Excel read the dot as a decimal point, whatever your region is.

Choose Done, then Close and Load. The row appears on a sheet as a table.

Add more stocks

To get several stocks in one call, use GET /v1/equities/prices with ids, a comma-separated list of up to 50. It counts as one request, however many ids you send. Open a second query with this code.

let
    Source = Json.Document(Web.Contents(
        "https://api.dino.markets/v1/equities/prices",
        [Headers = [Authorization = "Bearer " & DinoKey], Query = [ids = "XNAS:MSFT,XNAS:NVDA,XNAS:AAPL"]]
    )),
    AsTable = Table.FromRecords(Source[prices]),
    Picked = Table.SelectColumns(AsTable, {"symbol", "price", "currency", "change_percent"}, MissingField.UseNull),
    Typed = Table.TransformColumnTypes(Picked, {{"price", type number}, {"change_percent", type number}}, "en-US")
in
    Typed

Ids with no price come back in an errors list in the response. The query above ignores that list.

Refresh the data

Choose Data, then Refresh All, to get the latest price. To refresh by itself, right-click the table, choose Table, then External Data Properties. Under Refresh control, tick Refresh every and enter a number of minutes. You can also tick Refresh data when opening the file.

Refresh limits and cost

  • Excel refreshes only while the workbook is open on a desktop. Closed files do not update.
  • Each refresh is one request against your monthly limit, one for each query. A refresh every minute, all day, is 43,200 requests in a 30 day month, so it needs the Basic plan.
  • A refresh every 5 minutes is 8,640 requests in a 30 day month, which fits the Starter plan. A refresh every 15 minutes is 2,880, which also needs the Starter plan. A refresh every hour is 720, which fits the Free plan.
  • Refresh All also refreshes your other queries, so keep this workbook for prices only.
  • Ask for the price when you need it, not every minute. A refresh every 15 minutes is enough for most sheets.

Handle errors

Errors come back as problem JSON with a code. Read the errors guide for the full list. In Excel, a failed call shows as a Web.Contents error with the status. These are the ones you will meet first.

Status Code What to do
401 unauthenticated The key is wrong or revoked. Replace it in the query.
429 See code You reached the per-minute limit or the monthly limit of your plan. Wait, or change plan.

For a stock call you may also see 404 not_found for an id that matches no listing, and 404 not_covered when an exchange has no prices yet. Fix the key first, then refresh again.

Keep the key safe

The key is saved inside the workbook, in the DinoKey parameter. Anyone who gets the file gets the key. Do not email or share the file as it is. Create a key just for the workbook, and revoke it in the dashboard when you stop using it. See manage API keys.

Common questions

How many requests do I get

The Free plan has 3,000 successful requests a month. Starter has 20,000, Basic has 100,000 and Pro has 1,000,000. Failed requests do not count.

Can I try it before paying

Yes. Sign up for the Free plan, which needs no card.

Does this work in Excel for the web

This guide is for the desktop app. Excel for the web does not offer the same Power Query tools, so build the query on the desktop.

Can I use WEBSERVICE instead

No. WEBSERVICE cannot send the Authorization header, and dino.markets does not accept a key in the address.

Next steps

  • Browse every endpoint in the stocks and funds reference.
  • Prefer a script? Read stock prices in Python.
  • Use Google instead? Read stock prices in Google Sheets.

Next steps

  • DocumentationQuickstart: your first request→
  • API referenceEvery endpoint, parameter and response field→
  • PricingPlans and limits→
  • DocumentationErrors and limits→

Start with a free key

3,000 requests a month, no card needed.

Sign-ups paused ↗
  • Other MCP clientsServer address and key

Guides

How to get exchange rates in PythonHow to get stock prices in PythonHow to get stock prices in JavaScriptHow to get stock prices in ExcelHow to get stock prices in Google SheetsBeta and cost of equity in Excel
dino.markets

Stocks, currencies, commodities and economics through one API.

APIs

StocksCryptoCommoditiesCurrenciesEconomicsCoverage

Docs

QuickstartAPI referenceMCP serverllms.txtChangelog

Resources

GuidesUse casesCompareAll APIs

Support

PricingAboutSupport
© 2026 Nusantara Ventures, LLC
TermsAcceptable usePrivacy