簡體   English   中英

如何在OPENSEA上獲取某個集合的上線NFT

[英]How to get the listed NFT of a collection on OPENSEA

嘿,我試圖在 opensea 上獲取一個集合的列出的 nfts,但它不能使用 API 即時通訊,但出於某種原因,所有我都得到一個 cloudflare 塊,有沒有辦法繞過它,或者能夠獲取 nft 的集合統計信息python 中每個列出的 nft 的集合。我已經嘗試過 cloudflare 繞過模塊,但有時它是不確定的。

import requests

url = "https://opensea.io/collection/clonex?tab=activity&search[isSingleCollection]=true&search[eventTypes][0]=AUCTION_CREATED"

headers = {
    "Accept": "application/json",
    "X-API-KEY": ""
}

response = requests.request("GET", url, headers=headers)

print(response.text)

https://docs.opensea.io/reference/getting-assets

首先,它應該是“api.opensea.io”而不是“opensea.io”。

其次,集合的名稱應該作為參數添加,而不是直接使用。

您可以使用您想要的參數嘗試上面的鏈接。

例如,在您的情況下,它可能應該是這樣的:

https://api.opensea.io/api/v1/assets?collection_slug=clonex&order_direction=desc&limit=20&include_orders=false

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM