## Batch get token metadata

### cURL

```
curl --request GET \
  --url https://api.neynar.com/v2/onchain/token/metadata/batch \
  --header 'x-api-key: NEYNAR_API_DOCS'
```

### Python

```
import requests

url = "https://api.neynar.com/v2/onchain/token/metadata/batch"

headers = {"x-api-key": "NEYNAR_API_DOCS"}

response = requests.get(url, headers=headers)

print(response.text)
```

### JavaScript

```
const options = {method: 'GET', headers: {'x-api-key': 'NEYNAR_API_DOCS'}};

fetch('https://api.neynar.com/v2/onchain/token/metadata/batch', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### PHP

```
<?php

$curl = curl_init();

curl_setopt_array($curl, [\
  CURLOPT_URL => "https://api.neynar.com/v2/onchain/token/metadata/batch",\
  CURLOPT_RETURNTRANSFER => true,\
  CURLOPT_ENCODING => "",\
  CURLOPT_MAXREDIRS => 10,\
  CURLOPT_TIMEOUT => 30,\
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\
  CURLOPT_CUSTOMREQUEST => "GET",\
  CURLOPT_HTTPHEADER => [\
    "x-api-key: NEYNAR_API_DOCS"\
  ],\
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
```

### Go

```
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

url := "https://api.neynar.com/v2/onchain/token/metadata/batch"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "NEYNAR_API_DOCS")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))
}
```

### Unirest (Java)

```
HttpResponse<String> response = Unirest.get("https://api.neynar.com/v2/onchain/token/metadata/batch")
  .header("x-api-key", "NEYNAR_API_DOCS")
  .asString();
```

### Ruby

```
require 'uri'
require 'net/http'

url = URI("https://api.neynar.com/v2/onchain/token/metadata/batch")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = 'NEYNAR_API_DOCS'

response = http.request(request)
puts response.read_body
```

### API Response Examples

#### 200 - Success
```
{
  "tokens": [
    {
      "address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
      "decimals": 6,
      "description": "USDC is a fully collateralized US dollar stablecoin",
      "fdv": "25000000000",
      "holder_count": 1500000,
      "image_url": "https://example.com/token.png",
      "liquidity": "500000000",
      "market_cap": "25000000000",
      "name": "USD Coin",
      "price_change_24h_pct": -1.2,
      "price_change_6h_pct": 0.5,
      "price_source": "onchain",
      "price_updated_at": 1707177600000,
      "price_usd": "1.00",
      "symbol": "USDC",
      "total_supply": "1000000000000",
      "volume_24h": "150000000",
      "volume_6h": "50000000"
    }
  ]
}
```

#### Error Response
```
{
  "message": "<string>",
  "code": "<string>",
  "property": "<string>",
  "status": 123
}
```

### Node.js SDK

#### Authorizations
| Header            | Type   | Required | Description                                 |
|-------------------|--------|----------|---------------------------------------------|
| x-api-key         | string | Yes      | API key to authorize requests               |

#### Query Parameters
| Parameter | Type   | Required | Description                                           |
|-----------|--------|----------|-------------------------------------------------------|
| networks  | string | Yes      | Comma-separated list of blockchain networks. E.g., "base" |
| addresses | string | Yes      | Comma-separated list of token contract addresses. E.g., "0x833589fcd6edb6..."

#### Related topics
- [Get token metadata](https://docs.neynar.com/reference/get-token-metadata)  
- [Get wallet token balances](https://docs.neynar.com/reference/get-wallet-balances)
