---
title: "OpenSea API: NFT collection rankings, stats as JSON"
description: "OpenSea API for NFT collection rankings, stats and floor prices, collection items with listings, and activity as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/opensea
---

[APIs](https://perceptlayer.com/apis) / [Finance](https://perceptlayer.com/verticals/finance) / OpenSea

1 credit per call 6 endpoints 2 datapoints 

# OpenSea API

OpenSea API for NFT collection rankings, stats and floor prices, collection items with listings, and activity as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

OpenSea

GET /v1/opensea/collections-ids 

```
{
  "success": true,
  "data": {
    "type": "collections",
    "count": 100,
    "ids": [
      {
        "type": "collection",
        "slug": "foolsgold-vittoria"
      },
      {
        "type": "collection",
        "slug": "doodletime"
      },
      {
        "type": "collection",
        "slug": "abnormal-mfers-official"
      }
    ]
  },
  "meta": {
    "endpoint_family": "discovery_sitemaps",
    "source": "opensea",
    "request_id": "req_5ee48f5ed88645818c6c128236410154",
    "credits_charged": 1,
    "credits_remaining": 4822
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `collections-ids`: the fields and shapes you will get, shortened to 3 items.

| # | type string | slug string |
| --- | --- | --- |
| 1 | collection | foolsgold-vittoria |
| 2 | collection | doodletime |
| 3 | collection | abnormal-mfers-official |

Recorded from our API · 3 items shown · 2 datapoints per item GET /v1/opensea/collections-ids

2 datapoints

### Identity

-   type string
-   slug string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/opensea/collections-ids" \
  -H "X-API-Key: $API_KEY"
```

OpenSea · 6 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/opensea/collection`](https://perceptlayer.com/apis/opensea/collection) | `slug` | `collection` | 1 credit |
| [GET `/v1/opensea/collections-activity`](https://perceptlayer.com/apis/opensea/collections-activity) | `slug` +3 optional | `slug` `activity` `pagination` | 1 credit |
| [GET `/v1/opensea/collections-ids`](https://perceptlayer.com/apis/opensea/collections-ids) | none +1 optional | `type` `slug` | 1 credit |
| [GET `/v1/opensea/collections-items`](https://perceptlayer.com/apis/opensea/collections-items) | `slug` +4 optional | `slug` `items` `pagination` | 1 credit |
| [GET `/v1/opensea/collections-rankings`](https://perceptlayer.com/apis/opensea/collections-rankings) | none +4 optional | `period` `type` `rankings` `pagination` | 1 credit |
| [GET `/v1/opensea/item`](https://perceptlayer.com/apis/opensea/item) | `chain` `contract_address` +1 optional | JSON | 1 credit |

Overview

## About the OpenSea API

## What you can get

The OpenSea API returns OpenSea NFT collection, item and activity data as JSON through 5 endpoints.

-   **Discovery:** `collections-ids` lists collection slugs, with `type` (collections). `collections-rankings` ranks collections, with `type` (TRENDING or TOP), `period` (ONE\_HOUR, ONE\_DAY, SEVEN\_DAYS, THIRTY\_DAYS or ALL\_TIME), `limit` and `after`.
-   **Collections:** `collection` takes a `slug`.
-   **Items:** `collections-items` takes a `slug`, with `sort_by` (PRICE, CREATED\_DATE, RARITY or LAST\_SALE), `direction` (ASC or DESC), `limit` and `after`.
-   **Activity:** `collections-activity` takes a `slug`, with `activityTypes`, `limit` and `after`.

The recorded `collections-ids` call returns `count` (100) and `ids`, each just a `type` and `slug`; use it to find slugs, then call the other endpoints for data. The recorded `collection` for `courtyard-nft` returns `name`, `description`, `image`, `is_verified`, `created_at`, `chain` (polygon), `floor_price` (4.25 USDC, about 4.25 USD) and `stats`: `total_supply` (457,233), `owner_count` (143,579), `sales`, `listed_item_count`, all-time `volume`, and sales, volume and floor change for one hour, one day, seven days and thirty days.

## How a call works

Find a collection, then read it: `GET /v1/opensea/collections-rankings?type=TRENDING&period=ONE_DAY` with your key in the `X-API-Key` header returns each ranked collection's `slug`, stats, `floor_price` and `top_offer`. Pass a slug to `collection`, `collections-items` or `collections-activity`, for example `GET /v1/opensea/collections-items?slug=courtyard-nft&sort_by=PRICE&direction=ASC`. Lists return 20 rows with a `next_page_cursor`; pass it as `after` while `has_more` is true. Every successful call costs 1 credit; failed calls cost nothing.

Finance JSON REST MCP

### More finance APIs

[ARES](https://perceptlayer.com/apis/ares) [Brønnøysund Register Centre](https://perceptlayer.com/apis/brreg) [CoinGecko](https://perceptlayer.com/apis/coingecko) [CoinMarketCap](https://perceptlayer.com/apis/coinmarketcap) [DEX Screener](https://perceptlayer.com/apis/dexscreener) [FDIC BankFind](https://perceptlayer.com/apis/fdic) [Finnish Patent and Registration Office](https://perceptlayer.com/apis/prh) [Finviz](https://perceptlayer.com/apis/finviz) [LEI Lookup](https://perceptlayer.com/apis/lei) [MarketWatch](https://perceptlayer.com/apis/marketwatch) [Morningstar](https://perceptlayer.com/apis/morningstar) [Nasdaq](https://perceptlayer.com/apis/nasdaq)

Use cases

### Track a collection's floor price, owners and volume over time

`Use the OpenSea API to track a collection's floor price, owners and volume over time` 

### List the cheapest listed items in a collection with \`sort\_by=PRICE\`

`` Use the OpenSea API to list the cheapest listed items in a collection with `sort_by=PRICE` `` 

### Follow a collection's listings and sales as they happen with \`collections-activity\`

`` Use the OpenSea API to follow a collection's listings and sales as they happen with `collections-activity` `` 

### Rank trending collections for the last hour, day, week or month

`Use the OpenSea API to rank trending collections for the last hour, day, week or month` 

FAQ

## Questions

**How much does the OpenSea API cost?**

Each successful call costs one credit, whichever endpoint you call, and each page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Which chains does it cover?**

Collections on any chain OpenSea lists; each response names the \`chain\`. The recordings include polygon and solana collections.

**What does an item return?**

The recorded items carry \`token\_id\`, \`contract\_address\`, \`chain\`, \`name\`, \`image\`, \`standard\`, \`attributes\`, \`owner\`, \`last\_sale\` and \`last\_sale\_at\`, and \`best\_listing\` with its price, marketplace and end time. Prices come in USD and in the token (\`unit\` and \`symbol\`).

**Do I need an OpenSea account?**

No. You call this OpenSea API with your Perceptlayer key in the \`X-API-Key\` header, with no OpenSea login or wallet.

**Is this the official OpenSea API?**

No. Perceptlayer is an independent service and is not affiliated with OpenSea. It returns OpenSea data as JSON with a Perceptlayer key, so there is no OpenSea developer account, app review or partner approval to get first. It only reads data: if OpenSea has an official API and you need to act on your own OpenSea account, such as posting, managing orders or reading private data, use that one.

**Should I build an OpenSea scraper instead?**

You can, but an OpenSea scraper is code you maintain: page changes break it, requests get blocked, and OpenSea's terms govern how you collect data. The OpenSea API gives you 6 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the OpenSea API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
