Skip to main content
The official Go client library for the CoinPaprika API provides convenient access to cryptocurrency market data, including coin prices, volumes, market caps, and more.

Installation

Install the CoinPaprika Go SDK using go get:

Quick Start

Basic Usage

Using Custom HTTP Client

Pro API with API Key

Get your API key at coinpaprika.com/api

Common Use Cases

Getting Market Data

Coin Information

Historical Data

Search and Price Converter

Error Handling

Advanced Usage

Rate Limiting

The client does not automatically handle rate limiting. If you exceed the request limit for your plan, the API will return an error with an HTTP 429 “Too Many Requests” status code. Your application should handle these errors, for example by implementing a backoff-and-retry mechanism.

Custom Request Options

Available Methods

The Go SDK is organized into services that correspond to the API endpoints.

Global

Coins

People

Tags

Tickers

Exchanges

Tools

FAQs

Initialize the client with coinpaprika.WithAPIKey(“YOUR_API_KEY”) to enable Pro features; public endpoints work without a key.
Use the Coverage Checker to look up canonical IDs such as btc-bitcoin.
Call Coins.GetHistoricalOHLCVByCoinID with start/end and quote; Pro access is required for history.
Inspect errors for HTTP 429 and back off before retrying; consider adding simple retry logic.

Examples Repository

Check out practical examples in the official repository.

Requirements

  • Go 1.13 or higher
  • Internet connection for API calls

License

This library is available under the MIT license. See the LICENSE file for more info.