---
lang: en
title: 'API docs: metadata.metadatainspector.getparametermetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.metadata.metadatainspector.getparametermetadata.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [MetadataInspector](./metadata.metadatainspector.md) &gt; [getParameterMetadata](./metadata.metadatainspector.getparametermetadata.md)

## MetadataInspector.getParameterMetadata() method

Get the metadata associated with the given key for a parameter of a given method by index

<b>Signature:</b>

```typescript
static getParameterMetadata<T>(key: MetadataKey<T, ParameterDecorator>, target: Object, methodName: string, index: number, options?: InspectionOptions): T | undefined;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  key | <code>MetadataKey&lt;T, ParameterDecorator&gt;</code> | Metadata key |
|  target | <code>Object</code> | Class for static methods or prototype for instance methods |
|  methodName | <code>string</code> | Method name. If not present, default to '' to use the constructor |
|  index | <code>number</code> | Index of the parameter, starting with 0 |
|  options | <code>InspectionOptions</code> | Options for inspection |

<b>Returns:</b>

`T | undefined`


