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

OpenSea Ids API Documentation

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

OpenSea Ids API Documentation Get public collection slugs or item identifiers from the site sitemap. Choose type collections or items. Feed each id unchanged into the collection or item route. This route has no page cursor. 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 Ids API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/opensea/collections/ids
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "ids": [
            {
                "slug": "courtyard-nft",
                "type": "collection",
                "chain": null,
                "token_id": null
            }
        ],
        "type": "collections",
        "count": 2
    },
    "meta": {
...

Parameters

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

Runnable path

This endpoint has no required query parameters.

1 optional filter available.

type string Optional

collections (default) or items.

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": {
        "ids": [
            {
                "slug": "courtyard-nft",
                "type": "collection",
                "chain": null,
                "token_id": null
            }
        ],
        "type": "collections",
        "count": 2
    },
    "meta": {
        "source": "opensea",
        "credits": 1,
        "billable": true,
        "endpoint_family": "discovery_sitemaps"
    },
    "success": true
}

Errors

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

422

Validation Error

The type is invalid. This response is not billable.

502

Bad Gateway

The public id list 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.