> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NFTs Collection Historical Chart Data by ID

> To query historical market data of a NFT collection, including floor price, market cap, and 24hr volume, by number of days away from now

#### Notes

* Auto-granularity:
  * 1–14 days = **5-minutely** data
  * 15 days and above = **daily** data (00:00 UTC)

> [!NOTE]
>
> The last completed UTC day (00:00) is available 5 minutes after midnight (00:05 UTC).

**Analyst Plan and Above**
This endpoint is only available to **Analyst, Lite, Pro, and Enterprise** plan.
[→ View pricing](https://www.coingecko.com/en/api/pricing)

**Cache / Update Frequency:**

#### SDK Examples

```typescript TypeScript theme={null}
const response = await client.nfts.marketChart.get('pudgy-penguins', {
  days: '1',
});

console.log(JSON.stringify(response, null, 2));
```

```python Python theme={null}
response = client.nfts.market_chart.get(
  "pudgy-penguins",
  days="1",
)

print(response.model_dump_json(indent=2))
```


## OpenAPI

````yaml openapi-specs/pro-api.json get /nfts/{id}/market_chart
openapi: 3.0.0
info:
  title: CoinGecko Pro API
  version: 3.0.0
servers:
  - url: https://pro-api.coingecko.com/api/v3
security:
  - headerAuth: []
  - queryAuth: []
paths:
  /nfts/{id}/market_chart:
    get:
      summary: NFTs Collection Historical Chart Data by ID
      description: >-
        To query historical market data of a NFT collection, including floor
        price, market cap, and 24hr volume, by number of days away from now
      operationId: nfts-id-market-chart
      parameters:
        - name: id
          in: path
          required: true
          description: |-
            NFT collection ID. 
            *refers to [`/nfts/list`](/reference/nfts-list).
          schema:
            type: string
            default: pudgy-penguins
        - name: days
          in: query
          required: true
          description: |-
            Data up to number of days ago. 
            Valid values: any integer or `max`
          schema:
            type: string
            default: '1'
      responses:
        '200':
          description: NFT collection historical chart data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NFTMarketChart'
              example:
                floor_price_usd:
                  - - 1779729001000
                    - 10032.419904380335
                  - - 1779729303000
                    - 10028.703755252538
                floor_price_native:
                  - - 1779729001000
                    - 4.69989940999941
                  - - 1779729303000
                    - 4.69989940999941
                h24_volume_usd:
                  - - 1779729001000
                    - 60835.49928667799
                  - - 1779729303000
                    - 60812.96496397539
                h24_volume_native:
                  - - 1779729001000
                    - 28.49967703999703
                  - - 1779729303000
                    - 28.49967703999703
                market_cap_usd:
                  - - 1779729001000
                    - 89168148.1101324
                  - - 1779729303000
                    - 89135118.97668457
                market_cap_native:
                  - - 1779729001000
                    - 41772.70595607475
                  - - 1779729303000
                    - 41772.70595607475
components:
  schemas:
    NFTMarketChart:
      type: object
      required:
        - floor_price_usd
        - floor_price_native
        - h24_volume_usd
        - h24_volume_native
        - market_cap_usd
        - market_cap_native
      properties:
        floor_price_usd:
          type: array
          description: NFT collection floor price in USD as [timestamp, price] pairs
          items:
            type: array
            items:
              type: number
        floor_price_native:
          type: array
          description: >-
            NFT collection floor price in native currency as [timestamp, price]
            pairs
          items:
            type: array
            items:
              type: number
        h24_volume_usd:
          type: array
          description: NFT collection 24h volume in USD as [timestamp, volume] pairs
          items:
            type: array
            items:
              type: number
        h24_volume_native:
          type: array
          description: >-
            NFT collection 24h volume in native currency as [timestamp, volume]
            pairs
          items:
            type: array
            items:
              type: number
        market_cap_usd:
          type: array
          description: NFT collection market cap in USD as [timestamp, market_cap] pairs
          items:
            type: array
            items:
              type: number
        market_cap_native:
          type: array
          description: >-
            NFT collection market cap in native currency as [timestamp,
            market_cap] pairs
          items:
            type: array
            items:
              type: number
  securitySchemes:
    headerAuth:
      type: apiKey
      in: header
      name: x-cg-pro-api-key
      description: >-
        Learn how to [set up your API
        key](https://docs.coingecko.com/docs/setting-up-your-api-key)
    queryAuth:
      type: apiKey
      in: query
      name: x_cg_pro_api_key
      description: >-
        Learn how to [set up your API
        key](https://docs.coingecko.com/docs/setting-up-your-api-key)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.