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.
{
"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
}
}Sample data
What one call returns
A recorded run of collections-ids: the fields and shapes you will get, shortened to 3 items.
| # | typestring | slugstring |
|---|---|---|
| 1 | collection | foolsgold-vittoria |
| 2 | collection | doodletime |
| 3 | collection | abnormal-mfers-official |
[
{
"type": "collection",
"slug": "foolsgold-vittoria"
},
{
"type": "collection",
"slug": "doodletime"
},
{
"type": "collection",
"slug": "abnormal-mfers-official"
}
]type,slug collection,foolsgold-vittoria collection,doodletime collection,abnormal-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
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 | 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 | 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-idslists collection slugs, withtype(collections).collections-rankingsranks collections, withtype(TRENDING or TOP),period(ONE_HOUR, ONE_DAY, SEVEN_DAYS, THIRTY_DAYS or ALL_TIME),limitandafter. - Collections:
collectiontakes aslug. - Items:
collections-itemstakes aslug, withsort_by(PRICE, CREATED_DATE, RARITY or LAST_SALE),direction(ASC or DESC),limitandafter. - Activity:
collections-activitytakes aslug, withactivityTypes,limitandafter.
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.
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 timeList 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 monthFAQ
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.