Skip to content
Scrappa Get API key
OpenSea API 1 credit / request

OpenSea Collection Items API Documentation

GET https://scrappa.co/api/opensea/collections/items

OpenSea Collection Items API Documentation List items in one collection by slug. Each item has token id, contract address, chain, full-size image URL, traits, rarity rank, owner, last sale with token, best listing and best offer. Prices are numbers with a token. Filter by sort_by and direction. Pass after from the previous response for the next page. Every failed request costs no credit. Cost: 1 credit per successful request. Scrappa is an independent service and is not affiliated with or endorsed by OpenSea.

OpenSea Collection Items API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/opensea/collections/items
Auth header
x-api-key
Cost
1 credit / request
slug = example
Response preview
200 OK
{
    "data": {
        "slug": "courtyard-nft",
        "items": [
            {
                "chain": "polygon",
                "image": "https://i2c.seadn.io/example.jpg",
                "token_id": "4231837087468264",
                "last_sale": {
                    "usd": 4.99,
                    "token": {
                        "unit": "USDC",
                        "symbol": "USDC"
                    }
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

4 optional filters available.

slug string Required

Collection slug, e.g. courtyard-nft. Required.

Example value example
limit integer Optional

Rows per page, 1 to 100.

Example value 10
after string Optional

Cursor from the previous response.

Example value example
sort_by string Optional

PRICE, CREATED_DATE, RARITY or LAST_SALE.

Example value example
direction string Optional

ASC or DESC.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "slug": "courtyard-nft",
        "items": [
            {
                "chain": "polygon",
                "image": "https://i2c.seadn.io/example.jpg",
                "token_id": "4231837087468264",
                "last_sale": {
                    "usd": 4.99,
                    "token": {
                        "unit": "USDC",
                        "symbol": "USDC"
                    }
                },
                "rarity_rank": 42,
                "contract_address": "0x251be3a17af4892035c37ebf5890f4a4d889dcad"
            }
        ],
        "pagination": {
            "limit": 20,
            "has_more": true
        }
    },
    "meta": {
        "source": "opensea",
        "credits": 1,
        "billable": true,
        "endpoint_family": "gql_web"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

The slug or a filter is invalid. This response is not billable.

502

Bad Gateway

The public data is temporarily unavailable. This response is not billable.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.