DocumentationYour first call
Your first call
Start on the free plan, create an API key, and make your first financial data request with cURL, Python or JavaScript examples.
Connect in one line
To use dino.markets from an AI agent, paste one line. In Claude Code, run this, then run /mcp, choose dino and sign in:
claude mcp add --transport http dino https://api.dino.markets/mcp
In any other agent, paste this prompt:
Read https://dino.markets/llms.txt and help me make my first API call
Other clients are in Connect with MCP. To call the API from your own code instead, follow the steps below.
Start on the free plan
Sign up to get the Free plan. It needs no card. It gives you 3,000 successful requests a month, 50 requests a minute and 12 months of history. Move to a bigger plan when you need more; see billing for the plans and their limits.
Create a key
Open keys in the dashboard, create a key and give it a name. Copy the secret immediately: it starts with dino_live_ and is shown once. Store it in your server’s secret configuration as $DINO_API_KEY.
Send the key in the Authorization: Bearer header. Keys in query strings are refused. The base URL is https://api.dino.markets/v1, and data requests use GET over HTTPS.
Make a request
These examples request the latest gold spot price in US dollars. Each successful request counts against your plan’s monthly limit, including requests you repeat while trying the examples.
cURL
Use -i to print the response headers with the JSON body.
curl -i 'https://api.dino.markets/v1/commodities/spot/XAU/USD' \
-H "Authorization: Bearer $DINO_API_KEY"
Python
This example uses Python’s standard library and reads the same environment variable.
import json
import os
from urllib.request import Request, urlopen
request = Request(
"https://api.dino.markets/v1/commodities/spot/XAU/USD",
headers={"Authorization": f"Bearer {os.environ['DINO_API_KEY']}"},
)
with urlopen(request, timeout=30) as response:
print(json.load(response)["price"])
JavaScript
Run this on your server with fetch available. Keep the key out of browser code.
const response = await fetch(
"https://api.dino.markets/v1/commodities/spot/XAU/USD",
{ headers: { Authorization: `Bearer ${process.env.DINO_API_KEY}` } },
);
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${await response.text()}`);
}
console.log((await response.json()).price);
Read the response
A single record is the JSON root. Its price is a decimal string, such as "3371.42". Timestamps use RFC 3339 UTC. Lists use named arrays such as rates, observations or prices.
Keep X-Request-ID when investigating a problem. The X-Dino-Requests-Remaining header shows how many requests you have left this month. GET /v1/key, described in keys, shows the same numbers and does not count.
Next steps
Read about keys, errors and limits, plans and billing and the MCP server. Browse data areas for more routes.
Start with a free key
3,000 requests a month, no card needed.