# Coinbase API

> Coinbase provides cryptocurrency prices and market data as a workflow and API.

Get coin price returns spot, buy, and sell prices; provide a cryptocurrency name or symbol and optionally a currency.

- Page: https://fous.com/workflows/coinbase
- Handle: `@coinbase`
- Category: [Blockchain](https://fous.com/workflows/category/blockchain)
- Source website: https://coinbase.com
- Last verified: Sep 30, 2026
- Fous is not affiliated with Coinbase.

## Methods

### Get coin overview

Operation `get_coin_overview`, version 1. 1 credit per call.

Get a cryptocurrency’s price, 24-hour change, market statistics, Coinbase popularity, trading availability, description, and website from its public Coinbase price page. Currency choices: USD, EUR, GBP, CAD, INR, BRL, SGD, AUD, MXN, ARS; missing page facts are null.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `coin` | string | yes | `"Solana"` | The cryptocurrency name or ticker symbol, for example Solana or SOL. |
| `currency` | string | no | `"EUR"` | Currency for prices and monetary amounts, for example EUR. Defaults to USD. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "coin"
  ],
  "properties": {
    "coin": {
      "type": "string",
      "description": "The cryptocurrency name or ticker symbol, for example Solana or SOL.",
      "examples": [
        "Solana",
        "BTC",
        "Monero"
      ]
    },
    "currency": {
      "type": "string",
      "default": "USD",
      "description": "Currency for prices and monetary amounts, for example EUR. Defaults to USD.",
      "examples": [
        "EUR"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "coin": "Solana"
    },
    {
      "coin": "BTC",
      "currency": "EUR"
    },
    {
      "coin": "Monero"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `name` | string | `"Solana"` | Cryptocurrency name. |
| `price` | number or null | `118.83` | Current price per coin in the requested currency. |
| `symbol` | string or null | `"SOL"` | Cryptocurrency ticker symbol. |
| `currency` | string | `"USD"` | Currency of all monetary values. |
| `market_cap` | number or null | `69801796573.63313` | Market capitalization in the requested currency. |
| `volume_24h` | number or null | `3971411081.2611423` | Trading volume over 24 hours in the requested currency. |
| `description` | string or null | `"Solana is a decentralized computing platform that uses SOL to pay for transactions. Solana aims to improve blockchain s` | Short plain-text description, up to 1000 characters. |
| `popularity_rank` | integer or null | `7` | Rank among tradable Coinbase assets, if shown. |
| `official_website` | string or null | `"https://solana.com/"` | Official coin website, if shown. |
| `change_24h_percent` | number or null | `-2.8249744114636597` | Price percentage change over 24 hours, signed (for example -1.5). |
| `circulating_supply` | number or null | `587853048.7477068` | Number of coins circulating. |
| `all_time_high_price` | number or null | `294.845` | Highest historical price per coin in the requested currency. |
| `coinbase_price_page` | string | `"https://www.coinbase.com/price/solana"` | Public Coinbase price page for this coin and currency. |
| `tradable_on_coinbase` | boolean or null | `true` | Whether the coin is tradable on Coinbase in the price page’s region. |

**Example input**

```json
{
  "coin": "Solana"
}
```

**Example output**

```json
{
  "name": "Solana",
  "price": 118.83,
  "symbol": "SOL",
  "currency": "USD",
  "market_cap": 69801796573.63313,
  "volume_24h": 3971411081.2611423,
  "description": "Solana is a decentralized computing platform that uses SOL to pay for transactions. Solana aims to improve blockchain scalability by using a combination of proof of stake consensus and so-called proof…",
  "popularity_rank": 7,
  "official_website": "https://solana.com/",
  "change_24h_percent": -2.8249744114636597,
  "circulating_supply": 587853048.7477068,
  "all_time_high_price": 294.845,
  "coinbase_price_page": "https://www.coinbase.com/price/solana",
  "tradable_on_coinbase": true
}
```

### Get coin price

Operation `get_coin_price`, version 1. 1 credit per call.

Get a cryptocurrency’s current Coinbase spot, buy, and sell prices in a chosen currency. Time is when Coinbase served the price responses; quotes can change between requests.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `coin` | string | yes | `"Bitcoin"` | Cryptocurrency name or symbol, for example Bitcoin or ETH. |
| `currency` | string | no | `"Euro"` | Currency name or code, for example Euro or EUR. Defaults to USD. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "coin"
  ],
  "properties": {
    "coin": {
      "type": "string",
      "description": "Cryptocurrency name or symbol, for example Bitcoin or ETH.",
      "examples": [
        "Bitcoin",
        "ETH"
      ]
    },
    "currency": {
      "type": "string",
      "default": "USD",
      "description": "Currency name or code, for example Euro or EUR. Defaults to USD.",
      "examples": [
        "Euro"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "coin": "Bitcoin"
    },
    {
      "coin": "ETH",
      "currency": "Euro"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `time` | string | `"2026-09-29T01:49:23Z"` | UTC time when Coinbase served the prices, in ISO 8601 format. |
| `symbol` | string | `"BTC"` | Cryptocurrency symbol. |
| `buy_price` | number | `82951.115` | Coinbase buy price in the selected currency. |
| `coin_name` | string | `"Bitcoin"` | Full cryptocurrency name. |
| `page_link` | string | `"https://www.coinbase.com/price/bitcoin"` | Coinbase price page for the cryptocurrency. |
| `sell_price` | number | `82939.365` | Coinbase sell price in the selected currency. |
| `spot_price` | number | `82939.365` | Spot price in the selected currency. |
| `currency_code` | string | `"USD"` | Currency code for all three prices. |

**Example input**

```json
{
  "coin": "Bitcoin"
}
```

**Example output**

```json
{
  "time": "2026-09-29T01:49:23Z",
  "symbol": "BTC",
  "buy_price": 82951.115,
  "coin_name": "Bitcoin",
  "page_link": "https://www.coinbase.com/price/bitcoin",
  "sell_price": 82939.365,
  "spot_price": 82939.365,
  "currency_code": "USD"
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@coinbase",
  "visibility": "public",
  "operation": "get_coin_overview",
  "version": 1,
  "input": {
    "coin": "Solana"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@coinbase\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_coin_overview\",\n  \"version\": 1,\n  \"input\": {\n    \"coin\": \"Solana\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@coinbase",
  "visibility": "public",
  "operation": "get_coin_overview",
  "version": 1,
  "input": {
    "coin": "Solana"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@coinbase","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare spot, buy, and sell prices across cryptocurrencies.
- Track cryptocurrency prices in a selected currency.
- Review market capitalization and 24-hour trading volume.
- Check a coin’s 24-hour price change and all-time high.
- Identify coins available to trade on Coinbase.

## FAQ

### Is Fous affiliated with Coinbase?

No. Fous is not affiliated with Coinbase. This workflow reads the public coinbase.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Coinbase account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from coinbase.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 30, 2026.

### What are a cryptocurrency’s current spot, buy, and sell prices?

Get coin price returns spot, buy, and sell prices for the requested cryptocurrency and currency.

### What is a coin’s 24-hour price change and market capitalization?

Get coin overview returns the 24-hour percentage change and market capitalization, along with other market details.

### Is a coin tradable on Coinbase?

Get coin overview returns whether the coin is tradable on Coinbase in the price page’s region.

## Related

- [Binance API](https://fous.com/workflows/binance.md): Binance provides latest prices and rolling 24-hour statistics for active spot pairs, historical spot candles for a selected date range or newest first (up to 1,000), and current aggregated bid and ask levels.
- [CoinMarketCap API](https://fous.com/workflows/coinmarketcap.md): CoinMarketCap returns prices, rankings and current Fear and Greed readings; gainers and losers include up to 30 top-100 coins above $50,000 in 24-hour volume.
- [Kraken API](https://fous.com/workflows/kraken.md): Live cryptocurrency market prices and trading statistics from Kraken.
- [CoinGecko API](https://fous.com/workflows/coingecko.md): CoinGecko returns cryptocurrency prices and histories, sector rankings and details, and trending coins; non-USD historical values cover 365 days, histories 7–365 days, and today’s prices may change.
- [Kitco API](https://fous.com/workflows/kitco.md): Precious metals spot prices and market coverage.
- [Google Finance API](https://fous.com/workflows/google-finance.md): Google Finance returns possibly delayed prices and figures, indexes, up to four movers timed by oldest quote, currency conversions, and up to five financial periods.
- [Yahoo Finance API](https://fous.com/workflows/yahoo-finance.md): Yahoo Finance provides quotes, movers, company financials, analyst ratings, earnings, news, and up to 5,000 price rows with adjusted returns; prices may be delayed.
- [Investing.com API](https://fous.com/workflows/investing-com.md): Investing.com provides financial markets data and news, economic releases up to 31 days, and current commodity prices and government bond yields, which may be delayed or indicative.
- [All Blockchain workflows](https://fous.com/workflows/category/blockchain)
