Search across OpenSea
Changed onSearch across collections, tokens, NFTs, and accounts. Results are ranked by relevance.
Request
- Base URLhttps://api.opensea.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Search query text
Filter by blockchain(s)
[ "ethereum" ]
Filter by asset type(s). Valid values: collection, nft, token, account. Defaults to [collection, token] if not specified.
Number of results to return (default: 20, max: 50)
Response
OK
Example response
{
"results": [
{
"collection": {
"collection": "bored-ape-yacht-club",
"name": "Bored Ape Yacht Club"
},
"nft": {
"best_listing": {
"currency": "ETH",
"currency_address": "0x0000000000000000000000000000000000000000",
"price": "0.25",
"price_usd": "812.5"
},
"collection": "bored-ape-yacht-club",
"identifier": "1234"
},
"token": {
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"chain": "ethereum",
"decimals": 6,
"name": "USDC",
"symbol": "USDC",
"usd_price": "1.0"
},
"type": "collection"
}
]
}Changes
- breaking
removed the enum value
b3from the propertyitems/of thequeryrequest parameterchains - breaking
removed the enum value
blastfrom the propertyitems/of thequeryrequest parameterchains - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - info
added the enum value
stablechainto the propertyitems/of thequeryrequest parameterchains - info
added the media type
*/*for the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
///to the response with the status
- breaking