Coinbase Market Data API

Access public market data including products, order books, trades, and candles without authentication.

Operations 2

GET /best_bid_ask Get best bid and ask #
GET /product_book Get product book #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coinbase-market-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coinbase-market-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coinbase Advanced Trade Market Data API
  description: The Coinbase Advanced Trade API provides programmatic access to advanced trading features on the Coinbase platform. Developers can automate market, limit, and stop-limit orders, manage portfolios, retrieve real-time and historical market data, and monitor fees. The REST API is available at api.coinbase.com/api/v3/brokerage and supports authenticated access using API keys with HMAC SHA-256 signatures. Public market data endpoints do not require authentication.
  version: '3.0'
  contact:
    name: Coinbase Developer Support
    url: https://help.coinbase.com
  termsOfService: https://www.coinbase.com/legal/user-agreement
servers:
- url: https://api.coinbase.com/api/v3/brokerage
  description: Production Server
security:
- apiKeyAuth: []
tags:
- name: Market Data
  description: Access public market data including products, order books, trades, and candles without authentication.
paths:
  /best_bid_ask:
    get:
      operationId: getBestBidAsk
      summary: Get best bid and ask
      description: Retrieves the best bid and ask prices for the specified products. This endpoint is publicly accessible.
      tags:
      - Market Data
      security: []
      parameters:
      - name: product_ids
        in: query
        description: List of product IDs to get bid/ask for
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: Successfully retrieved best bid and ask
          content:
            application/json:
              schema:
                type: object
                properties:
                  pricebooks:
                    type: array
                    items:
                      $ref: '#/components/schemas/PriceBook'
  /product_book:
    get:
      operationId: getProductBook
      summary: Get product book
      description: Retrieves the order book for a specific product. Returns bids and asks at various price levels. This endpoint is publicly accessible.
      tags:
      - Market Data
      security: []
      parameters:
      - name: product_id
        in: query
        required: true
        description: Product ID to get the order book for
        schema:
          type: string
      - $ref: '#/components/parameters/LimitParam'
      responses:
        '200':
          description: Successfully retrieved product book
          content:
            application/json:
              schema:
                type: object
                properties:
                  pricebook:
                    $ref: '#/components/schemas/PriceBook'
components:
  parameters:
    LimitParam:
      name: limit
      in: query
      description: Maximum number of results to return
      schema:
        type: integer
        minimum: 1
        maximum: 250
        default: 49
  schemas:
    PriceBook:
      type: object
      description: Order book price levels
      properties:
        product_id:
          type: string
          description: Product identifier
        bids:
          type: array
          description: Bid price levels
          items:
            type: object
            properties:
              price:
                type: string
                description: Bid price
              size:
                type: string
                description: Size at this price level
        asks:
          type: array
          description: Ask price levels
          items:
            type: object
            properties:
              price:
                type: string
                description: Ask price
              size:
                type: string
                description: Size at this price level
        time:
          type: string
          format: date-time
          description: Timestamp of the price book
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: CB-ACCESS-KEY
      description: Coinbase API key authentication using HMAC SHA-256 signatures. Requires CB-ACCESS-KEY, CB-ACCESS-SIGN, and CB-ACCESS-TIMESTAMP headers.
externalDocs:
  description: Coinbase Advanced Trade API Documentation
  url: https://docs.cdp.coinbase.com/coinbase-app/advanced-trade-apis/rest-api