Skip to main content

Opensea API

An API wrapper library for opensea api.

Installation

pip3 install opensea

Usage

Retrieving assets:

from opensea import get_assets

# This will return a list of assets which you can iterate and get the needed data
asset_list = get_assets(limit=10, verified_only=False)

asset = asset_list[0] # Get the first asset obejct from the list

print(asset.name)
print(asset.description)
print(asset.asset_url)
print(asset.get_floor_price()) # Floor price of the collection

Retrieving bundles:

from opensea import get_bundles

# This will return a list of assets which you can iterate and get the needed data
bundles_list = get_bundles(limit=10)

bundle = bundles_list[0] # Get the first asset obejct from the list

print(bundle.slug)
print(bundle.assets[0].name)

Retrieving stats from specific collection:

from opensea import get_collection_stats

# This will return a CollectionStats Object
stats = get_collection_stats(collection="doodles-official")

print(stats.count)
print(stats.num_owners)
print(stats.floor_price)

Metadata

Release files for opensea 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opensea 0.2.0
File Size Uploaded
opensea-0.2.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opensea 0.2.0
File Interpreter ABI Platform
opensea-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / opensea-0.2.0.tar.gz

Download URL opensea-0.2.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
81b04699bde7673681e7f33bc4f801bf5589279f05c03ebc4d2f5489f4afbdbc
BLAKE2b-256 checksum
How to use checksums
164ad4298e16698a92773966c85959e435781fb383e475a54a39bf465ce57606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / opensea-0.2.0-py3-none-any.whl

Download URL opensea-0.2.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9280b3e0e0da50058470a74ec756a6ed904a9704599b1acc6e0b0ec6929ee2d3
BLAKE2b-256 checksum
How to use checksums
90e005f8ae65023d2c3b2cac6f663b1991363543ef3f4a00785d135564231181
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page