Returns a list of Parallel assets based on a variety of filters.
Endpoint: filterNftParallelAssets
Method: POST
Arguments
Name | Type | Description |
---|---|---|
filters | ParallelAssetFilters | A set of filters to apply. |
limit | Int | The maximum number of Parallel assets to return. |
match | ParallelAssetMatchers | A set of parameters to match. |
offset | Int | Where in the list the server should start when returning items. Use count +offset from the previous query to request the next page of results. |
phrase | String | A phrase to search for. Can match a Parallel asset ID (address :tokenId ) or partially match a name. |
rankings | [ParallelAssetRanking] | A list of ranking attributes to apply. |
Response
Name | Type | Description |
---|---|---|
count | Int | The number of Parallel assets returned. |
offset | Int | Where in the list the server started when returning items. |
results | [ParallelAssetFilterResult] | The list of Parallel assets matching the filter parameters. |
Name | Type | Description |
---|---|---|
address | String! | The contract address of the NFT collection. |
description | String | The description of the NFT asset. |
gameData | ParallelAssetGameData | The game data for the NFT asset. |
id | String! | The ID of the NFT asset ( |
lastPriceNetworkBaseToken | String | The last sale price in the network's base token. |
lastPriceUsd | String | The last sale price in USD. |
media | NftAssetMedia | The NFT asset media. |
metadata | ParallelAssetMetadata | Metadata for the NFT asset. |
name | String | The name of the NFT asset. |
networkId | Int! | The network ID the NFT collection is deployed on. |
originalImage | String | The source image URI linked by smart contract metadata. |
timestamp | Int | The unix timestamp for the last trade. |
tokenId | String! | The token ID of the NFT asset. |
uri | String | The URI provided by the smart contract. Typically JSON that contains metadata. |
Example
Filter SE Cards with Specified Game Data
Use this query to filter for SE Parallel cards with attack
>= 5, health
<= 3 and cost
>=3.
{
filterNftParallelAssets(
filters: { attack: { gte: 5 }, health: { lte: 3 }, cost: { gte: 3 } }
match: { class: SE }
) {
count
results {
id
address
tokenId
networkId
name
description
originalImage
uri
lastPriceUsd
lastPriceNetworkBaseToken
timestamp
media {
image
thumbSm
thumbLg
}
gameData {
rarity
parallel
cost
attack
health
cardType
subtype
functionText
passiveAbility
}
metadata {
class
supply
flavourText
expansion
paraset
artist
}
}
}
}
{
"data": {
"filterNftParallelAssets": {
"count": 1,
"results": [
{
"id": "0x76be3b62873462d2142405439777e971754e8e77:10551",
"address": "0x76be3b62873462d2142405439777e971754e8e77",
"tokenId": "10551",
"networkId": 1,
"name": "DS-1 Prototype Frigate [SE]",
"description": "โCommander, it just came up on the star chart, it must have slipped in from an undesignated jump point - it looks like its an Echelon ship but it's not responding.โ",
"originalImage": "ipfs://ipfs/QmNqCTMpQVSQ1LE4LTipwp8p68S4WYP4snFbdJCWfZxFBT/image.png",
"uri": "https://nftdata.parallelnft.com/api/parallel-alpha/ipfs/QmWX4XdpA24dS9t5ajAvYj1QwSP7CAay624RNueX11xALo",
"lastPriceUsd": "28.434054078660564",
"lastPriceNetworkBaseToken": "0.018",
"timestamp": 1676593269,
"media": {
"image": "https://nft-media.staging.defined.fi/image/0x76be3b62873462d2142405439777e971754e8e77:10551:1.webp",
"thumbSm": "https://nft-media.staging.defined.fi/thumbSm/0x76be3b62873462d2142405439777e971754e8e77:10551:1.webp",
"thumbLg": "https://nft-media.staging.defined.fi/thumbLg/0x76be3b62873462d2142405439777e971754e8e77:10551:1.webp"
},
"gameData": {
"rarity": "Uncommon",
"parallel": "Universal",
"cost": "7",
"attack": "10",
"health": "3",
"cardType": "Unit",
"subtype": "Vehicle",
"functionText": "When this Unit survives damage in combat, draw a card.",
"passiveAbility": null
},
"metadata": {
"class": "SE",
"supply": "1000",
"flavourText": "โCommander, it just came up on the star chart, it must have slipped in via an undesignated jump point - it looks like its an Ecehlon ship but it's not responding when hailed.โ",
"expansion": "Base Set",
"paraset": "Pack Drop 3 [SE]",
"artist": "Oscar Cafaro"
}
}
]
}
}
}
Explore
Ask questions, share what you're working on and request new features ๐ฌ๐ญ