Skip to content

Instantly share code, notes, and snippets.

@chris-chris
Created September 18, 2022 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-chris/fe146f0a0e8e0cfcd3c00680624d630a to your computer and use it in GitHub Desktop.
Save chris-chris/fe146f0a0e8e0cfcd3c00680624d630a to your computer and use it in GitHub Desktop.
NFTBank API example
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