Skip to content

Instantly share code, notes, and snippets.

@0xlxy
Created October 8, 2022 00:32
Show Gist options
  • Save 0xlxy/51799a325272d5bed6fdab47ea1b3f1b to your computer and use it in GitHub Desktop.
Save 0xlxy/51799a325272d5bed6fdab47ea1b3f1b to your computer and use it in GitHub Desktop.
Opensea Collection & Traits Offers - Beta
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