Skip to main content
POST
/
api
/
opensea
/
collections
/
traits
/opensea/collections/traits
curl --request POST \
  --url https://api.anysite.io/api/opensea/collections/traits \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "slug": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "trait_type": "<string>",
    "value": "<string>",
    "@type": "OpenseaTrait",
    "count": 123,
    "percent": 123,
    "floor_price": {
      "@type": "OpenseaPrice",
      "usd": 123,
      "amount": 123,
      "symbol": "<string>",
      "native": 123
    },
    "top_offer": {
      "@type": "OpenseaPrice",
      "usd": 123,
      "amount": 123,
      "symbol": "<string>",
      "native": 123
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
slug
string
required

Collection slug (its human-readable alias from the collection URL)

Minimum string length: 1
Examples:

"boredapeyachtclub"

"pudgypenguins"

count
integer
required

Number of trait values to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

trait_type
string
required
value
string
required
@type
string
default:OpenseaTrait
count
integer | null
percent
number | null
floor_price
object
top_offer
object