# removeduplicates: Remove Duplicates from an Array

> removeduplicates (Remove Duplicates from an Array) is a 1001fx API function in the group Arrays: POST https://api.1001fx.com/array/removeduplicates, 2 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Removes duplicates from an array. If the fields parameter is empty, all fields of the first array element are used for the comparison.

- Group: Arrays
- Endpoint: `POST https://api.1001fx.com/array/removeduplicates`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 2 credits per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/removeduplicates

## Parameters

- `data` (array<object>, required) – Data: Array of lines with mixed values.
- `fields` (array<string>, optional) – Fields: Array of fields to compare for uniqueness. If the fields parameter is empty, all fields of the first array item will be used for the comparison.
- `ignoreCase` (boolean, optional, default `false`) – Ignore case sensitivity: Sets case sensitivity for operation.

## Example: Compare one field

```bash
curl -X POST 'https://api.1001fx.com/array/removeduplicates' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"data":[{"Column1":"Germany","Column2":"Apple","Column3":"Dragonfruit"},{"Column1":"Germany","Column2":"apple","Column3":"Dragonfruit"},{"Column1":"US","Column2":"Apple","Column3":"Dragonfruit"}],"fields":["Column2"],"ignoreCase":false}'
```

Answer (HTTP 200):

```json
{
  "result": [
    {
      "Column1": "Germany",
      "Column2": "Apple",
      "Column3": "Dragonfruit"
    },
    {
      "Column1": "Germany",
      "Column2": "apple",
      "Column3": "Dragonfruit"
    }
  ]
}
```
