# Dataset to Excel Report Generator (XLSX & CSV) (`abzalp/dataset-to-excel-report`) Actor

Convert Apify scraping datasets into formatted Excel (.xlsx) and CSV reports with auto-sized columns, bold headers, freeze panes, and custom date formatting.

- **URL**: https://apify.com/abzalp/dataset-to-excel-report.md
- **Developed by:** [Abdul Basit](https://apify.com/abzalp) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 report 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/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

## Dataset to Excel Report

[![Apify Store](https://img.shields.io/badge/Apify%20Store-Run%20Actor-FF9800?style=for-the-badge\&logo=apify\&logoColor=white)](https://apify.com/abzalp/dataset-to-excel-report)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)](LICENSE)
[![Free Tier Supported](https://img.shields.io/badge/Free%20Tier-5%20USD%20Monthly-brightgreen?style=for-the-badge)](https://apify.com/abzalp/dataset-to-excel-report)

> 🚀 **[Run this Actor on Apify Store](https://apify.com/abzalp/dataset-to-excel-report)** — Instant cloud execution with zero setup, zero proxies needed, and free monthly credits.

Turn an Apify dataset, or a CSV, JSON or Excel file, into a **tidy Excel report you can send as it is**: a summary sheet, one sheet per category, readable columns, clickable links, and real numbers and dates. A CSV copy comes with it.

**What you get**

- 📊 **A summary sheet:** row counts, totals, averages, lowest and highest for each number column, and rows per group.
- 🗂️ **One sheet per value** of any column, such as shop, city or category. The 39 biggest groups get their own sheet and the rest share one.
- ✨ **Readable by default:** dark header row, frozen at the top, filter buttons, column widths that fit, and clickable links.
- 🔢 **Real numbers and dates:** number columns can be summed and sorted. Codes with leading zeros, such as postcodes, stay as text.
- 🧹 **Clean up first:** filters such as `price < 100`, duplicate removal by `url` or any columns, sorting, and picking, ordering and renaming columns.
- 🔌 **Works after any Actor:** connect it as an integration to get a report after every scraper run.

### How much does it cost?

Pay-per-event pricing: a small start fee per run (it grows with the memory you give the run), plus a fee per **row in the report**. Rows removed by filters or as duplicates are free. The **Pricing** tab shows current prices. You can set a maximum cost per run: the report is then cut to the rows it covers, and the result says how many were left out.

### Try it first

The input is pre-filled with four example rows, so you can press **Start** and open the result. When you pick a dataset or add a file link, the example rows are skipped.

### Input example

```json
{
    "fileUrls": ["https://example.com/products.csv"],
    "filters": ["price < 100"],
    "dedupeBy": ["url"],
    "sortBy": "price desc",
    "splitBy": "shop",
    "columns": ["product -> Product", "price -> Price (EUR)", "shop -> Shop", "url -> Link"],
    "reportTitle": "Weekly price report"
}
```

Column names in **Filters**, **Remove duplicates by**, **Sort by**, **One sheet per value of** and **Columns** are the names in your data, before renaming. Nested fields use `/`, for example `address/city`.

### Use it as an integration

Open your scraper → **Integrations** → **Connect Actor or Task** → pick this Actor. Check that the integration's **JSON** tab includes `"datasetId": "{{resource.defaultDatasetId}}"`. Without that line the run isn't allowed to read the results.

### Output

The files are saved in the run's **key-value store** (`report.xlsx` and `report.csv` unless you change the name). The dataset has one row with their links and the counts:

```json
{
    "status": "created",
    "excelUrl": "https://api.apify.com/v2/key-value-stores/.../records/report.xlsx",
    "rowsInReport": 248,
    "rowsRead": 300,
    "removedByFilters": 40,
    "duplicatesRemoved": 12,
    "sheets": "Summary, Shop A, Shop B"
}
```

Anyone who has a file's link may be able to download it, so share links only with people who should see the data.

### Limits

- Up to **100,000 rows** and **500 columns** per report. Extra rows are left out and counted in the result.
- Up to 10 file links of 30 MB each. Excel files: the first sheet, with column names in the first row. Formulas are read as their last shown value.
- One cell holds up to 32,767 characters, which is Excel's limit. After 60,000 links on one sheet, further links are plain text.
- In number columns, `1,299` is read as 1299 (comma = thousands, point = decimals). Numbers written another way stay as text.
- Charts and pivot tables aren't made.
- A restarted or resurrected run that had already finished its report doesn't build or charge it again.

### Privacy

Your data is processed inside your own Apify run and isn't sent to another service. The Actor runs with **limited permissions**: it can read only the dataset you pick, and the files you link.

*This Actor is independent. It isn't affiliated with or endorsed by Microsoft. Excel is a trademark of Microsoft.*

### Support

Found a bug or need a feature? Open an issue on the **Issues** tab, and include the run link.

***

### 🔗 Related Developer Tools & Ecosystem

Extend your automation workflows with our companion tools on the Apify Store:

- 📄 **[YouTube Transcript & Subtitle Extractor](https://apify.com/abzalp/youtube-transcript-extractor)** — Extract clean video transcripts in Markdown & JSON for AI and LLMs.
- 📊 **[Google Sheets Sync & Importer](https://apify.com/abzalp/google-sheets-sync)** — Automatically export and append Apify dataset rows directly to Google Sheets.
- 📑 **[Dataset to Excel Report Generator](https://apify.com/abzalp/dataset-to-excel-report)** — Convert raw scraping datasets into styled, formatted Excel (.xlsx) reports with auto-filters.
- 📸 **[Website Screenshot & PDF Capture API](https://apify.com/abzalp/website-screenshot)** — Capture full-page screenshots and PDFs with mobile/retina presets and ad-blocking.
- 🖼️ **[AI Image Upscaler & Enhancer](https://apify.com/abzalp/ai-image-upscaler)** — Upscale low-resolution photos and images to 4K Ultra HD.
- 🎥 **[Video Compressor & Audio Extractor](https://apify.com/abzalp/video-compressor-converter)** — Fast video compression, format conversion, and clean MP3 audio extraction.

# Changelog

This Actor's version history is a separate document: https://apify.com/abzalp/dataset-to-excel-report/changelog.md

# Actor input Schema

## `datasetId` (type: `string`):

Build the report from an Apify dataset, for example a scraper's results. When you connect this Actor as an integration, use {{resource.defaultDatasetId}}.

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

Direct links to CSV, TSV, JSON, JSON Lines or XLSX files (first sheet), up to 10 files of 30 MB each.

## `items` (type: `array`):

Or paste rows as a JSON list. The example rows are skipped automatically when you pick a dataset or add a file link.

## `splitBy` (type: `string`):

A column name, for example shop or country. Each value gets its own sheet (the 39 biggest; the rest share one).

## `columns` (type: `array`):

Pick and order columns, one per line. Rename with an arrow: price -> Price (USD). Leave empty to keep all columns.

## `reportTitle` (type: `string`):

Shown at the top of the summary sheet.

## `fileName` (type: `string`):

Name of the Excel and CSV files, without the ending.

## `includeSummary` (type: `boolean`):

Row counts, totals and averages of number columns, and rows per group.

## `alsoCsv` (type: `boolean`):

The same rows and columns as plain CSV.

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

Keep only matching rows, one rule per line: price < 100, title contains lamp, email is not empty.

## `dedupeBy` (type: `array`):

Column names that identify a row, for example url. Rows with the same values are kept once.

## `removeDuplicates` (type: `boolean`):

Remove rows that are the same in every column (ignored when "Remove duplicates by" is filled in).

## `sortBy` (type: `string`):

A column name, optionally followed by desc: price desc.

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

Read at most this many rows. 0 means the limit of 100,000.

## Actor input object example

```json
{
  "items": [
    {
      "product": "Desk lamp",
      "shop": "Sample Shop A",
      "price": 18.5,
      "stock": 12,
      "added": "2026-11-02",
      "url": "https://example.com/1"
    },
    {
      "product": "Office chair",
      "shop": "Sample Shop B",
      "price": 99,
      "stock": 3,
      "added": "2026-11-05",
      "url": "https://example.com/2"
    },
    {
      "product": "Notebook set",
      "shop": "Sample Shop A",
      "price": 9.25,
      "stock": 40,
      "added": "2026-11-09",
      "url": "https://example.com/3"
    },
    {
      "product": "Monitor stand",
      "shop": "Sample Shop B",
      "price": 27,
      "stock": 8,
      "added": "2026-11-12",
      "url": "https://example.com/4"
    }
  ],
  "reportTitle": "Data report",
  "fileName": "report",
  "includeSummary": true,
  "alsoCsv": true,
  "removeDuplicates": false,
  "maxRows": 0
}
```

# Actor output Schema

## `result` (type: `string`):

No description

## `files` (type: `string`):

No description

# 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 = {
    "items": [
        {
            "product": "Desk lamp",
            "shop": "Sample Shop A",
            "price": 18.5,
            "stock": 12,
            "added": "2026-11-02",
            "url": "https://example.com/1"
        },
        {
            "product": "Office chair",
            "shop": "Sample Shop B",
            "price": 99,
            "stock": 3,
            "added": "2026-11-05",
            "url": "https://example.com/2"
        },
        {
            "product": "Notebook set",
            "shop": "Sample Shop A",
            "price": 9.25,
            "stock": 40,
            "added": "2026-11-09",
            "url": "https://example.com/3"
        },
        {
            "product": "Monitor stand",
            "shop": "Sample Shop B",
            "price": 27,
            "stock": 8,
            "added": "2026-11-12",
            "url": "https://example.com/4"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("abzalp/dataset-to-excel-report").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 = { "items": [
        {
            "product": "Desk lamp",
            "shop": "Sample Shop A",
            "price": 18.5,
            "stock": 12,
            "added": "2026-11-02",
            "url": "https://example.com/1",
        },
        {
            "product": "Office chair",
            "shop": "Sample Shop B",
            "price": 99,
            "stock": 3,
            "added": "2026-11-05",
            "url": "https://example.com/2",
        },
        {
            "product": "Notebook set",
            "shop": "Sample Shop A",
            "price": 9.25,
            "stock": 40,
            "added": "2026-11-09",
            "url": "https://example.com/3",
        },
        {
            "product": "Monitor stand",
            "shop": "Sample Shop B",
            "price": 27,
            "stock": 8,
            "added": "2026-11-12",
            "url": "https://example.com/4",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("abzalp/dataset-to-excel-report").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 '{
  "items": [
    {
      "product": "Desk lamp",
      "shop": "Sample Shop A",
      "price": 18.5,
      "stock": 12,
      "added": "2026-11-02",
      "url": "https://example.com/1"
    },
    {
      "product": "Office chair",
      "shop": "Sample Shop B",
      "price": 99,
      "stock": 3,
      "added": "2026-11-05",
      "url": "https://example.com/2"
    },
    {
      "product": "Notebook set",
      "shop": "Sample Shop A",
      "price": 9.25,
      "stock": 40,
      "added": "2026-11-09",
      "url": "https://example.com/3"
    },
    {
      "product": "Monitor stand",
      "shop": "Sample Shop B",
      "price": 27,
      "stock": 8,
      "added": "2026-11-12",
      "url": "https://example.com/4"
    }
  ]
}' |
apify call abzalp/dataset-to-excel-report --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abzalp/dataset-to-excel-report"
        }
    }
}
```

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/RJUauYyFtNbbr4h1m/builds/QN7eS4SgJaXbCnEde/openapi.json
