---
title: getModels
slug: viewer-3d/methods/getModels
docTags: 
createdAt: 2024-03-01T14:17:48.683Z
---

Returns the specified models.

## Example

::codepen{url="https://codepen.io/Catenda/embed/QWXdXdJ"}

## Usage

```javascript
const modelIds = ["model-id-1, model-id-2"];

const modelInfos = viewer3d.getModels(modelIds);
```

## Parameters

### modelIds

List of model ids to limit result, returns all models by default.

| **Type**       | **Required** |
| -------------- | ------------ |
| Array\[String] | No           |

## Return Value

List of models.

| **Type**       |
| -------------- |
| Array\[Object] |

**Properties**

| **Name**              | **Type**                             | **Description**                         |
| --------------------- | ------------------------------------ | --------------------------------------- |
| `id`                  | String                               | Id of the model                         |
| `boundingBox`         | [Box3](docId\:w-y1d3ZvTa83YjyCEvckw) | Current bounding box of the model       |
| `originalBoundingBox` | [Box3](docId\:w-y1d3ZvTa83YjyCEvckw) | Bounding box without applying transform |

### Example

```javascript
[
  {
    id: "model-id-1",
    boundingBox: {
      max: {
        x: 100,
        y: 100,
        z: 0
      },
      min: {
        x: 0,
        y: 0,
        z: 0
      }
    },
    originalBoundingBox: {
      max: {
        x: 100,
        y: 100,
        z: 0
      },
      min: {
        x: 0,
        y: 0,
        z: 0
      }
    }
  }
];
```

