Read an NFT Item
You can read the details of an NFT item by sending a GET request to the /nft/<nft_item_name>
endpoint.
Read the details of an NFT item.
GET
https://api.playfix.io/nft/<nft_item_name>
Path Parameters
Name
Type
Description
nft_item_name
String
An automatically generated unique name of the NFT item. This begins with nftitems/
, followed by a ULID.
Headers
Name
Type
Description
Authorization
String
Bearer <your_access_token>
{
"name": "nftitems/01ggdqqd0mkkt7hz57a1g130yq"
"nft": "<nft_collection_name>",
"title": "Fast Car",
"number": "1",
"description": "blazing fast car",
"imageUrl": "https://ipfs-gateway.playfix.io/ipfs/QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"imageCid": "QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"attributes": [
{
"property": {
"name": "eyes",
"value": "brown"
}
}
],
"mintingTransactionHash": ""
}
Example cURL API Call
curl --request GET \
--url https://api.playfix.io/nft/<nft_item_name> \
--header 'Authorization: Bearer <your_access_token>'
Example Python Call
import requests
r = requests.get(
"https://api.playfix.io/nft/<nft_item_name>",
headers = {
"Authorization": "Bearer <your_access_token>"
}
)
print(r.text)
Response
{
"name": "nftitems/01ggdqqd0mkkt7hz57a1g130yq"
"nft": "<nft_collection_name>",
"title": "Fast Car",
"number": "1",
"description": "blazing fast car",
"imageUrl": "https://ipfs-gateway.playfix.io/ipfs/QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"imageCid": "QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"attributes": [
{
"property": {
"name": "eyes",
"value": "brown"
}
}
],
"mintingTransactionHash": ""
}
The response is the same as in the "Add an NFT Item" process.
Last updated