List NFT Items in a Collection
You can list all the NFT items in an NFT collection by sending a GET request to the /nft/<nft_collection_name>/nftitems
endpoint.
List NFT items in a collection.
GET
https://api.playfix.io/nft/<nft_collection_name>/nftitems
Path Parameters
nft_collection_name*
String
The name of the NFT. This will start with a prefix of "nfts/
" followed by a ULID.
Query Parameters
pageToken
String
Page token for next page. You can get this value from the nextPageToken
field of a previous response.
pageSize
String
Max number of projects to return in a single page. Each response will contain one page. This can be any number from 1 to 100.
Headers
Authorization*
String
Bearer <your_access_token>
cURL API Call
Python API Call
Response
Response Fields
nftItems
- An array of objects. Each object contains the details of an NFT item in the NFT collection.nextPageToken
- A string that enable you to query the next page of the response if you have added multiple NFT items to the collections.
Use the nextPageToken
as the value of the pageToken
query parameter to view the next page of results if you have added more than 10 NFT items to the collections.
Also, you can set the pageSize
parameter to a number between 1 and 100 to increase the default number of NFT items returned per page.
Example cURL API Call
Example Python API Call
The example above sets the page size to 100 items per page.
Last updated