AGENT SKILL

opensea-cli

Query NFTs, listings, swaps, and more from the command line or programmatically.

License 许可
MIT
最近更新
2026-03-21
Stars
★ 3
Forks
0

01 前言 Front Matter

name
opensea-cli
tags
[ "nft", "opensea", "collections", "marketplace" ]
source
https://github.com/ProjectOpenSea/opensea-cli
version
1.0
category
trading
framework
OpenSea
description
Query NFTs, listings, swaps, and more from the command line or programmatically.
verified_at
2026-03-07
verified_by
readtheskill.com

03 SKILL.md 正文

OpenSea CLI & SDK

Query the OpenSea API from the command line or programmatically. Full SDK with collections, tokens, events, listings, offers, swaps, and search.

Install

npm install -g @opensea/cli
# or use without installing:
npx @opensea/cli collections get mfers

Authentication

export OPENSEA_API_KEY=your-api-key
# Get a key at docs.opensea.io

CLI Commands

opensea collections get mfers           # Collection details
opensea collections stats mfers         # Floor price + volume
opensea nfts list-by-collection mfers   # List NFTs
opensea listings best mfers --limit 5   # Best listings
opensea search collections "cool cats"  # Search
opensea tokens trending --limit 5       # Trending tokens
opensea --format table collections stats mfers

Available Commands

collections, nfts, listings, offers, events, search, tokens, swaps, accounts

Programmatic SDK

import { OpenSeaCLI } from "@opensea/cli"

const client = new OpenSeaCLI({
  apiKey: process.env.OPENSEA_API_KEY
})

const collection = await client.collections.get("mfers")
const { nfts } = await client.nfts.listByCollection("mfers", { limit: 5 })
const { listings } = await client.listings.best("mfers", { limit: 10 })
const { tokens } = await client.tokens.trending({ chains: ["base"], limit: 5 })

Agent Skill Format

npx skills add ProjectOpenSea/opensea-skill

Links


Verified by readtheskill.com — verify this skill

04 同仓库更多 Skills