Skip to content
Pandlens

Five-minute quickstart

From a free key to your first successful GET /v2/addresses and an MCP one-liner. Examples use https://api.pandlens.com.

From a free key to your first successful GET /v1/address and an MCP one-liner. Examples use https://api.pandlens.com.

Base URL
https://api.pandlens.com
Auth header
X-Api-Key: your_api_key
Free API key

You are viewing v2. v1 keeps working with the same key and quota.

1. Create a free API key

Get a free key (pl_live_…): you get a ready-to-run curl right away. 100 lookups per month, no credit card. Start here: Free API key.

The same key works for v1 and v2, with one monthly quota.

2. First REST call (curl)

curl -sS -H "X-Api-Key: your_api_key" \
  "https://api.pandlens.com/v2/addresses?postcode=1012JS&houseNumber=1"
curl -sS -H "X-Api-Key: your_api_key" \
  "https://api.pandlens.com/v1/address/1012JS/1"

3. Other languages

Use the curl, JavaScript, Python or C# tabs in step 2. In the JSON: match (exact, multiple or none), record.id (the BAG id to fetch the address later with GET /v2/addresses/{id}) and record.blocks.building, record.blocks.energyLabel and record.blocks.neighbourhood. Only need a few blocks? Add &blocks=building,energyLabel.

Use the curl, JavaScript, Python or C# tabs in step 2. Inspect data.bag, data.energyLabel and data.neighbourhood in the JSON.

4. MCP (agents)

Use the same X-Api-Key header. Streamable HTTP endpoint is below. The full tool list lives on the main docs page.

https://api.pandlens.com/mcp

Quick handshake test:

curl -sS -H "X-Api-Key: $PANDLENS_API_KEY" -H "Accept: application/json, text/event-stream" \
  "https://api.pandlens.com/mcp"

Cursor (example config):

{
  "mcpServers": {
    "pandlens": {
      "url": "https://api.pandlens.com/mcp",
      "headers": { "X-Api-Key": "$PANDLENS_API_KEY" }
    }
  }
}

5. Next steps

Open the full API docs for every v2 route (search, batch, areas, changes), the blocks, error codes and limits. WOZ is only available as a neighbourhood average, never per address.

Open the full API docs for sub-paths, errors and field details. For honest WOZ expectations (neighbourhood average + intelligence only), see /woz-api.

Five-minute quickstart · Pandlens