GET /address-lists returns your named address lists, newest first, one page at a time. A webhook's own list, created from its addresses field, is not included.
GET https://public-api.getblock.io/api/v1/address-lists
Parameters
Query parameters:
| Parameter | Type | Required | Description |
|---|
limit | integer | No | Page size. Default 50, at most 200. |
cursor | string | No | The next_cursor of the previous page. |
Request Example
bashcurl https://public-api.getblock.io/api/v1/address-lists \
-H "Authorization: Bearer $GETBLOCK_API_KEY"
javascriptconst response = await fetch('https://public-api.getblock.io/api/v1/address-lists', {
headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const { items } = await response.json();
for (const list of items) {
console.log(list.id, list.name, list.entry_count);
}
pythonimport os
import requests
page = requests.get(
"https://public-api.getblock.io/api/v1/address-lists",
headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
).json()
for address_list in page["items"]:
print(address_list["id"], address_list["name"], address_list["entry_count"])
Response Example
json{
"items": [
{
"id": "al_7hK2mPq9Wx3Z",
"name": "Treasury wallets",
"entry_count": 3,
"version": 2,
"created_at": "2026-09-25T10:00:00Z",
"updated_at": "2026-09-25T10:30:00Z"
}
]
}
Response Parameters
| Field | Type | Description |
|---|
items | array | One page of address list objects, newest first. Addresses are not included. |
next_cursor | string | Pass it as cursor for the next page. Absent on the last page. |
Use Cases
- Find a list's id by name before referencing it in a webhook
- Check how close each list is to the 100,000-address limit from
entry_count
Error Handling
| HTTP | Code | Cause |
|---|
| 400 | invalid_limit, invalid_cursor | limit is not an integer, or cursor was not issued by this endpoint. |