# realestate.co.nz Agent Profile API Documentation

Retrieve a public agent profile by agent id: name, slug, public listing phone and email, website, profile and awards, image, office, listing counts, categories and areas. Set include_listings=true to add the agent's current listings with the same page, rows and type parameters as search. Agent ids come from the agents field of a listing. Lookup by name is not available.

- **Documentation:** [https://scrappa.co/docs/realestate-co-nz-api/realestate_co_nz_agent](https://scrappa.co/docs/realestate-co-nz-api/realestate_co_nz_agent)
- **API group:** realestate.co.nz API
- **Endpoint:** `GET https://scrappa.co/api/realestate-co-nz/agent`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer | Yes | Numeric agent id from a listing, e.g. 564606. |
| `include_listings` | boolean | No | Set to true to add the agent's listings. Uses one extra request. |
| `type` | string | No | sale or rent. Listings category when include_listings is true. Defaults to sale. |
| `page` | integer | No | Listings page, 1-based. Defaults to 1. |
| `rows` | integer | No | Listings per page, 1 to 100. Defaults to 20. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/realestate-co-nz/agent?id=564606"
```

## Example response

```json
{
    "success": true,
    "data": {
        "agent": {
            "id": 564606,
            "name": "Mike Murphy",
            "first_name": "Mike",
            "last_name": "Murphy",
            "slug": "mike-murphy",
            "phone": "021 000 000",
            "email": "agent@example.co.nz",
            "website_url": "https://www.bayleys.co.nz/mike-murphy",
            "image": {
                "url": "https://mediaserver.realestate.co.nz/per_orgs/564606/4d7c20ec2f11518976580b049896b4da.jpg",
                "thumbnail_url": "https://mediaserver.realestate.co.nz/per_orgs/564606/4d7c20ec2f11518976580b049896b4da.crop.31x40.jpg",
                "medium_url": "https://mediaserver.realestate.co.nz/per_orgs/564606/4d7c20ec2f11518976580b049896b4da.crop.105x134.jpg",
                "large_url": "https://mediaserver.realestate.co.nz/per_orgs/564606/4d7c20ec2f11518976580b049896b4da.crop.140x178.jpg"
            },
            "office_name": "Bayleys Real Estate Ltd (Licensed: REAA 2008) - Pukekohe",
            "listing_count": 26,
            "office_id": 231240,
            "office_logo_url": "https://mediaserver.realestate.co.nz/per_orgs/231240/317fb1fad9daaf5bd0f93986120e4ebe.jpg",
            "office_brand_colour": "#00263A",
            "private_url": "https://www.mikemurphyrealestate.co.nz",
            "facebook_url": "https://www.facebook.com/mikemurphypukekoherealestate/",
            "linkedin_url": "https://www.linkedin.com/feed/?trk=onboarding-landing",
            "listing_total_count": 425,
            "listing_recent_count": 83,
            "active_listings_by_category": {
                "res_sale": 21,
                "rural_sale": 5
            },
            "categories": [
                "rural_sale",
                "res_sale"
            ],
            "suburbs": [
                "Tuakau",
                "Pukekohe"
            ],
            "profile_html": "<p>Mike Murphy comes from a legacy of real estate success, and has since built his own outstanding pattern of high performance.</p><p>Mike brings with him a net\u2026",
            "awards_html": "<ul><li>National EBU of the Year 2024/2025</li><li>Top 5% Bayleys Agents Nationwide</li><li>Bayleys $300 Million Dollar Club 2025/2026</li><li>Bayleys Pukekohe \u2026",
            "excellence_rank": 23,
            "is_feature_agent": false,
            "modified_at": "2026-10-24T13:03:37Z"
        }
    },
    "meta": {
        "endpoint_family": "agent",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | page times rows is above 10000. Narrow the search. Not billed. |
|  | Error | The listing, agent or office does not exist. Not billed. |
|  | Error | realestate.co.nz could not be reached. Not billed. |
|  | Error | realestate.co.nz refused the request. Not billed. |
|  | Error | The upstream service is temporarily unavailable. Please retry shortly. |
|  | Error | realestate.co.nz returned an unexpected payload shape. Not billed. |
|  | Error | realestate.co.nz rejected the request parameters. Not billed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
