Get NFTs by wallet address

Returns a paginated list of NFTs owned by the specified wallet address. Supports cursor-based pagination via openseaNextToken.

GEThttps://api.1inch.com/nft/v2/byaddress

Parameters

chainIds
* array query
address
* string query
limit
number query
offset
number query
openseaNextToken
string query

Request Body

This request doesn’t have any request body.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const axios = require('axios');

async function httpCall() {
  const url = 'https://api.1inch.com/nft/v2/byaddress';

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {
      chainIds: [1, 137],
      address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
      limit: 10,
      offset: 0,
    },
    paramsSerializer: {
      indexes: null,
    },
  };
  const body = {};

  try {
    const response = await axios.get(url, body, config);
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

Returns

200
400
401
500
AssetsResponse object
assets
* array
items
NftV2Model object
id
* string
token_id
* string
provider
* string (Enum)
OPENSEA
RARIBLE
POAP
name
* string
chainId
* number
priority
* number
asset_contract
* any
allOf[0]
AssetContract object
address
* string
schema_name
* string
image_url
* string
openseaNextToken
* string
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  "assets": [
    {
      "id": "string",
      "token_id": "string",
      "provider": "OPENSEA",
      "name": "string",
      "chainId": 0,
      "priority": 0,
      "asset_contract": {
        "address": "string",
        "schema_name": "string"
      },
      "image_url": "string"
    }
  ],
  "openseaNextToken": "string"
}

Did you find what you need?