What is OpenSea API?
OpenSea is the largest NFT marketplace. Their API provides access to collection data, ownership information, trading activity, and more for building NFT applications.
API Features
- Collection Data - Floor price, volume, owners
- NFT Metadata - Attributes, images, descriptions
- Trading History - Sales, transfers, bids
- Ownership - Token ownership verification
- Real-Time Events - WebSocket for live updates
- Collection Stats - Historical analytics
API Endpoints
# Get collection stats
GET https://api.opensea.io/api/v2/collection/{slug}
# Get NFT metadata
GET https://api.opensea.io/api/v2/chain/{chain}/nft/{address}/{token_id}
# Get owners
GET https://api.opensea.io/api/v2/chain/{chain}/nfts/{address}/{token_id}/owners
# Get events
GET https://api.opensea.io/api/v2/events
Pricing
- Free Tier - 4.5 requests/sec, 50K calls/day
- Premium - Custom rates available