Created
September 18, 2022 06:33
-
-
Save chris-chris/fe146f0a0e8e0cfcd3c00680624d630a to your computer and use it in GitHub Desktop.
NFTBank API example
This file contains hidden or 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 | |
host_url = "https://api.nftbank.ai" | |
asset_contract = "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e" | |
token_id = "2795" | |
url = f"{host_url}/v3/realtime-estimated-price/ethereum/{asset_contract}/{token_id}" | |
headers = { | |
"x-api-key": "YOUR API KEY" | |
} | |
resp = requests.get(url, headers=headers) | |
print(resp.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment