> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.galleon8.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.galleon8.com/_mcp/server.

# NFT API Quickstart

> Make a first Advanced API request for NFT ownership data.

This quickstart shows how to make a first NFT API request over HTTPS using JSON-RPC 2.0.

## Prerequisites

Before you start, make sure you have:

* A W3api project with Advanced API access.
* A project API key copied from the W3api platform.
* A terminal with `curl`.

Keep your API key private. Do not commit it to source control or expose it in frontend code.

---

## Set Your Endpoint

NFT API requests use the Advanced API multichain endpoint:

```shell
https://rpc.ankr.com/multichain/<apiKey>
```

Replace `<apiKey>` with your project API key. In the examples below, store the full URL as `YOUR_ADVANCED_API_ENDPOINT`.

---

## Make a Request with curl

Use `ankr_getNFTsByOwner` to request NFTs owned by a wallet address:

```bash
curl -X POST YOUR_ADVANCED_API_ENDPOINT \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "ankr_getNFTsByOwner",
    "params": {
      "blockchain": "eth",
      "walletAddress": "YOUR_WALLET_ADDRESS"
    },
    "id": 1
  }'
```

A successful response returns a JSON-RPC `result` object with NFT ownership data for the requested wallet:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "owner": "YOUR_WALLET_ADDRESS",
    "assets": [
      {
        "blockchain": "eth",
        "contractAddress": "0x03a1e037df88001bf867e3bcffa7e48bab0cf5a6",
        "contractType": "ERC721",
        "collectionName": "Cool Oliens",
        "name": "Cool Oliens #117",
        "symbol": "COOLIEN",
        "tokenId": "116",
        "imageUrl": "https://ipfs.io/ipfs/QmTzuLQSn78keGt3n36b3tNNs7B3WMjo2SNJUF9rRshPjA/116.png"
      }
    ],
    "nextPageToken": "NEXT_PAGE_TOKEN"
  }
}
```