Get address list - Webhooks

GET /address-lists/{id} returns one of your address lists, without its addresses. Read the addresses with Get address list entries.

GET https://public-api.getblock.io/api/v1/address-lists/{id}

Parameters

ParameterTypeRequiredDescription
idstringYesPath parameter. The list's id (al_…).

Request Example

bashcurl https://public-api.getblock.io/api/v1/address-lists/al_7hK2mPq9Wx3Z \
  -H "Authorization: Bearer $GETBLOCK_API_KEY"
javascriptconst id = 'al_7hK2mPq9Wx3Z';

const response = await fetch(`https://public-api.getblock.io/api/v1/address-lists/${id}`, {
  headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});

console.log(await response.json());
pythonimport os
import requests

list_id = "al_7hK2mPq9Wx3Z"

address_list = requests.get(
    f"https://public-api.getblock.io/api/v1/address-lists/{list_id}",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
).json()

print(address_list)

Response Example

json{
  "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

FieldTypeDescription
idstringal_ followed by 12 characters.
namestringUnique per account, at most 128 bytes.
entry_countintegerHow many addresses the list holds.
versionintegerThe list's version number. Compare it to detect changes.
created_at, updated_atstringRFC 3339 times.

Use Cases

  • Check entry_count after a large import
  • Detect a change made elsewhere by comparing version

Error Handling

HTTPCodeCause
404list_not_foundNo such list among yours. Another account's list and a malformed id answer the same way.