---
title: "CoinGecko API: History | Perceptlayer"
description: "History from CoinGecko as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/coingecko/history
---

[APIs](https://perceptlayer.com/apis) / [CoinGecko](https://perceptlayer.com/apis/coingecko) / History

# CoinGecko: History

History from CoinGecko as JSON. 1 credit per successful call.

GET `/v1/coingecko/history`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `id` | string | Required | Up to 100 characters |
| `days` | integer | Optional | Any |
| `currency` | string | Optional | USD, EUR, GBP, BTC |

## Example request

CoinGecko

GET /v1/coingecko/history?id=bitcoin&days=30 

```
{
  "success": true,
  "data": {
    "id": "bitcoin",
    "days": 30,
    "currency": "USD",
    "points": 31,
    "history": [
      {
        "timestamp": "2026-10-20T00:00:00Z",
        "price": 81875.26391574314,
        "market_cap": 1645751918646.9844,
        "volume": 25801005531.152863,
        "currency": "USD"
      },
      {
        "timestamp": "2026-10-21T00:00:00Z",
        "price": 82943.83149973174,
        "market_cap": 1667273697608.0046,
        "volume": 27926195682.985336,
        "currency": "USD"
      },
      {
        "timestamp": "2026-10-22T00:00:00Z",
        "price": 84082.26646319703,
        "market_cap": 1690197252503.6458,
        "volume": 32168983739.061207,
        "currency": "USD"
      }
    ]
  },
  "meta": {
    "endpoint_family": "history",
    "source": "coingecko"
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 18 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/coingecko?try=history#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | string |
| `days` | integer |
| `currency` | string |
| `points` | integer |
| `history` | object\[\] |
