> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.modex.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.modex.com/_mcp/server.

# Get a real estate agent

GET https://api.modex.com/v1/resources/real-estate-agents/{real_estate_agent_id}

A single active real estate agent.

**Includes:** `mortgage` (real estate shape), `real_estate`, `census`, `contacts`.

| Field | Type | Description |
|---|---|---|
| `id` | UUID | Agent ID |
| `type` | string | Always `real_estate_agent` |
| `name` | string | Full name |
| `office` | object, nullable | Current office: `id`, `name`, `address` |
| `transaction_states` | array of strings | Two-letter codes of states where the agent has transactions |
| `mls_organizations` | array | MLSs the agent belongs to: `id`, `name` |
| `has_contact_data` | boolean | Whether contact data exists to unlock |

Returns 403 when real estate data isn't enabled for your account.

Reference: https://docs.modex.com/api-reference/real-estate-data/real-estate-agents/show-real-estate-agent

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `real_estate_agent_id` (string, required)

### Query parameters

- `include` (string, optional) — Comma-separated extras: mortgage, real_estate, census, contacts. contacts is returned only after this agent has been unlocked.

## Response

### 200

OK

- `id` (string, optional) — Agent ID
- `type` (string, optional) — Always `real_estate_agent`
- `name` (string, optional) — Full name
- `office` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaOffice, optional) — Current office: `id`, `name`, `address`
- `transaction_states` (list of string, optional) — Two-letter codes of states where the agent has transactions
- `mls_organizations` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMlsOrganizationsItems, optional) — MLSs the agent belongs to: `id`, `name`
- `has_contact_data` (boolean, optional) — Whether contact data exists to unlock
- `real_estate` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstate, optional) — MLS transactions over the rolling 12 months, split into combined, listing, and buyer sides. Present with `include=real_estate`.
- `mortgage` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgage, optional) — Production over the rolling 12 months. Present when requested with `include=mortgage`.
- `contacts` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaContacts, optional) — Phone numbers, emails, and websites. `null` until you unlock the record. Present with `include=contacts`.

## Errors

### 403 Forbidden Error

Forbidden

- `error` (ApiErrorError, required)

## Types

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaOffice

Current office: `id`, `name`, `address`

- `id` (string, optional) — Modex ID (UUID)
- `name` (string, optional) — Name
- `address` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaOfficeAddress, optional)

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMlsOrganizationsItems

- `id` (string, optional) — Modex ID (UUID)
- `name` (string, optional) — Name

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstate

MLS transactions over the rolling 12 months, split into combined, listing, and buyer sides. Present with `include=real_estate`.

- `combined` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombined, optional) — Every transaction on either side
- `listing` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListing, optional) — Transactions where the agent or office represented the seller
- `buyer` (V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyer, optional) — Transactions where the agent or office represented the buyer

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgage

Production over the rolling 12 months. Present when requested with `include=mortgage`.

- `volume` (integer, optional) — Total loan amount, in dollars
- `units` (integer, optional) — Number of loans
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `buyer_loan_officers` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageBuyerLoanOfficersItems, optional)
- `listing_loan_officers` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageListingLoanOfficersItems, optional)
- `buyer_offices` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageBuyerOfficesItems, optional)
- `listing_offices` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageListingOfficesItems, optional)

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaContacts

Phone numbers, emails, and websites. `null` until you unlock the record. Present with `include=contacts`.

- `phone_numbers` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaContactsPhoneNumbersItems, optional) — `{type, value}` rows, e.g. `{"type": "mobile", "value": "(503) 555-0142"}`
- `emails` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaContactsEmailsItems, optional) — `{type, value}` rows
- `websites` (list of any, optional) — `{type, value}` rows

### ApiErrorError

- `type` (string, required) — Error category: invalid_request, authentication_error, permission_error, not_found, rate_limit_error, or api_error.
- `code` (string, required) — Specific error code. Same as `type`, except `validation_error` for request-body validation failures.
- `message` (string, required) — Human-readable explanation.
- `details` (map from string to list of string, optional) — Validation errors only: each invalid field mapped to its messages.

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaOfficeAddress

- `street` (string, optional)
- `city` (string, optional) — Breakdown by city
- `state` (string, optional)
- `zipcode` (string, optional)
- `formatted` (string, optional)

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombined

Every transaction on either side

- `volume` (integer, optional) — Total dollar amount over the window
- `units` (integer, optional) — Number of transactions over the window
- `average` (integer, optional) — Average dollar amount
- `average_monthly` (integer, optional) — `volume` divided by the months in the window
- `city` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedCityItems, optional) — Breakdown by city
- `property_type` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedPropertyTypeItems, optional) — Breakdown by property type
- `senior_community` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedSeniorCommunityItems, optional) — Breakdown by senior-community flag (`Yes` / `No`)
- `view_description` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedViewDescriptionItems, optional) — Breakdown by listed view

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListing

Transactions where the agent or office represented the seller

- `volume` (integer, optional) — Total dollar amount over the window
- `units` (integer, optional) — Number of transactions over the window
- `average` (integer, optional) — Average dollar amount
- `average_monthly` (integer, optional) — `volume` divided by the months in the window
- `city` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingCityItems, optional) — Breakdown by city
- `property_type` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingPropertyTypeItems, optional) — Breakdown by property type
- `senior_community` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingSeniorCommunityItems, optional) — Breakdown by senior-community flag (`Yes` / `No`)
- `view_description` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingViewDescriptionItems, optional) — Breakdown by listed view

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyer

Transactions where the agent or office represented the buyer

- `volume` (integer, optional) — Total dollar amount over the window
- `units` (integer, optional) — Number of transactions over the window
- `average` (integer, optional) — Average dollar amount
- `average_monthly` (integer, optional) — `volume` divided by the months in the window
- `city` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerCityItems, optional) — Breakdown by city
- `property_type` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerPropertyTypeItems, optional) — Breakdown by property type
- `senior_community` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerSeniorCommunityItems, optional) — Breakdown by senior-community flag (`Yes` / `No`)
- `view_description` (list of V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerViewDescriptionItems, optional) — Breakdown by listed view

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageBuyerLoanOfficersItems

- `first_name` (string, optional) — First name
- `last_name` (string, optional) — Last name
- `loan_officer_id` (string, optional) — Modex loan officer ID, when matched
- `company_name` (string, optional) — Company name
- `count` (integer, optional) — Number of transactions in this category
- `sale_amount_sum` (integer, optional) — Total sale amount, in dollars
- `sale_amount_average` (integer, optional) — Average sale amount, in dollars
- `loan_amount_sum` (integer, optional) — Total loan amount, in dollars
- `loan_amount_average` (integer, optional) — Average loan amount, in dollars
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageListingLoanOfficersItems

- `first_name` (string, optional) — First name
- `last_name` (string, optional) — Last name
- `loan_officer_id` (any, optional) — Modex loan officer ID, when matched
- `company_name` (string, optional) — Company name
- `count` (integer, optional) — Number of transactions in this category
- `sale_amount_sum` (integer, optional) — Total sale amount, in dollars
- `sale_amount_average` (integer, optional) — Average sale amount, in dollars
- `loan_amount_sum` (integer, optional) — Total loan amount, in dollars
- `loan_amount_average` (integer, optional) — Average loan amount, in dollars
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageBuyerOfficesItems

- `company_name` (string, optional) — Company name
- `count` (integer, optional) — Number of transactions in this category
- `sale_amount_sum` (integer, optional) — Total sale amount, in dollars
- `sale_amount_average` (integer, optional) — Average sale amount, in dollars
- `loan_amount_sum` (integer, optional) — Total loan amount, in dollars
- `loan_amount_average` (integer, optional) — Average loan amount, in dollars
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaMortgageListingOfficesItems

- `company_name` (string, optional) — Company name
- `count` (integer, optional) — Number of transactions in this category
- `sale_amount_sum` (integer, optional) — Total sale amount, in dollars
- `sale_amount_average` (integer, optional) — Average sale amount, in dollars
- `loan_amount_sum` (integer, optional) — Total loan amount, in dollars
- `loan_amount_average` (integer, optional) — Average loan amount, in dollars
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaContactsPhoneNumbersItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaContactsEmailsItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedCityItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedPropertyTypeItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedSeniorCommunityItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateCombinedViewDescriptionItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingCityItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingPropertyTypeItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingSeniorCommunityItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateListingViewDescriptionItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerCityItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerPropertyTypeItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerSeniorCommunityItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

### V1ResourcesRealEstateAgentsRealEstateAgentIdGetResponsesContentApplicationJsonSchemaRealEstateBuyerViewDescriptionItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `sum` (integer, optional) — Dollar amount in this category
- `count` (integer, optional) — Number of transactions in this category
- `average` (integer, optional) — Average dollar amount
- `percent_sum` (double, optional) — Share of total dollars, 0–100
- `percent_count` (double, optional) — Share of total transactions, 0–100

## Examples

### With real_estate

**Response**

```json
{
  "id": "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01",
  "type": "real_estate_agent",
  "name": "Casey Morgan",
  "office": {
    "id": "f0a1b2c3-d4e5-4f60-8a7b-9c0d1e2f3a44",
    "name": "Cascade Realty Group",
    "address": {
      "street": "2300 NE Broadway",
      "city": "Portland",
      "state": "OR",
      "zipcode": "97232",
      "formatted": "2300 NE Broadway, Portland, OR 97232"
    }
  },
  "transaction_states": [
    "OR",
    "WA"
  ],
  "mls_organizations": [
    {
      "id": "a9b8c7d6-e5f4-4a3b-9c2d-1e0f9a8b7c6d",
      "name": "Example Regional MLS"
    }
  ],
  "has_contact_data": true,
  "real_estate": {
    "combined": {
      "volume": 14820000,
      "units": 22,
      "average": 673636,
      "average_monthly": 1235000,
      "city": [
        {
          "label": "Portland",
          "sum": 11460000,
          "count": 17,
          "average": 674118,
          "percent_sum": 77.3279,
          "percent_count": 77.2727
        },
        {
          "label": "Beaverton",
          "sum": 3360000,
          "count": 5,
          "average": 672000,
          "percent_sum": 22.6721,
          "percent_count": 22.7273
        }
      ],
      "property_type": [
        {
          "label": "Single Family Residence",
          "sum": 12900000,
          "count": 18,
          "average": 716667,
          "percent_sum": 87.0445,
          "percent_count": 81.8182
        },
        {
          "label": "Condominium",
          "sum": 1920000,
          "count": 4,
          "average": 480000,
          "percent_sum": 12.9555,
          "percent_count": 18.1818
        }
      ],
      "senior_community": [
        {
          "label": "No",
          "sum": 14820000,
          "count": 22,
          "average": 673636,
          "percent_sum": 100,
          "percent_count": 100
        }
      ],
      "view_description": [
        {
          "label": "Not provided",
          "sum": 14820000,
          "count": 22,
          "average": 673636,
          "percent_sum": 100,
          "percent_count": 100
        }
      ]
    },
    "listing": {
      "volume": 8640000,
      "units": 12,
      "average": 720000,
      "average_monthly": 720000,
      "city": [
        {
          "label": "Portland",
          "sum": 6480000,
          "count": 9,
          "average": 720000,
          "percent_sum": 75,
          "percent_count": 75
        },
        {
          "label": "Beaverton",
          "sum": 2160000,
          "count": 3,
          "average": 720000,
          "percent_sum": 25,
          "percent_count": 25
        }
      ],
      "property_type": [
        {
          "label": "Single Family Residence",
          "sum": 7680000,
          "count": 10,
          "average": 768000,
          "percent_sum": 88.8889,
          "percent_count": 83.3333
        },
        {
          "label": "Condominium",
          "sum": 960000,
          "count": 2,
          "average": 480000,
          "percent_sum": 11.1111,
          "percent_count": 16.6667
        }
      ],
      "senior_community": [
        {
          "label": "No",
          "sum": 8640000,
          "count": 12,
          "average": 720000,
          "percent_sum": 100,
          "percent_count": 100
        }
      ],
      "view_description": [
        {
          "label": "Not provided",
          "sum": 8640000,
          "count": 12,
          "average": 720000,
          "percent_sum": 100,
          "percent_count": 100
        }
      ]
    },
    "buyer": {
      "volume": 6180000,
      "units": 10,
      "average": 618000,
      "average_monthly": 515000,
      "city": [
        {
          "label": "Portland",
          "sum": 4980000,
          "count": 8,
          "average": 622500,
          "percent_sum": 80.5825,
          "percent_count": 80
        },
        {
          "label": "Beaverton",
          "sum": 1200000,
          "count": 2,
          "average": 600000,
          "percent_sum": 19.4175,
          "percent_count": 20
        }
      ],
      "property_type": [
        {
          "label": "Single Family Residence",
          "sum": 5220000,
          "count": 8,
          "average": 652500,
          "percent_sum": 84.466,
          "percent_count": 80
        },
        {
          "label": "Condominium",
          "sum": 960000,
          "count": 2,
          "average": 480000,
          "percent_sum": 15.534,
          "percent_count": 20
        }
      ],
      "senior_community": [
        {
          "label": "No",
          "sum": 6180000,
          "count": 10,
          "average": 618000,
          "percent_sum": 100,
          "percent_count": 100
        }
      ],
      "view_description": [
        {
          "label": "Not provided",
          "sum": 6180000,
          "count": 10,
          "average": 618000,
          "percent_sum": 100,
          "percent_count": 100
        }
      ]
    }
  }
}
```

**SDK Code**

```python With real_estate
import requests

url = "https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id"

querystring = {"include":"mortgage,real_estate,census,contacts"}

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript With real_estate
const url = 'https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go With real_estate
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby With real_estate
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java With real_estate
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php With real_estate
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp With real_estate
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift With real_estate
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### With mortgage and contacts

**Response**

```json
{
  "id": "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01",
  "type": "real_estate_agent",
  "name": "Casey Morgan",
  "office": {
    "id": "f0a1b2c3-d4e5-4f60-8a7b-9c0d1e2f3a44",
    "name": "Cascade Realty Group",
    "address": {
      "street": "2300 NE Broadway",
      "city": "Portland",
      "state": "OR",
      "zipcode": "97232",
      "formatted": "2300 NE Broadway, Portland, OR 97232"
    }
  },
  "transaction_states": [
    "OR",
    "WA"
  ],
  "mls_organizations": [
    {
      "id": "a9b8c7d6-e5f4-4a3b-9c2d-1e0f9a8b7c6d",
      "name": "Example Regional MLS"
    }
  ],
  "has_contact_data": true,
  "mortgage": {
    "volume": 5458000,
    "units": 9,
    "average": 606444,
    "buyer_loan_officers": [
      {
        "first_name": "Jordan",
        "last_name": "Ellery",
        "loan_officer_id": "c4e5f6a7-8b9c-4d0e-a1f2-3b4c5d6e7f80",
        "company_name": "Northstar Lending Group, LLC",
        "count": 4,
        "sale_amount_sum": 2460000,
        "sale_amount_average": 615000,
        "loan_amount_sum": 1968000,
        "loan_amount_average": 492000,
        "percent_sum": 45.0715,
        "percent_count": 44.4444
      },
      {
        "first_name": "Riley",
        "last_name": "Chen",
        "loan_officer_id": "d5f6a7b8-9c0d-4e1f-b2a3-4c5d6e7f8091",
        "company_name": "Northstar Lending Group, LLC",
        "count": 2,
        "sale_amount_sum": 1176000,
        "sale_amount_average": 588000,
        "loan_amount_sum": 940800,
        "loan_amount_average": 470400,
        "percent_sum": 21.5464,
        "percent_count": 22.2222
      }
    ],
    "listing_loan_officers": [
      {
        "first_name": "Avery",
        "last_name": "Brooks",
        "company_name": "Evergreen Home Loans, Inc.",
        "count": 3,
        "sale_amount_sum": 2106000,
        "sale_amount_average": 702000,
        "loan_amount_sum": 1684800,
        "loan_amount_average": 561600,
        "percent_sum": 38.5856,
        "percent_count": 33.3333
      }
    ],
    "buyer_offices": [
      {
        "company_name": "Northstar Lending Group, LLC",
        "count": 6,
        "sale_amount_sum": 3636000,
        "sale_amount_average": 606000,
        "loan_amount_sum": 2908800,
        "loan_amount_average": 484800,
        "percent_sum": 66.6178,
        "percent_count": 66.6667
      }
    ],
    "listing_offices": [
      {
        "company_name": "Evergreen Home Loans, Inc.",
        "count": 3,
        "sale_amount_sum": 2106000,
        "sale_amount_average": 702000,
        "loan_amount_sum": 1684800,
        "loan_amount_average": 561600,
        "percent_sum": 38.5856,
        "percent_count": 33.3333
      }
    ]
  },
  "contacts": {
    "phone_numbers": [
      {
        "type": "mobile",
        "value": "(503) 555-0177"
      }
    ],
    "emails": [
      {
        "type": "work",
        "value": "casey.morgan@example.com"
      }
    ],
    "websites": []
  }
}
```

**SDK Code**

```python With mortgage and contacts
import requests

url = "https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id"

querystring = {"include":"mortgage,real_estate,census,contacts"}

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript With mortgage and contacts
const url = 'https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go With mortgage and contacts
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby With mortgage and contacts
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java With mortgage and contacts
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php With mortgage and contacts
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp With mortgage and contacts
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift With mortgage and contacts
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/real-estate-agents/real_estate_agent_id?include=mortgage%2Creal_estate%2Ccensus%2Ccontacts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```