> 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 company

GET https://api.modex.com/v1/resources/companies/{company_id}

A single active company.

**Includes:** `mortgage`, `non_qm`, `lender_beneficiaries`, `census`, `licenses`, `trade_names`, `federal_registrations`. See [Includes and field reference](/includes) for each shape.

| Field | Type | Description |
|---|---|---|
| `id` | UUID | Company ID |
| `type` | string | Always `company` |
| `name` | string | Legal name |
| `nmls_id` | integer, nullable | NMLS ID |
| `address` | object | Main office address |

Companies aren't state-restricted, but their branch and loan officer rosters are.

Reference: https://docs.modex.com/api-reference/mortgage-data/companies/show-company

## Authentication

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

## Request

### Path parameters

- `company_id` (string, required)

### Query parameters

- `include` (string, optional) — Comma-separated extras: mortgage, licenses, census, non_qm, lender_beneficiaries, trade_names, federal_registrations. trade_names returns current and prior trade names. federal_registrations returns active and past flags. lender_beneficiaries returns 403 when lender beneficiaries aren't enabled for your account.

## Response

### 200

OK

- `id` (string, optional) — Company ID
- `type` (string, optional) — Always `company`
- `name` (string, optional) — Legal name
- `nmls_id` (integer, optional) — NMLS ID
- `address` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaAddress, optional) — Main office address
- `mortgage` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgage, optional) — Production over the rolling 12 months. Present when requested with `include=mortgage`.
- `licenses` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLicenses, optional) — Active mortgage licenses and authorized states. Present with `include=licenses`.
- `trade_names` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaTradeNames, optional) — Current and prior trade names. Present with `include=trade_names`.
- `non_qm` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaNonQm, optional) — Non-QM production over the rolling 12 months. Present with `include=non_qm`.
- `lender_beneficiaries` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLenderBeneficiaries, optional) — Production by lender over the rolling 12 months. Present with `include=lender_beneficiaries`.
- `census` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensus, optional) — Census-tract breakdown of transactions over the rolling 12 months. Present with `include=census`.
- `federal_registrations` (V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaFederalRegistrations, optional) — Federal registration status. Present with `include=federal_registrations`.

## Errors

### 400 Bad Request Error

Bad Request

- `error` (ApiErrorError, required)

### 404 Not Found Error

Not Found

- `error` (ApiErrorError, required)

## Types

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaAddress

Main office address

- `street` (string, optional) — Street line
- `city` (string, optional) — City
- `state` (string, optional) — Two-letter state code
- `zipcode` (string, optional) — ZIP code
- `formatted` (string, optional) — Full single-line address

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgage

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
- `transaction_type` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgageTransactionTypeItems, optional) — Breakdown by purpose: Purchase, Refinance, Home Equity, Construction
- `loan_type` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgageLoanTypeItems, optional) — Breakdown by loan type: Conventional, FHA, VA, USDA, Stand Alone Second, and others
- `property_type` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgagePropertyTypeItems, optional) — Breakdown by property type: Single Family Residence, Condominium, Townhouse, and others

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLicenses

Active mortgage licenses and authorized states. Present with `include=licenses`.

- `items` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLicensesItemsItems, optional)
- `authorized_states` (list of string, optional) — Two-letter codes of states with an active license

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaTradeNames

Current and prior trade names. Present with `include=trade_names`.

- `trade_names` (list of string, optional) — Current trade names (DBAs)
- `prior_trade_names` (list of string, optional) — Trade names used previously. May repeat a name.

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaNonQm

Non-QM production over the rolling 12 months. Present with `include=non_qm`.

- `volume` (integer, optional) — Total dollar amount over the window
- `units` (integer, optional) — Number of transactions over the window
- `average` (integer, optional) — Average dollar amount
- `transaction_type` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaNonQmTransactionTypeItems, optional)
- `loan_type` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaNonQmLoanTypeItems, optional)

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLenderBeneficiaries

Production by lender over the rolling 12 months. Present with `include=lender_beneficiaries`.

- `items` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLenderBeneficiariesItemsItems, optional) — One row per lender, sorted by `count`, highest first. Same row fields as `mortgage`, plus `id`.

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensus

Census-tract breakdown of transactions over the rolling 12 months. Present with `include=census`.

- `cra_poverty` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraPovertyItems, optional) — Tracts meeting the CRA poverty criterion
- `cra_unemployment` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraUnemploymentItems, optional) — Tracts meeting the CRA unemployment criterion
- `cra_distressed` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraDistressedItems, optional) — Distressed middle-income tracts
- `cra_remote_rural` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraRemoteRuralItems, optional) — Remote rural tracts
- `income_indicator` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusIncomeIndicatorItems, optional) — Tract income level. Sorted by `percent`, highest first.
- `population` (list of V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusPopulationItems, optional) — Tract population majority. Sorted by `percent`, highest first.

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaFederalRegistrations

Federal registration status. Present with `include=federal_registrations`.

- `items` (list of any, optional) — Loan officers only: registration history, latest first. Always empty for companies.
- `active` (boolean, optional) — Currently federally registered
- `past` (boolean, optional) — Has a past federal registration that has ended

### 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.

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgageTransactionTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgageLoanTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaMortgagePropertyTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLicensesItemsItems

- `name` (string, optional) — License name as issued, e.g. `Mortgage Loan Originator License`
- `license_id` (string, optional) — State license number, when the regulator publishes one
- `regulator` (string, optional) — Issuing state or agency, e.g. `Washington`, `California - DFPI`
- `status_label` (string, optional) — License status, e.g. `Approved`
- `issued_date` (date, optional) — Original issue date
- `status_date` (date, optional) — Date of the latest status change
- `renewed_through` (integer, optional) — Year the license is renewed through
- `authorized_to_conduct_business` (boolean, optional) — Whether the license currently authorizes business

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaNonQmTransactionTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100
- `percent_sum_total` (double, optional) — This row's dollars as a share of **all** production (not just non-QM), 0–100
- `percent_count_total` (double, optional) — This row's loans as a share of **all** production, 0–100

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaNonQmLoanTypeItems

- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100
- `percent_sum_total` (double, optional) — This row's dollars as a share of **all** production (not just non-QM), 0–100
- `percent_count_total` (double, optional) — This row's loans as a share of **all** production, 0–100

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaLenderBeneficiariesItemsItems

- `id` (string, optional, nullable) — Modex's internal ID for this lender name association. It is **not** a lender beneficiary ID and can't be used with **Show Lender Beneficiary**. `null` for `Not provided`.
- `label` (string, optional) — Category name. Loans with no value recorded are grouped as `Not provided`.
- `sum` (integer, optional) — Loan amount in this category, in dollars
- `count` (integer, optional) — Number of loans in this category
- `average` (integer, optional) — Average loan amount in this category, in dollars
- `percent_sum` (double, optional) — Share of `volume`, 0–100
- `percent_count` (double, optional) — Share of `units`, 0–100

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraPovertyItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraUnemploymentItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraDistressedItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusCraRemoteRuralItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (string, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusIncomeIndicatorItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (double, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

### V1ResourcesCompaniesCompanyIdGetResponsesContentApplicationJsonSchemaCensusPopulationItems

- `label` (string, optional) — Category name. Records with no value are grouped as `Not provided`.
- `percent` (double, optional) — Share of transactions, 0–100. A string in the four `cra_*` lists, a number elsewhere.
- `count` (integer, optional) — Number of transactions in this category

## Examples

### Base record

**Response**

```json
{
  "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
  "type": "company",
  "name": "Northstar Lending Group, LLC",
  "nmls_id": 1234567,
  "address": {
    "street": "1200 NW Naito Parkway",
    "city": "Portland",
    "state": "OR",
    "zipcode": "97209",
    "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
  }
}
```

**SDK Code**

```python Base record
import requests

url = "https://api.modex.com/v1/resources/companies/company_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,trade_names,federal_registrations"}

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

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

print(response.json())
```

```javascript Base record
const url = 'https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations';
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 Base record
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations"

	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 Base record
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")

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 Base record
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Base record
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Base record
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Base record
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")! 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, licenses, trade names

**Response**

```json
{
  "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
  "type": "company",
  "name": "Northstar Lending Group, LLC",
  "nmls_id": 1234567,
  "address": {
    "street": "1200 NW Naito Parkway",
    "city": "Portland",
    "state": "OR",
    "zipcode": "97209",
    "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
  },
  "mortgage": {
    "volume": 1284500000,
    "units": 3412,
    "average": 376465,
    "transaction_type": [
      {
        "label": "Purchase",
        "sum": 846000000,
        "count": 2105,
        "average": 401900,
        "percent_sum": 65.8622,
        "percent_count": 61.694
      },
      {
        "label": "Refinance",
        "sum": 381200000,
        "count": 1006,
        "average": 378926,
        "percent_sum": 29.6769,
        "percent_count": 29.4842
      },
      {
        "label": "Home Equity",
        "sum": 57300000,
        "count": 301,
        "average": 190365,
        "percent_sum": 4.4609,
        "percent_count": 8.8218
      }
    ],
    "loan_type": [
      {
        "label": "Conventional",
        "sum": 902400000,
        "count": 2311,
        "average": 390480,
        "percent_sum": 70.253,
        "percent_count": 67.7315
      },
      {
        "label": "FHA",
        "sum": 214600000,
        "count": 628,
        "average": 341720,
        "percent_sum": 16.7069,
        "percent_count": 18.4056
      },
      {
        "label": "VA",
        "sum": 132900000,
        "count": 341,
        "average": 389736,
        "percent_sum": 10.3464,
        "percent_count": 9.9941
      },
      {
        "label": "Stand Alone Second",
        "sum": 34600000,
        "count": 132,
        "average": 262121,
        "percent_sum": 2.6937,
        "percent_count": 3.8687
      }
    ],
    "property_type": [
      {
        "label": "Single Family Residence",
        "sum": 1041100000,
        "count": 2702,
        "average": 385307,
        "percent_sum": 81.051,
        "percent_count": 79.1911
      },
      {
        "label": "Condominium",
        "sum": 128300000,
        "count": 386,
        "average": 332383,
        "percent_sum": 9.9883,
        "percent_count": 11.313
      },
      {
        "label": "Townhouse",
        "sum": 73400000,
        "count": 207,
        "average": 354589,
        "percent_sum": 5.7143,
        "percent_count": 6.0668
      },
      {
        "label": "Not provided",
        "sum": 41700000,
        "count": 117,
        "average": 356410,
        "percent_sum": 3.2464,
        "percent_count": 3.4291
      }
    ]
  },
  "licenses": {
    "items": [
      {
        "name": "Mortgage Lender License",
        "license_id": "ML-5501",
        "regulator": "Oregon",
        "status_label": "Approved",
        "issued_date": "2012-06-01",
        "status_date": "2026-01-02",
        "renewed_through": 2026,
        "authorized_to_conduct_business": true
      },
      {
        "name": "Consumer Loan Company License",
        "license_id": "CL-1234567",
        "regulator": "Washington",
        "status_label": "Approved",
        "issued_date": "2012-07-15",
        "status_date": "2026-01-02",
        "renewed_through": 2026,
        "authorized_to_conduct_business": true
      },
      {
        "name": "Mortgage Broker/Lender License",
        "license_id": "MBL-2081234567",
        "regulator": "Idaho",
        "status_label": "Approved",
        "issued_date": "2015-02-09",
        "status_date": "2026-01-02",
        "renewed_through": 2026,
        "authorized_to_conduct_business": true
      }
    ],
    "authorized_states": [
      "OR",
      "WA",
      "ID"
    ]
  },
  "trade_names": {
    "trade_names": [
      "Northstar Home Loans",
      "Northstar Mortgage"
    ],
    "prior_trade_names": [
      "Northstar Lending"
    ]
  }
}
```

**SDK Code**

```python With mortgage, licenses, trade names
import requests

url = "https://api.modex.com/v1/resources/companies/company_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,trade_names,federal_registrations"}

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

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

print(response.json())
```

```javascript With mortgage, licenses, trade names
const url = 'https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations';
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, licenses, trade names
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations"

	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, licenses, trade names
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")

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, licenses, trade names
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php With mortgage, licenses, trade names
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp With mortgage, licenses, trade names
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift With mortgage, licenses, trade names
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")! 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 non_qm, lender_beneficiaries, census, federal_registrations

**Response**

```json
{
  "id": "8f3c2a10-4b7e-4d21-9a6f-1c2d3e4f5a60",
  "type": "company",
  "name": "Northstar Lending Group, LLC",
  "nmls_id": 1234567,
  "address": {
    "street": "1200 NW Naito Parkway",
    "city": "Portland",
    "state": "OR",
    "zipcode": "97209",
    "formatted": "1200 NW Naito Parkway, Portland, OR 97209"
  },
  "non_qm": {
    "volume": 41800000,
    "units": 74,
    "average": 564865,
    "transaction_type": [
      {
        "label": "Purchase",
        "sum": 29600000,
        "count": 51,
        "average": 580392,
        "percent_sum": 70.8134,
        "percent_count": 68.9189,
        "percent_sum_total": 2.3044,
        "percent_count_total": 1.4947
      },
      {
        "label": "Refinance",
        "sum": 12200000,
        "count": 23,
        "average": 530435,
        "percent_sum": 29.1866,
        "percent_count": 31.0811,
        "percent_sum_total": 0.9498,
        "percent_count_total": 0.6741
      }
    ],
    "loan_type": [
      {
        "label": "Conventional",
        "sum": 41800000,
        "count": 74,
        "average": 564865,
        "percent_sum": 100,
        "percent_count": 100,
        "percent_sum_total": 3.2542,
        "percent_count_total": 2.1688
      }
    ]
  },
  "lender_beneficiaries": {
    "items": [
      {
        "id": "40c1d2e3-f4a5-4b6c-8d7e-8f9a0b1c2d30",
        "label": "Northstar Lending Group, LLC",
        "sum": 1196000000,
        "count": 3188,
        "average": 375157,
        "percent_sum": 93.1102,
        "percent_count": 93.4349
      },
      {
        "id": "41c1d2e3-f4a5-4b6c-8d7e-8f9a0b1c2d31",
        "label": "Evergreen Wholesale Lending",
        "sum": 61400000,
        "count": 152,
        "average": 403947,
        "percent_sum": 4.7801,
        "percent_count": 4.4549
      },
      {
        "id": null,
        "label": "Not provided",
        "sum": 27100000,
        "count": 72,
        "average": 376389,
        "percent_sum": 2.1098,
        "percent_count": 2.1102
      }
    ]
  },
  "census": {
    "cra_poverty": [
      {
        "label": "Meets CRA Criteria",
        "percent": "4.35",
        "count": 148
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "95.65",
        "count": 3264
      }
    ],
    "cra_unemployment": [
      {
        "label": "Meets CRA Criteria",
        "percent": "2.17",
        "count": 74
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "97.83",
        "count": 3338
      }
    ],
    "cra_distressed": [
      {
        "label": "Meets CRA Criteria",
        "percent": "0.00",
        "count": 0
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "100.00",
        "count": 3412
      }
    ],
    "cra_remote_rural": [
      {
        "label": "Meets CRA Criteria",
        "percent": "0.00",
        "count": 0
      },
      {
        "label": "Does Not Meet Criteria",
        "percent": "100.00",
        "count": 3412
      }
    ],
    "income_indicator": [
      {
        "label": "Middle",
        "percent": 52.17,
        "count": 1780
      },
      {
        "label": "Upper",
        "percent": 30.43,
        "count": 1038
      },
      {
        "label": "Moderate",
        "percent": 13.04,
        "count": 445
      },
      {
        "label": "Low",
        "percent": 4.35,
        "count": 148
      },
      {
        "label": "Unknown",
        "percent": 0,
        "count": 0
      }
    ],
    "population": [
      {
        "label": "White",
        "percent": 82.61,
        "count": 2819
      },
      {
        "label": "No Majority",
        "percent": 10.87,
        "count": 371
      },
      {
        "label": "Hispanic",
        "percent": 4.35,
        "count": 148
      },
      {
        "label": "Asian",
        "percent": 2.17,
        "count": 74
      },
      {
        "label": "Black",
        "percent": 0,
        "count": 0
      },
      {
        "label": "Native",
        "percent": 0,
        "count": 0
      },
      {
        "label": "Hawaiian",
        "percent": 0,
        "count": 0
      },
      {
        "label": "Other",
        "percent": 0,
        "count": 0
      }
    ]
  },
  "federal_registrations": {
    "items": [],
    "active": false,
    "past": false
  }
}
```

**SDK Code**

```python With non_qm, lender_beneficiaries, census, federal_registrations
import requests

url = "https://api.modex.com/v1/resources/companies/company_id"

querystring = {"include":"mortgage,licenses,census,non_qm,lender_beneficiaries,trade_names,federal_registrations"}

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

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

print(response.json())
```

```javascript With non_qm, lender_beneficiaries, census, federal_registrations
const url = 'https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations';
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 non_qm, lender_beneficiaries, census, federal_registrations
package main

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

func main() {

	url := "https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations"

	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 non_qm, lender_beneficiaries, census, federal_registrations
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")

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 non_qm, lender_beneficiaries, census, federal_registrations
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php With non_qm, lender_beneficiaries, census, federal_registrations
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp With non_qm, lender_beneficiaries, census, federal_registrations
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift With non_qm, lender_beneficiaries, census, federal_registrations
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/companies/company_id?include=mortgage%2Clicenses%2Ccensus%2Cnon_qm%2Clender_beneficiaries%2Ctrade_names%2Cfederal_registrations")! 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()
```