Created
October 8, 2022 00:32
-
-
Save 0xlxy/51799a325272d5bed6fdab47ea1b3f1b to your computer and use it in GitHub Desktop.
Opensea Collection & Traits Offers - Beta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
slug = "azuki" | |
url = f'https://api.opensea.io/vnext/offers/collection/{slug}/traits' | |
headers = { | |
"X-API-KEY": "2972994f68bb4dfc9f68c944f473c329" | |
} | |
response = requests.get(url, headers=headers) | |
print(response) | |
response_data = response.json() | |
with open('seaport-sell-collection-offers.json', 'w') as json_file: | |
json.dump(response_data, json_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment