CSV Import Previewer
Pricing
$0.05 / actor start
CSV Import Previewer
Preview creates, updates, unchanged records and errors in a CSV import against your supplied snapshot. Download a row-by-row review without database writes.
CSV Import Previewer
Pricing
$0.05 / actor start
Preview creates, updates, unchanged records and errors in a CSV import against your supplied snapshot. Download a row-by-row review without database writes.
You can access the CSV Import Previewer programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "payload": {12 "csv": "Account,Name,Quantity,Start\n0001,Ada,5,2026-10-30\n0002,Bea,2,2026-02-30\n0003,Cam,4,2026-11-01\n",13 "key": "account",14 "fields": {15 "account": {16 "column": "Account",17 "type": "string",18 "required": true19 },20 "name": {21 "column": "Name",22 "type": "string",23 "required": true24 },25 "quantity": {26 "column": "Quantity",27 "type": "number",28 "required": true,29 "min": 030 },31 "start": {32 "column": "Start",33 "type": "date",34 "required": false35 }36 },37 "existing": [38 {39 "account": "0001",40 "name": "Ada",41 "quantity": "3",42 "start": "2026-10-30",43 "note": "Retain this unmapped field"44 }45 ]46 }47};48
49// Run the Actor and wait for it to finish50const run = await client.actor("autosecurelogin/csv-import-previewer").call(input);51
52// Fetch and print Actor results from the run's dataset (if any)53console.log('Results from dataset');54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);55const { items } = await client.dataset(run.defaultDatasetId).listItems();56items.forEach((item) => {57 console.dir(item);58});59
60// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use CSV Import Previewer API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: