Listing NFT Collections Under a Project
You can list all NFT collections in a project by sending a GET request to the /nft/<project_name>/nfts
endpoint.
Lists all NFT collections under a project.
GET
https://api.playfix.io/nft/<project_name>/nfts
Path Parameters
project_name*
String
The name of the project that contains the token. It begins with "project/
" followed by a ULID.
Example: projects/01gfav9m1c4zd6eq154th2pafz
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>
Example Curl API Call
Example Python API Call
Response Body
Response Fields
projectNfts
- An array of objects. Each object contains the details of an NFT collection under the project.nextPageToken
- A string that enable you to query the next page of the response if you have created multiple NFT collections.
Use the nextPageToken
as the value of the pageToken
query parameter to view the next page of results if you have created more than 10 NFT collections.
Also, you can set the pageSize
parameter to a number between 1 and 100 to increase the default number of collections returned per page.
Example cURL API Call
Example Python API Call
The example above sets the page size to 100 collections per page.
Last updated