# Get Items

Use this method to get metadata of multiple Items at the same time.&#x20;

### Usage in your script

```csharp
GetItems
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    perPage: "20",
    page: "1",
    sortBy: "name",
    sortDir: "asc"
  )
  .filter( //optional
  collectionAddress:"0x41..A"
  )
  .OnError(error => Debug.Log(error))
  .OnComplete(result=> Debug.Log(result))
  .Run();
```

#### Member Functions

**`.Initialize()`**

<table><thead><tr><th width="193">Parameter</th><th width="80">Type</th><th width="105">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>destroyAtEnd</code></td><td><strong>bool</strong></td><td><strong>Optional</strong></td><td>defines if this component will be destroyed after <code>.Run()</code></td></tr></tbody></table>

**`.SetParameters()`**

<table><thead><tr><th width="193.33333333333331">Parameter</th><th width="88">Type</th><th width="109">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>wallet_address</code></td><td><strong>String</strong></td><td><strong>Yes</strong></td><td>Unique wallet address of user</td></tr></tbody></table>

**`.filter()`**

<table><thead><tr><th>Parameter</th><th width="90">Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>name</td><td><strong>String</strong></td><td><strong>Optional</strong></td><td>filter by Item name</td></tr><tr><td>collectionAddress</td><td><strong>String</strong></td><td><strong>Optional</strong></td><td>filter by Item collection address</td></tr><tr><td>chainId</td><td><strong>String</strong></td><td><strong>Optional</strong></td><td>filter by Item chainId</td></tr><tr><td>creatorAddress</td><td><strong>String</strong></td><td><strong>Optional</strong></td><td>filter by Item creator address</td></tr><tr><td>holders</td><td><strong>String</strong></td><td><strong>Optional</strong></td><td>filter by Item collection holder</td></tr><tr><td>isVerified</td><td>bool</td><td><strong>Optional</strong></td><td>filter if Item is verified by Altura</td></tr><tr><td>supply</td><td><strong>String</strong></td><td><strong>Optional</strong></td><td>filter by Item collection supply</td></tr></tbody></table>

**`.onError()`**

*Action on Error: returns error information.*

**`.onComplete()`**

*Action on successful: returns*[*`Items_model`*](https://docs.altura.com/altura-documentation-1/schema#items-model) *type.*

**`.Run()`**

*Runs the API call and fills the corresponding model in the component on success.*
