# Array get item

Returns an item from the array based on the specified index. Array get item lives in the **Array** category of the `fx` menu.

## Parameters

| Parameter | Type    | Required | Default | Description                                                                                                             |
| --------- | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| Input     | string  | yes      | —       | Value to transform. Previous step output or a literal.                                                                  |
| Index     | number  | yes      | —       | The index of the item to retrieve from the array                                                                        |
| Quotes    | boolean | no       | `true`  | Whether or not to wrap string result in quotes. If quotes is set to false, string results will not be wrapped in quotes |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                  |
| -------- | -------------------------------------------- |
| `string` | Result of the Array get item transformation. |

## Limitations

- Array arguments must be valid JSON arrays. Invalid JSON or non-array values raise an error.

## Example

<details>
<summary>Run Array get item</summary>

Returns an item from the array based on the specified index Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Index**, **Quotes** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
