APIs / Finance / OpenSea

1 credit per call6 endpoints2 datapointsChecked working 6 Dec 2026

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.

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 OKJSONX-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.

#typestringslugstring
1collectionfoolsgold-vittoria
2collectiondoodletime
3collectionabnormal-mfers-official

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

2 datapoints

Identity

  • typestring
  • slugstring

Playground

Run this API

cURLshell
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.

EndpointRequired parametersReturnsCost
GET/v1/opensea/collection
slug
collection
1 credit
GET/v1/opensea/collections-activity
slug+3 optional
slugactivitypagination
1 credit
GET/v1/opensea/collections-ids
none+1 optional
typeslug
1 credit
GET/v1/opensea/collections-items
slug+4 optional
slugitemspagination
1 credit
GET/v1/opensea/collections-rankings
none+4 optional
periodtyperankingspagination
1 credit
GET/v1/opensea/item
chaincontract_address+1 optional
JSON1 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.

FinanceJSONRESTMCP

More finance APIs

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.