# Dataset Filter & Transform — JSON to CSV, Excel, Dedupe & Clean (`saliga/dataset-filter-transform`) Actor

Filter, transform and convert Apify datasets, CSV/TSV/JSON/JSONL/Excel links, Google Sheets or inline rows: 26 transform steps, 25 filters, dedupe, sort. JSON to CSV, CSV to JSON, Excel. Works with limited permissions. $0.50 per 1,000 output rows; filtered-out rows, duplicates and file exports free.

- **URL**: https://apify.com/saliga/dataset-filter-transform.md
- **Developed by:** [Salih Küçükkayış](https://apify.com/saliga) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 96.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 output rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Filter, transform and convert **Apify datasets, CSV, TSV, JSON, JSONL and Excel files, Google Sheets and inline JSON rows** in one run: **26 transform steps** (rename, compute, cast, replace, regex, dates, domains, hashes ...), **25 filter operators**, remove duplicates, sort by several fields, pick and rename columns, and save the result as a dataset plus **CSV, Excel, JSON and JSONL files for free**. JSON to CSV, CSV to JSON and dataset to Excel are one run each.

**$0.50 per 1,000 output rows.** Rows removed by filters, removed duplicates, skipped rows and file exports are free.

### Quick start

Press **Start** with the example input. It uses 10 fictional product listings given inline (no account data needed) and:

1. turns prices like `"$89.99"` into numbers, adds a price with 20% tax, the shop domain and a plain date (from three different date formats),
2. keeps listings that are in stock and cost less than 200,
3. removes the duplicate listing (same SKU, different case),
4. sorts by rating (highest first), then price,
5. writes 8 chosen columns, renaming `seller.name` to `seller`, and saves a CSV and an Excel file.

```json
{
  "rows": [
    {"title": "Trailblazer 40L Hiking Backpack", "sku": "NP-BP-040", "price": "$89.99", "inStock": true, "rating": 4.6,
     "url": "https://shop.northpeak.example/p/trailblazer-40?utm_source=feed",
     "seller": {"name": "NorthPeak Outfitters", "country": "US"}, "listedAt": "2026-10-28T09:15:00Z"},
    "... 9 more rows ..."
  ],
  "transforms": [
    {"op": "cast", "field": "price", "to": "number"},
    {"op": "compute", "field": "priceWithTax", "expression": "price * 1.2", "round": 2},
    {"op": "extractDomain", "field": "url", "into": "shop"},
    {"op": "dateFormat", "field": "listedAt", "format": "date"}
  ],
  "filters": [
    {"field": "inStock", "operator": "isTrue"},
    {"field": "price", "operator": "lessThan", "value": 200}
  ],
  "dedupeFields": ["sku"],
  "sortBy": ["rating desc", "price"],
  "outputFields": ["title", "sku", "price", "priceWithTax", "rating", "shop", "seller.name -> seller", "listedAt"],
  "exportFormats": ["csv", "xlsx"]
}
```

The example run writes 6 rows from 10 (3 filtered out, 1 duplicate removed) and costs $0.003. One row:

```json
{
  "title": "Trailblazer 40L Hiking Backpack",
  "sku": "NP-BP-040",
  "price": 89.99,
  "priceWithTax": 107.99,
  "rating": 4.6,
  "shop": "shop.northpeak.example",
  "seller": "NorthPeak Outfitters",
  "listedAt": "2026-10-28"
}
```

### Examples

**JSON to CSV and Excel.** Give a JSON or JSONL file link (or paste rows into `rows`), flatten nested objects into columns, and get `data.csv` and `data.xlsx`:

```json
{
  "fileUrls": ["https://example.com/export/orders.json"],
  "flatten": true,
  "exportFormats": ["csv", "xlsx"]
}
```

If the rows sit inside a JSON object (`{"meta": {...}, "data": {"results": [...]}}`), add `"itemsPath": "data.results"`. Without it, the first list of objects in the file is used.

**CSV to JSON.** A CSV file or a Google Sheet in, typed JSON out:

```json
{
  "fileUrls": ["https://docs.google.com/spreadsheets/d/<sheet-id>/edit#gid=0"],
  "transforms": [
    {"op": "cast", "field": "price", "to": "number"},
    {"op": "cast", "field": "active", "to": "boolean"}
  ],
  "exportFormats": ["json", "jsonl"]
}
```

**Filter a scraper's dataset.** Keep recent, well-rated results with a phone number, one per website:

```json
{
  "datasetIds": ["<dataset ID of your scraper run>"],
  "filters": [
    {"field": "rating", "operator": "greaterOrEqual", "value": 4.5},
    {"field": "phone", "operator": "isNotEmpty"},
    {"field": "scrapedAt", "operator": "withinLastDays", "value": 7}
  ],
  "transforms": [{"op": "extractDomain", "field": "website"}],
  "dedupeFields": ["domain"],
  "exportFormats": ["csv"]
}
```

**Transform and save as Excel.** Clean names, build a full name, work out a margin, normalise dates and keep only the columns a spreadsheet needs:

```json
{
  "datasetIds": ["<dataset ID>"],
  "transforms": [
    {"op": "trim", "fields": ["first", "last"]},
    {"op": "addField", "field": "name", "template": "{{first}} {{last}}"},
    {"op": "compute", "field": "margin", "expression": "(price - cost) / price * 100", "round": 1},
    {"op": "dateFormat", "field": "createdAt", "format": "DD/MM/YYYY"},
    {"op": "mapValues", "field": "country", "map": {"DE": "Germany", "FR": "France"}, "default": "Other"}
  ],
  "filters": ["margin > 20"],
  "sortBy": ["-margin"],
  "outputFields": ["name", "email", "country", "margin", "createdAt -> created"],
  "exportFormats": ["xlsx"]
}
```

### What it does

Every step is optional. They run in this order:

1. **Read** any number of sources, one after another into one table: Apify datasets (picked in the input, by ID, or as `username~dataset-name`), public file links (CSV, TSV, JSON, JSONL / NDJSON, Excel .xlsx; Google Sheets, Google Drive and Dropbox share links are turned into download links) and rows given inline as JSON.
2. **Clean up** (optional, off unless set): trim spaces (on by default), lowercase fields, normalise URLs, extract a `domain` column from a website field, tag rows with `_source`.
3. **Transform steps**, in the order you list them (see below).
4. **Filter** with any number of conditions; all must match (AND) or any (OR).
5. **Remove duplicates** by one or more fields, or rows that are exact copies. The first row of each group is kept (or the last). The removed rows can be saved to their own dataset, free.
6. **Join** (VLOOKUP) with a second table by a key field, if you set one.
7. **Sort** by one or more fields.
8. **Output columns**: flatten nested objects, then pick, order and rename columns.
9. **Skip** the first rows and **limit** the number of output rows.
10. **Write** the rows to the dataset and, if you ask for them, to `data.csv`, `data.xlsx`, `data.json` and `data.jsonl` in the key-value store. The `OUTPUT` record has the download links and a summary.

### Transform steps

Each step is an object with `op` and its settings. Steps that change a value write the result back to `field`, or to a new column when you give `into`. Dotted names read nested values (`seller.name`); writing to a dotted name updates the nested value when its parent object exists, otherwise it creates a column with that name.

| op | Settings | What it does |
|---|---|---|
| `rename` | `from`, `to` (or `fields: {"old": "new"}`) | Renames a field; a top-level column keeps its position |
| `drop` | `fields` | Removes fields |
| `keep` | `fields` | Keeps only these fields, in this order |
| `copy` | `from`, `to` | Copies a value to another field |
| `setField` | `field`, `value` | Sets a fixed value (text, number, list, object) |
| `default` | `field`, `value` | Fills the field when it is missing or empty |
| `addField` | `field`, `template` | Text from a template: `"{{first}} {{last}}"`, `"{{seller.name}}"` |
| `compute` | `field`, `expression`, `round` | Arithmetic over fields: `+ - * / %`, parentheses, `abs min max round floor ceil`; `{{unit price}}` for names with spaces |
| `cast` | `field`, `to`, `into` | `number`, `integer`, `string` or `boolean` (`yes`/`no`, `1`/`0`, `true`/`false`) |
| `trim`, `uppercase`, `lowercase` | `field` or `fields`, `into` | Text and lists of text; `trim` without a field trims every text field |
| `replace` | `field`, `search`, `replacement`, `regex`, `caseSensitive`, `into` | Replaces text; with `regex: true` the replacement can use `$1`, `$<name>`, `$&` |
| `regexExtract` | `field`, `pattern`, `group`, `all`, `into` | The first match (group 1 when the pattern has groups), null when nothing matches; `all: true` gives a list |
| `split` | `field`, `separator` (`,`), `index`, `into` | A list of trimmed parts, or the part at `index` (negative counts from the end) |
| `joinArray` | `field`, `separator` (`, `), `into` | A list becomes text |
| `substring` | `field`, `start`, `length`, `into` | Part of the text; a negative `start` counts from the end |
| `round` | `field`, `decimals` (0), `into` | Rounds half up (2.5 becomes 3) |
| `coalesce` | `fields`, `into` | The first value that is not empty |
| `dateFormat` | `field`, `format`, `into` | `iso`, `date`, `datetime`, `time`, `unix`, `unixMs`, or a pattern like `DD/MM/YYYY`, `MMM D, YYYY h:mm A` (text in `[brackets]` stays as is) |
| `dateDiff` | `from`, `to` (a field, `now` or `today`; default `now`), `unit`, `into` (`dateDiff`) | `to` minus `from` in `days`, `hours`, `minutes`, `seconds` or `weeks`, 2 decimals |
| `extractDomain` | `field`, `into` (`domain`) | The domain of a URL or an e-mail address, lowercase, without `www.` |
| `mapValues` | `field`, `map`, `default`, `into` | Replaces values by a lookup table: exact match first, then ignoring case and spaces; unmatched values stay unless `default` is set |
| `hash` | `fields`, `algorithm` (`sha256`, `sha1`, `md5`, `sha512`), `into` (`hash`) | A hash of the values joined with `\|`, e.g. an anonymous ID |
| `parseJson` | `field`, `into` | JSON text becomes an object or list |
| `length` | `field`, `into` (`<field>_length`) | Characters of text, items of a list (0 when empty) |

Dates are read from ISO 8601 (with or without time and offset), Unix seconds and milliseconds, e-mail/RSS dates and dates with month names (`Jan 5, 2026`, `5 January 2026`). For numeric dates like `05/01/2026`, a part above 12 is the day; otherwise they are read month first; dots (`05.01.2026`) are always day first. Times without an offset count as UTC.

`compute` has its own small parser: only numbers, field names, the operators above and those six functions are accepted, and nothing from the input runs as code. A missing input field, text that is not a number or a division by zero gives null. When values cannot be converted (a `cast` to number, a date that cannot be read, invalid JSON), the `OUTPUT` warnings say how many, per step.

### Filters

Conditions are objects `{"field", "operator", "value"}`, or text like `"price < 50"`.

| Operator | Value | Keeps rows where the field ... |
|---|---|---|
| `equals`, `notEquals` | text or number | equals / does not equal the value (`"1,200"` equals `1200`) |
| `contains`, `notContains` | text | contains / does not contain the text |
| `startsWith`, `endsWith` | text | starts / ends with the text |
| `greaterThan`, `lessThan`, `greaterOrEqual`, `lessOrEqual` | number or text | compares as numbers when both are numbers, as text otherwise (ISO dates compare correctly) |
| `between` | `[min, max]` | is between min and max, both included (numbers, dates or text) |
| `isEmpty`, `isNotEmpty` | none | is missing, null, blank text, an empty list / is not |
| `isTrue`, `isFalse` | none | is true / false (also `yes`/`no`, `1`/`0`) |
| `matchesRegex` | pattern | matches the regular expression |
| `in`, `notIn` | list, or comma-separated text | is / is not one of the values |
| `arrayContains` | text or number | is a list with an item equal to the value |
| `lengthGreaterThan`, `lengthLessThan` | number | has more / fewer characters (text) or items (list) |
| `dateAfter`, `dateBefore` | a date, `today` or `now` | is a date after / before it |
| `withinLastDays`, `olderThanDays` | number of days | is a date in the last N days / older than N days |

Text comparisons ignore case and spaces around the values; add `"caseSensitive": true` to a condition to compare exactly. A list field matches when any item matches. With **Read prices and amounts as numbers** (on by default), `"$1,234.50"`, `"49 USD"`, `"15%"` and `"(300)"` (= -300) count as numbers in filters, sorting, `compute` and `cast`. The short names (`eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `regex`, `empty`, `not_empty`) and symbols (`==`, `!=`, `>`, `>=`, `<`, `<=`) work too.

Text conditions use `field operator value`: `"price >= 10"`, `"country == DE"`, `"title contains shoe"`, `"title not contains used"`, `"url starts with https"`, `"email ends with .example"`, `"phone is empty"`, `"phone is not empty"`.

### Sort, columns and files

- **Sort by** one or more keys, the first decides first: `"price"`, `"price desc"`, `"-price"` or `{"field": "price", "direction": "desc"}`. Numbers sort as numbers, text from A to Z ignoring case, and empty values go last for every key.
- **Output columns** pick, order and rename: `["title", "price", "seller.name -> seller"]`. A field a row does not have is written as null, so every row has the same columns, which is what CSV and Excel files need. Filters, dedupe and sort use the field names from before this step.
- **Flatten nested objects** turns `{"seller": {"name": "X"}}` into a `seller.name` column. Lists stay lists; in CSV and Excel they are written as JSON text.
- **Files** (free): `data.csv` (UTF-8 with BOM, opens cleanly in Excel), `data.xlsx` (header row frozen), `data.json` and `data.jsonl`. Values that look like a spreadsheet formula (starting with `=`, `+`, `-`, `@`) get a `'` in front in CSV and Excel files so nothing in the data runs as a formula; plain numbers like `-12.5` stay as they are.

### Already using nerolabs/dataset-filter-transform or humble-echidna/dataset-transform? Paste the same input

This Actor reads the input field names of those two Actors (and of lukaskrivka/dedup-datasets), so you can try it with the input you already have. The format is recognised from fields that only that input has; the run log and the `inputFormat` field of the `OUTPUT` record say which one was used. The three Actors are made by other developers and are independent of this one; the tables below describe how this Actor reads each field.

**nerolabs/dataset-filter-transform**

| Field | Read here as |
|---|---|
| `datasetId`, `fileUrl`, `data` | The dataset, the file link, the inline rows |
| `fileFormat` | The file format (`auto` detects it) |
| `transforms` | Transform steps: the 26 ops above, with these setting names |
| `filters`, `filterCombineMode` | Conditions with `operator`; `AND` or `OR` |
| `caseSensitiveFilters`, `lenientNumbers` | The default for text comparisons; reading `"$1,234.50"` as a number |
| `distinctBy` | One row per combination of these fields (the first), ignoring case and extra spaces |
| `sortBy` | Several keys: `{"field", "direction"}` objects or `"-field"` |
| `offset`, `limit` | Applied after sorting; skipped rows are not charged |
| `maxItems` | The most rows read from the sources |
| `outputDatasetName` | A copy of the output rows goes to this named dataset too (created if needed, free) |
| `exportFormats` | `csv`, `xlsx` (and `json`, `jsonl`) |
| `webhookUrl` | At the end, a POST with a JSON summary and the download links (10-second timeout; a failed webhook does not fail the run) |

**humble-echidna/dataset-transform**

| Field | Read here as |
|---|---|
| `datasetId`, `fileUrl`, `items` | The dataset, the file link, the inline rows |
| `fileFormat`, `itemsPath`, `csvDelimiter`, `sheetName`, `headerRow` | Reading files: the format, where the rows are inside a JSON object, a fixed CSV delimiter, the Excel sheet, the row that holds the column names (Excel and CSV) |
| `filters`, `filterMode` | Text conditions (`==`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `not contains`, `starts with`, `ends with`, `is empty`, `is not empty`); `all` or `any` |
| `dedupeBy` | Fields (a list or comma-separated text) compared exactly; `"*"` compares the whole row; rows whose fields are all empty are kept |
| `sortBy` | `"field"` or `"field desc"`, several keys |
| `fields` | Output columns in this order, `"field -> new name"` renames, a missing field is null |
| `flatten` | Nested objects become dotted columns |
| `exportFormat` | `none`, `csv` or `jsonl` |
| `csvFormulaSafe` | On by default; off writes text starting with `=`, `+`, `-`, `@` unchanged |
| `maxResults` | The most output rows |

For both, values are not trimmed unless a step or condition does it. A setting that cannot be applied (for example an unknown transform op or filter operator) stops the run before anything is written, with a message that names it; smaller differences are noted in the log and in the `OUTPUT` warnings.

### Merge, dedupe and join

For merging many datasets and files, removing duplicates and joining tables, use the sibling Actor [Dataset Merge, Dedupe, Filter & Join](https://apify.com/saliga/dataset-merge-dedupe). This Actor includes the same merge, dedupe and join features (they are in the lower sections of the input), so one run can do both.

### Use it after a scraper

Add it as an integration on another Actor or task ("Run Actor" after a successful run) and every new result is filtered and converted automatically:

```json
{
  "datasetIds": ["{{resource.defaultDatasetId}}"],
  "filters": [{"field": "price", "operator": "isNotEmpty"}],
  "transforms": [{"op": "cast", "field": "price", "to": "number"}],
  "exportFormats": ["csv", "xlsx"]
}
```

### Limited permissions

The Actor is built to run with **limited permissions**: it reads only the datasets you give it in the input (the dataset fields are declared as dataset inputs, so the platform grants the run read access to them) and writes only to its own run storages and to the named dataset you ask for. If a dataset cannot be read, the run stops before writing anything and says which one, and how to pass it.

### Pricing

| Run | Price |
|---|---|
| The example run (6 output rows) | $0.003 |
| JSON to CSV and Excel, 1,000 rows | $0.50 |
| A 10,000-row scraper dataset filtered down to 2,500 rows, with CSV and Excel files | $1.25 |
| A 50,000-row dataset, 8,000 duplicates removed, 42,000 rows written | $21.00 |

| Charged | Free |
|---|---|
| Each row written to the output dataset: $0.50 per 1,000 ($0.0005 per row) | Rows filtered out, duplicates removed, rows skipped, the duplicates dataset, the copy to a named dataset, CSV / Excel / JSON / JSONL files |

`maxRows` caps the price. The run also stops cleanly at your spending limit and still writes the files and the summary for the rows it wrote.

### Input fields

All fields of the input form, plus these fields, which you can set in the JSON input or through the API: `fileFormat` (`csv`, `tsv`, `json`, `jsonl`, `xlsx`; default automatic), `itemsPath`, `csvDelimiter`, `headerRow`, `caseSensitiveFilters`, `maxInputRows` (the most rows read), `outputDatasetName`, `webhookUrl` and `csvFormulaSafe`. `sortBy` is a list (`["employees desc"]`), also when you reuse an input of Dataset Merge, where it is a single text.

### Limits and good to know

- **Size**: without sorting and without "keep last", rows stream through and only a small fingerprint per dedupe key stays in memory, so large datasets (millions of rows) are limited mainly by run time. Sorting and keeping the last duplicate hold the filtered rows in memory: up to about 400 rows per MB of run memory (about 400,000 rows at the default 1 GB). Above that, the run stops before writing anything, so nothing is charged, and says so; raise the memory or narrow the filters.
- **Files** are downloaded to disk (up to 100 MB each) and read in full before anything is written, so a broken file stops the run before any row is charged. Text files can be UTF-8, UTF-16 or Windows-1252. Excel files that unpack to more than about 1 GB are refused, and an Excel file holds at most 1,048,576 rows (bigger outputs are complete in the dataset, CSV, JSON and JSONL).
- **Datasets** are read in pages of 5,000 rows. The run stops about 3 minutes before its timeout and keeps everything written so far; raise the timeout for very large inputs.
- **Google Sheets** must be shared as "Anyone with the link can view" (or published to the web). The tab in the link (`gid`) is the one read.
- Values from CSV and Google Sheets are text; filters, sorting and `compute` still treat numbers as numbers. Use `cast` to write real numbers and booleans.
- Only public file links are downloaded, and the webhook only goes to public addresses; private and internal network addresses are blocked. Links to (and redirects through) YouTube, TikTok, Instagram, Facebook, X/Twitter, LinkedIn, Reddit and the Amazon store are refused; files on Amazon S3 / AWS are fine.
- Regular expressions (in filters, `replace` and `regexExtract`) give up on a value after 0.05 seconds (patterns with nested repeats like `(a|aa)+` can take forever); a filter counts it as no match, a step leaves the value unchanged, and the `OUTPUT` warnings say how often that happened.
- **The example settings**: the input form opens with example rows and example settings (steps, filters, dedupe by `sku`, sort, output columns). When you add your own datasets or file links and leave the example rows in place, the example rows **and every example setting still at its example value** are ignored, and the log says which. To use one of those settings on your own data, clear the example rows first.

### FAQ

**How do I convert JSON to CSV?** Put the JSON file link in `fileUrls` (or paste the rows into `rows`), keep `csv` in **Also save as files**, and turn on **Flatten nested objects** if the rows have nested objects. The CSV link is in the `OUTPUT` record and in the run's Storage tab. The dataset itself can also be downloaded as CSV, Excel, JSON or XML from the Apify Console.

**How do I filter an Apify dataset?** Pick the dataset in **Apify datasets**, add conditions to **Filters**, and run. Only the rows that pass are written and charged.

**Can I rename columns for the CSV?** Yes, in **Output columns**: `"Company Name -> company"`. Or with a `rename` step, which also changes the name the filters use.

**Which duplicate is kept?** The first one in source order (datasets, then files, then inline rows), or the last one with **Keep: Last row**.

**Can an AI agent use it?** Yes, through the Apify MCP server: give it rows inline or dataset IDs and ask for "keep rows where price is under 50 and save as Excel".

### More from this developer

- [Dataset Merge, Dedupe, Filter & Join](https://apify.com/saliga/dataset-merge-dedupe): merge datasets, CSV, Excel and Google Sheets, remove duplicates and join tables.
- [Bulk HTTP Requests](https://apify.com/saliga/bulk-http-requests): call any API once for every row of a CSV, JSON list or Apify dataset.
- [Sitemap Extractor](https://apify.com/saliga/sitemap-extractor): every URL a website lists in its sitemaps.
- [Tech Stack Detector](https://apify.com/saliga/tech-stack-detector): CMS, ecommerce platform, analytics and hosting of a list of websites.

Code examples (curl, Python, Node.js, n8n) for this and the other Actors: [github.com/msalihk/apify-actor-examples](https://github.com/msalihk/apify-actor-examples).

Questions or a missing feature: open an issue on the Actor page.

**Need a custom version?** I also build custom Actors, changes to this one, and n8n or Make integrations around them, for a fixed price. Open an issue on the Actor page starting with "Custom request", or email support@saligasoftware.com, with what you need and an example input.

# Actor input Schema

## `datasetIds` (type: `array`):

Datasets to filter and transform, for example the output of a scraper run. Pick them here (or paste their IDs) so the run gets permission to read them, also when this Actor runs with limited permissions. A named dataset can also be given as username~dataset-name. Several datasets are read one after another into one table.

## `fileUrls` (type: `array`):

Public links to CSV, TSV, JSON, JSONL / NDJSON or Excel (.xlsx) files, up to 100 MB each, to convert or filter. Google Sheets links work when the sheet is shared as "Anyone with the link" (the tab in the link is used); Google Drive and Dropbox share links work too.

## `rows` (type: `array`):

Rows given directly as a JSON array of objects, e.g. to convert JSON to CSV or Excel. The example rows are fictional product listings. When you also give datasets or file links, they are ignored, and so is every example setting of this form still at its example value (clear the example rows to keep those settings).

## `transforms` (type: `array`):

List of steps like {"op": "rename", "from": "Title", "to": "title"}. Ops: rename, drop, keep, copy, setField, default (fill blanks), addField (template with {{field}}), compute (arithmetic such as "price \* 1.2"), cast (number, integer, string, boolean), trim, uppercase, lowercase, replace (text or regex), regexExtract, split, joinArray, substring, round, coalesce, dateFormat (iso, date, unix, unixMs or a pattern like DD/MM/YYYY), dateDiff, extractDomain (URL or e-mail), mapValues, hash, parseJson, length. Steps that change a value write it back, or to "into". The README lists the settings of every op. The example cleans the price, adds a price with tax, the shop domain and a plain date.

## `filters` (type: `array`):

List of conditions {"field", "operator", "value"}, or text such as "price < 50". Operators: equals, notEquals, contains, notContains, startsWith, endsWith, greaterThan, lessThan, greaterOrEqual, lessOrEqual, between (\[min, max]), isEmpty, isNotEmpty, isTrue, isFalse, matchesRegex, in, notIn, arrayContains, lengthGreaterThan, lengthLessThan, dateAfter, dateBefore (a date, "today" or "now"), withinLastDays, olderThanDays. Text comparisons ignore case and surrounding spaces unless the condition has "caseSensitive": true. Dots reach nested fields (seller.name). The example keeps listings in stock under 200.

## `filterMode` (type: `string`):

How the conditions combine.

## `lenientNumbers` (type: `boolean`):

Text like "$1,234.50", "49 USD", "15%" or "(300)" counts as a number in number filters, sorting, compute and cast. Off: only plain numbers such as "1234.5" or "1,234".

## `dedupeFields` (type: `array`):

Rows with the same values in these fields are duplicates, e.g. sku, url, or name + city. Rows where all of these fields are empty are never removed. Removed duplicates are free.

## `dedupe` (type: `boolean`):

With no fields above: remove rows where every field is equal.

## `dedupeIgnoreCase` (type: `boolean`):

"NP-BP-040" and " np-bp-040" count as the same value.

## `keep` (type: `string`):

Which row of each duplicate group stays. Keeping the last row holds all rows in memory.

## `outputDuplicates` (type: `boolean`):

Write the removed duplicates to a separate dataset of this run (linked in the OUTPUT record) instead of dropping them. Free.

## `sortBy` (type: `array`):

One or more sort keys, the first decides first: "price", "price desc" or "-price" (descending), or {"field": "price", "direction": "desc"}. Numbers sort as numbers, text A to Z ignoring case, empty values last. Sorting holds the filtered rows in memory.

## `outputFields` (type: `array`):

Pick, order and rename the output columns: "price" or "seller.name -> seller". A field a row does not have is written as empty (null), so CSV and Excel files get fixed columns. Empty: all fields. Filters, dedupe and sort use the names before this step.

## `flatten` (type: `boolean`):

Nested objects become dotted columns: {"seller": {"name": "X"}} becomes "seller.name". Handy for JSON to CSV. Lists stay as they are (JSON text in CSV and Excel cells).

## `skipRows` (type: `integer`):

Skip this many output rows after sorting (for paging). Skipped rows are not charged.

## `maxRows` (type: `integer`):

Stop after this many output rows. 0: no limit. Also a cap on the price.

## `exportFormats` (type: `array`):

Save the output rows as files in the key-value store (data.csv, data.xlsx, data.json, data.jsonl), with download links in the OUTPUT record. Free. CSV and Excel files are safe to open: text that starts like a formula gets a ' in front.

## `excelSheet` (type: `string`):

Sheet to read in Excel files. Empty: the first sheet.

## `trimStrings` (type: `boolean`):

Remove spaces at the start and end of every text value.

## `lowercaseFields` (type: `array`):

Text in these fields becomes lowercase, e.g. e-mails or country codes.

## `normalizeUrlFields` (type: `array`):

URLs in these fields get a lowercase host, no utm\_\* or click-ID parameters (gclid, fbclid ...), no #fragment and no trailing slash; https:// is added to bare domains. Good before removing duplicates by URL.

## `extractDomainFrom` (type: `string`):

A URL or website field. Adds a domain column (www. removed, lowercase): https://www.Example.com/about -> example.com.

## `addSourceColumn` (type: `boolean`):

Tag each row with where it came from: dataset:<name or ID>, the file link, or rows.

## `joinDatasetId` (type: `string`):

A dataset to look values up in.

## `joinFileUrl` (type: `string`):

Public CSV, TSV, JSON, JSONL or Excel link, or a Google Sheet.

## `joinRows` (type: `array`):

A JSON array of objects to look values up in.

## `joinOn` (type: `string`):

Field of your rows to match on, e.g. domain.

## `joinRightOn` (type: `string`):

Empty: the same name as above.

## `joinType` (type: `string`):

Left join keeps every row; inner join keeps only rows with a match. Only rows written to the output are charged.

## `joinFields` (type: `array`):

Empty: every column of the join table except its key.

## `joinPrefix` (type: `string`):

When your rows already have a column of the same name, the joined value is added as <prefix><name>, so nothing is overwritten.

## `joinIgnoreCase` (type: `boolean`):

"ACME.example" matches "acme.example". The first matching row of the join table is used.

## Actor input object example

```json
{
  "rows": [
    {
      "title": "Trailblazer 40L Hiking Backpack",
      "sku": "NP-BP-040",
      "price": "$89.99",
      "inStock": true,
      "rating": 4.6,
      "url": "https://shop.northpeak.example/p/trailblazer-40?utm_source=feed",
      "seller": {
        "name": "NorthPeak Outfitters",
        "country": "US"
      },
      "listedAt": "2026-10-28T09:15:00Z"
    },
    {
      "title": "Summit Down Jacket",
      "sku": "NP-JK-210",
      "price": "$249.00",
      "inStock": true,
      "rating": 4.8,
      "url": "https://shop.northpeak.example/p/summit-down-jacket",
      "seller": {
        "name": "NorthPeak Outfitters",
        "country": "US"
      },
      "listedAt": "2026-10-29T16:40:00Z"
    },
    {
      "title": "Ridge Trekking Poles (pair)",
      "sku": "CL-TP-002",
      "price": "$54.50",
      "inStock": false,
      "rating": 4.3,
      "url": "https://cliffline.example/gear/ridge-poles",
      "seller": {
        "name": "Cliffline Gear",
        "country": "CA"
      },
      "listedAt": "Oct 30, 2026"
    },
    {
      "title": "Lumen 400 Headlamp",
      "sku": "BR-HL-400",
      "price": "$29.95",
      "inStock": true,
      "rating": 4.6,
      "url": "https://www.brightway.example/headlamps/lumen-400",
      "seller": {
        "name": "Brightway Supply",
        "country": "GB"
      },
      "listedAt": "2026-11-02 14:05"
    },
    {
      "title": "Trailblazer 40L Hiking Backpack",
      "sku": "np-bp-040",
      "price": "$89.99",
      "inStock": true,
      "rating": 4.6,
      "url": "https://shop.northpeak.example/p/trailblazer-40",
      "seller": {
        "name": "NorthPeak Outfitters",
        "country": "US"
      },
      "listedAt": "2026-11-03T08:00:00Z"
    },
    {
      "title": "Alpine 2-Person Tent",
      "sku": "CL-TN-200",
      "price": "$189.00",
      "inStock": true,
      "rating": 4.4,
      "url": "https://cliffline.example/gear/alpine-2p",
      "seller": {
        "name": "Cliffline Gear",
        "country": "CA"
      },
      "listedAt": "Nov 1, 2026"
    },
    {
      "title": "Merino Hiking Socks (3 pack)",
      "sku": "WB-SK-003",
      "price": "$24.00",
      "inStock": true,
      "rating": 4.7,
      "url": "https://woolbridge.example/socks/merino-3",
      "seller": {
        "name": "Woolbridge Co",
        "country": "NZ"
      },
      "listedAt": "2026-10-27T11:20:00Z"
    },
    {
      "title": "Canyon Water Filter",
      "sku": "BR-WF-100",
      "price": "",
      "inStock": true,
      "rating": null,
      "url": "https://www.brightway.example/water/canyon-filter",
      "seller": {
        "name": "Brightway Supply",
        "country": "GB"
      },
      "listedAt": "2026-11-04T10:00:00Z"
    },
    {
      "title": "Glacier Insulated Bottle 1L",
      "sku": "WB-BT-001",
      "price": "$32.00",
      "inStock": true,
      "rating": 4.6,
      "url": "https://woolbridge.example/bottles/glacier-1l",
      "seller": {
        "name": "Woolbridge Co",
        "country": "NZ"
      },
      "listedAt": "Oct 31, 2026"
    },
    {
      "title": "Basecamp Camp Stove",
      "sku": "CL-ST-050",
      "price": "$74.99",
      "inStock": "yes",
      "rating": 4.2,
      "url": "https://cliffline.example/gear/basecamp-stove",
      "seller": {
        "name": "Cliffline Gear",
        "country": "CA"
      },
      "listedAt": "2026-11-05 09:30"
    }
  ],
  "transforms": [
    {
      "op": "cast",
      "field": "price",
      "to": "number"
    },
    {
      "op": "compute",
      "field": "priceWithTax",
      "expression": "price * 1.2",
      "round": 2
    },
    {
      "op": "extractDomain",
      "field": "url",
      "into": "shop"
    },
    {
      "op": "dateFormat",
      "field": "listedAt",
      "format": "date"
    }
  ],
  "filters": [
    {
      "field": "inStock",
      "operator": "isTrue"
    },
    {
      "field": "price",
      "operator": "lessThan",
      "value": 200
    }
  ],
  "filterMode": "all",
  "lenientNumbers": true,
  "dedupeFields": [
    "sku"
  ],
  "dedupe": false,
  "dedupeIgnoreCase": true,
  "keep": "first",
  "outputDuplicates": false,
  "sortBy": [
    "rating desc",
    "price"
  ],
  "outputFields": [
    "title",
    "sku",
    "price",
    "priceWithTax",
    "rating",
    "shop",
    "seller.name -> seller",
    "listedAt"
  ],
  "flatten": false,
  "skipRows": 0,
  "maxRows": 0,
  "exportFormats": [
    "csv",
    "xlsx"
  ],
  "trimStrings": true,
  "addSourceColumn": false,
  "joinType": "left",
  "joinPrefix": "right_",
  "joinIgnoreCase": true
}
```

# Actor output Schema

## `results` (type: `string`):

The rows after the transform steps, filters, dedupe, sort and output columns.

## `summary` (type: `string`):

Detected input format, rows read per source, filtered out, duplicates removed, rows skipped and written, warnings, and links to the CSV / Excel / JSON / JSONL files.

## `csv` (type: `string`):

Present when CSV export is on.

## `xlsx` (type: `string`):

Present when Excel export is on.

## `json` (type: `string`):

Present when JSON export is on.

## `jsonl` (type: `string`):

Present when JSONL export is on.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "rows": [
        {
            "title": "Trailblazer 40L Hiking Backpack",
            "sku": "NP-BP-040",
            "price": "$89.99",
            "inStock": true,
            "rating": 4.6,
            "url": "https://shop.northpeak.example/p/trailblazer-40?utm_source=feed",
            "seller": {
                "name": "NorthPeak Outfitters",
                "country": "US"
            },
            "listedAt": "2026-10-28T09:15:00Z"
        },
        {
            "title": "Summit Down Jacket",
            "sku": "NP-JK-210",
            "price": "$249.00",
            "inStock": true,
            "rating": 4.8,
            "url": "https://shop.northpeak.example/p/summit-down-jacket",
            "seller": {
                "name": "NorthPeak Outfitters",
                "country": "US"
            },
            "listedAt": "2026-10-29T16:40:00Z"
        },
        {
            "title": "Ridge Trekking Poles (pair)",
            "sku": "CL-TP-002",
            "price": "$54.50",
            "inStock": false,
            "rating": 4.3,
            "url": "https://cliffline.example/gear/ridge-poles",
            "seller": {
                "name": "Cliffline Gear",
                "country": "CA"
            },
            "listedAt": "Oct 30, 2026"
        },
        {
            "title": "Lumen 400 Headlamp",
            "sku": "BR-HL-400",
            "price": "$29.95",
            "inStock": true,
            "rating": 4.6,
            "url": "https://www.brightway.example/headlamps/lumen-400",
            "seller": {
                "name": "Brightway Supply",
                "country": "GB"
            },
            "listedAt": "2026-11-02 14:05"
        },
        {
            "title": "Trailblazer 40L Hiking Backpack",
            "sku": "np-bp-040",
            "price": "$89.99",
            "inStock": true,
            "rating": 4.6,
            "url": "https://shop.northpeak.example/p/trailblazer-40",
            "seller": {
                "name": "NorthPeak Outfitters",
                "country": "US"
            },
            "listedAt": "2026-11-03T08:00:00Z"
        },
        {
            "title": "Alpine 2-Person Tent",
            "sku": "CL-TN-200",
            "price": "$189.00",
            "inStock": true,
            "rating": 4.4,
            "url": "https://cliffline.example/gear/alpine-2p",
            "seller": {
                "name": "Cliffline Gear",
                "country": "CA"
            },
            "listedAt": "Nov 1, 2026"
        },
        {
            "title": "Merino Hiking Socks (3 pack)",
            "sku": "WB-SK-003",
            "price": "$24.00",
            "inStock": true,
            "rating": 4.7,
            "url": "https://woolbridge.example/socks/merino-3",
            "seller": {
                "name": "Woolbridge Co",
                "country": "NZ"
            },
            "listedAt": "2026-10-27T11:20:00Z"
        },
        {
            "title": "Canyon Water Filter",
            "sku": "BR-WF-100",
            "price": "",
            "inStock": true,
            "rating": null,
            "url": "https://www.brightway.example/water/canyon-filter",
            "seller": {
                "name": "Brightway Supply",
                "country": "GB"
            },
            "listedAt": "2026-11-04T10:00:00Z"
        },
        {
            "title": "Glacier Insulated Bottle 1L",
            "sku": "WB-BT-001",
            "price": "$32.00",
            "inStock": true,
            "rating": 4.6,
            "url": "https://woolbridge.example/bottles/glacier-1l",
            "seller": {
                "name": "Woolbridge Co",
                "country": "NZ"
            },
            "listedAt": "Oct 31, 2026"
        },
        {
            "title": "Basecamp Camp Stove",
            "sku": "CL-ST-050",
            "price": "$74.99",
            "inStock": "yes",
            "rating": 4.2,
            "url": "https://cliffline.example/gear/basecamp-stove",
            "seller": {
                "name": "Cliffline Gear",
                "country": "CA"
            },
            "listedAt": "2026-11-05 09:30"
        }
    ],
    "transforms": [
        {
            "op": "cast",
            "field": "price",
            "to": "number"
        },
        {
            "op": "compute",
            "field": "priceWithTax",
            "expression": "price * 1.2",
            "round": 2
        },
        {
            "op": "extractDomain",
            "field": "url",
            "into": "shop"
        },
        {
            "op": "dateFormat",
            "field": "listedAt",
            "format": "date"
        }
    ],
    "filters": [
        {
            "field": "inStock",
            "operator": "isTrue"
        },
        {
            "field": "price",
            "operator": "lessThan",
            "value": 200
        }
    ],
    "dedupeFields": [
        "sku"
    ],
    "sortBy": [
        "rating desc",
        "price"
    ],
    "outputFields": [
        "title",
        "sku",
        "price",
        "priceWithTax",
        "rating",
        "shop",
        "seller.name -> seller",
        "listedAt"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("saliga/dataset-filter-transform").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "rows": [
        {
            "title": "Trailblazer 40L Hiking Backpack",
            "sku": "NP-BP-040",
            "price": "$89.99",
            "inStock": True,
            "rating": 4.6,
            "url": "https://shop.northpeak.example/p/trailblazer-40?utm_source=feed",
            "seller": {
                "name": "NorthPeak Outfitters",
                "country": "US",
            },
            "listedAt": "2026-10-28T09:15:00Z",
        },
        {
            "title": "Summit Down Jacket",
            "sku": "NP-JK-210",
            "price": "$249.00",
            "inStock": True,
            "rating": 4.8,
            "url": "https://shop.northpeak.example/p/summit-down-jacket",
            "seller": {
                "name": "NorthPeak Outfitters",
                "country": "US",
            },
            "listedAt": "2026-10-29T16:40:00Z",
        },
        {
            "title": "Ridge Trekking Poles (pair)",
            "sku": "CL-TP-002",
            "price": "$54.50",
            "inStock": False,
            "rating": 4.3,
            "url": "https://cliffline.example/gear/ridge-poles",
            "seller": {
                "name": "Cliffline Gear",
                "country": "CA",
            },
            "listedAt": "Oct 30, 2026",
        },
        {
            "title": "Lumen 400 Headlamp",
            "sku": "BR-HL-400",
            "price": "$29.95",
            "inStock": True,
            "rating": 4.6,
            "url": "https://www.brightway.example/headlamps/lumen-400",
            "seller": {
                "name": "Brightway Supply",
                "country": "GB",
            },
            "listedAt": "2026-11-02 14:05",
        },
        {
            "title": "Trailblazer 40L Hiking Backpack",
            "sku": "np-bp-040",
            "price": "$89.99",
            "inStock": True,
            "rating": 4.6,
            "url": "https://shop.northpeak.example/p/trailblazer-40",
            "seller": {
                "name": "NorthPeak Outfitters",
                "country": "US",
            },
            "listedAt": "2026-11-03T08:00:00Z",
        },
        {
            "title": "Alpine 2-Person Tent",
            "sku": "CL-TN-200",
            "price": "$189.00",
            "inStock": True,
            "rating": 4.4,
            "url": "https://cliffline.example/gear/alpine-2p",
            "seller": {
                "name": "Cliffline Gear",
                "country": "CA",
            },
            "listedAt": "Nov 1, 2026",
        },
        {
            "title": "Merino Hiking Socks (3 pack)",
            "sku": "WB-SK-003",
            "price": "$24.00",
            "inStock": True,
            "rating": 4.7,
            "url": "https://woolbridge.example/socks/merino-3",
            "seller": {
                "name": "Woolbridge Co",
                "country": "NZ",
            },
            "listedAt": "2026-10-27T11:20:00Z",
        },
        {
            "title": "Canyon Water Filter",
            "sku": "BR-WF-100",
            "price": "",
            "inStock": True,
            "rating": None,
            "url": "https://www.brightway.example/water/canyon-filter",
            "seller": {
                "name": "Brightway Supply",
                "country": "GB",
            },
            "listedAt": "2026-11-04T10:00:00Z",
        },
        {
            "title": "Glacier Insulated Bottle 1L",
            "sku": "WB-BT-001",
            "price": "$32.00",
            "inStock": True,
            "rating": 4.6,
            "url": "https://woolbridge.example/bottles/glacier-1l",
            "seller": {
                "name": "Woolbridge Co",
                "country": "NZ",
            },
            "listedAt": "Oct 31, 2026",
        },
        {
            "title": "Basecamp Camp Stove",
            "sku": "CL-ST-050",
            "price": "$74.99",
            "inStock": "yes",
            "rating": 4.2,
            "url": "https://cliffline.example/gear/basecamp-stove",
            "seller": {
                "name": "Cliffline Gear",
                "country": "CA",
            },
            "listedAt": "2026-11-05 09:30",
        },
    ],
    "transforms": [
        {
            "op": "cast",
            "field": "price",
            "to": "number",
        },
        {
            "op": "compute",
            "field": "priceWithTax",
            "expression": "price * 1.2",
            "round": 2,
        },
        {
            "op": "extractDomain",
            "field": "url",
            "into": "shop",
        },
        {
            "op": "dateFormat",
            "field": "listedAt",
            "format": "date",
        },
    ],
    "filters": [
        {
            "field": "inStock",
            "operator": "isTrue",
        },
        {
            "field": "price",
            "operator": "lessThan",
            "value": 200,
        },
    ],
    "dedupeFields": ["sku"],
    "sortBy": [
        "rating desc",
        "price",
    ],
    "outputFields": [
        "title",
        "sku",
        "price",
        "priceWithTax",
        "rating",
        "shop",
        "seller.name -> seller",
        "listedAt",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("saliga/dataset-filter-transform").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "rows": [
    {
      "title": "Trailblazer 40L Hiking Backpack",
      "sku": "NP-BP-040",
      "price": "$89.99",
      "inStock": true,
      "rating": 4.6,
      "url": "https://shop.northpeak.example/p/trailblazer-40?utm_source=feed",
      "seller": {
        "name": "NorthPeak Outfitters",
        "country": "US"
      },
      "listedAt": "2026-10-28T09:15:00Z"
    },
    {
      "title": "Summit Down Jacket",
      "sku": "NP-JK-210",
      "price": "$249.00",
      "inStock": true,
      "rating": 4.8,
      "url": "https://shop.northpeak.example/p/summit-down-jacket",
      "seller": {
        "name": "NorthPeak Outfitters",
        "country": "US"
      },
      "listedAt": "2026-10-29T16:40:00Z"
    },
    {
      "title": "Ridge Trekking Poles (pair)",
      "sku": "CL-TP-002",
      "price": "$54.50",
      "inStock": false,
      "rating": 4.3,
      "url": "https://cliffline.example/gear/ridge-poles",
      "seller": {
        "name": "Cliffline Gear",
        "country": "CA"
      },
      "listedAt": "Oct 30, 2026"
    },
    {
      "title": "Lumen 400 Headlamp",
      "sku": "BR-HL-400",
      "price": "$29.95",
      "inStock": true,
      "rating": 4.6,
      "url": "https://www.brightway.example/headlamps/lumen-400",
      "seller": {
        "name": "Brightway Supply",
        "country": "GB"
      },
      "listedAt": "2026-11-02 14:05"
    },
    {
      "title": "Trailblazer 40L Hiking Backpack",
      "sku": "np-bp-040",
      "price": "$89.99",
      "inStock": true,
      "rating": 4.6,
      "url": "https://shop.northpeak.example/p/trailblazer-40",
      "seller": {
        "name": "NorthPeak Outfitters",
        "country": "US"
      },
      "listedAt": "2026-11-03T08:00:00Z"
    },
    {
      "title": "Alpine 2-Person Tent",
      "sku": "CL-TN-200",
      "price": "$189.00",
      "inStock": true,
      "rating": 4.4,
      "url": "https://cliffline.example/gear/alpine-2p",
      "seller": {
        "name": "Cliffline Gear",
        "country": "CA"
      },
      "listedAt": "Nov 1, 2026"
    },
    {
      "title": "Merino Hiking Socks (3 pack)",
      "sku": "WB-SK-003",
      "price": "$24.00",
      "inStock": true,
      "rating": 4.7,
      "url": "https://woolbridge.example/socks/merino-3",
      "seller": {
        "name": "Woolbridge Co",
        "country": "NZ"
      },
      "listedAt": "2026-10-27T11:20:00Z"
    },
    {
      "title": "Canyon Water Filter",
      "sku": "BR-WF-100",
      "price": "",
      "inStock": true,
      "rating": null,
      "url": "https://www.brightway.example/water/canyon-filter",
      "seller": {
        "name": "Brightway Supply",
        "country": "GB"
      },
      "listedAt": "2026-11-04T10:00:00Z"
    },
    {
      "title": "Glacier Insulated Bottle 1L",
      "sku": "WB-BT-001",
      "price": "$32.00",
      "inStock": true,
      "rating": 4.6,
      "url": "https://woolbridge.example/bottles/glacier-1l",
      "seller": {
        "name": "Woolbridge Co",
        "country": "NZ"
      },
      "listedAt": "Oct 31, 2026"
    },
    {
      "title": "Basecamp Camp Stove",
      "sku": "CL-ST-050",
      "price": "$74.99",
      "inStock": "yes",
      "rating": 4.2,
      "url": "https://cliffline.example/gear/basecamp-stove",
      "seller": {
        "name": "Cliffline Gear",
        "country": "CA"
      },
      "listedAt": "2026-11-05 09:30"
    }
  ],
  "transforms": [
    {
      "op": "cast",
      "field": "price",
      "to": "number"
    },
    {
      "op": "compute",
      "field": "priceWithTax",
      "expression": "price * 1.2",
      "round": 2
    },
    {
      "op": "extractDomain",
      "field": "url",
      "into": "shop"
    },
    {
      "op": "dateFormat",
      "field": "listedAt",
      "format": "date"
    }
  ],
  "filters": [
    {
      "field": "inStock",
      "operator": "isTrue"
    },
    {
      "field": "price",
      "operator": "lessThan",
      "value": 200
    }
  ],
  "dedupeFields": [
    "sku"
  ],
  "sortBy": [
    "rating desc",
    "price"
  ],
  "outputFields": [
    "title",
    "sku",
    "price",
    "priceWithTax",
    "rating",
    "shop",
    "seller.name -> seller",
    "listedAt"
  ]
}' |
apify call saliga/dataset-filter-transform --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saliga/dataset-filter-transform"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WTcnnSglXUypGVwHK/builds/FtUvXaLKBvLGaKUAh/openapi.json
