$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "items": [
< {
< "id": 1,
< "name": "Anna Smith",
< "email": "anna@acme.com",
< "company": "Acme Inc",
< "phone": "",
< "city": "Austin"
< },
< {
< "id": 2,
< "name": "Ben Jones",
< "email": "ben@globex.com",
< "company": "Globex",
< "phone": "+1 555 010 2000",
< "city": "Boston"
< },
< {
< "id": 3,
< "name": "Carla Diaz",
< "email": "carla@initech.com",
< "company": "Initech",
< "phone": "",
< "city": "Denver"
< },
< {
< "id": 4,
< "name": " ANNA SMITH ",
< "email": "Anna@Acme.com",
< "company": "Acme Inc",
< "phone": "+1 555 010 1000",
< "city": ""
< },
< {
< "id": 5,
< "name": "Ben Jones",
< "email": "ben@globex.com",
< "company": "Globex",
< "phone": "+1 555 010 2000",
< "city": "Boston"
< },
< {
< "id": 6,
< "name": "Carla Diaz",
< "email": "CARLA@initech.com ",
< "company": "Initech",
< "phone": "",
< "city": "Denver"
< },
< {
< "id": 7,
< "name": "Ana Smith",
< "email": "ana@acme.com",
< "company": "Acme Inc",
< "phone": "",
< "city": "Austin"
< },
< {
< "id": 8,
< "name": "Ben Jonse",
< "email": "ben@globex.com",
< "company": "Globex",
< "phone": "",
< "city": "Boston"
< }
< ],
< "keyFields": [
< "name",
< "email"
< ],
< "matchMode": "fuzzy",
< "fuzzyThreshold": 90,
< "fieldTypes": {
< "email": "email"
< },
< "keepStrategy": "first",
< "mergeDuplicates": true,
< "addDuplicateCount": true,
< "addClusterId": true,
< "exports": [
< "csv"
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/data-done-right~remove-duplicates/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'