$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "rows": [
< {
< "company": "Acme Robotics",
< "website": "https://www.acme-robotics.example/?utm_source=newsletter",
< "country": "DE",
< "employees": 120,
< "industry": "Robotics"
< },
< {
< "company": "ACME Robotics GmbH",
< "website": "acme-robotics.example",
< "country": "DE",
< "employees": 120,
< "industry": "Robotics"
< },
< {
< "company": "Bluefin Analytics",
< "website": "https://bluefin-analytics.example/about",
< "country": "GB",
< "employees": 45,
< "industry": "Software"
< },
< {
< "company": "Cedar & Stone Builders",
< "website": "http://cedarstone.example",
< "country": "US",
< "employees": 8,
< "industry": "Construction"
< },
< {
< "company": "Delta Freight Partners",
< "website": "https://www.deltafreight.example/contact/",
< "country": "NL",
< "employees": 310,
< "industry": "Logistics"
< },
< {
< "company": "Bluefin Analytics Ltd",
< "website": "https://BLUEFIN-ANALYTICS.example/?utm_campaign=q3",
< "country": "GB",
< "employees": 47,
< "industry": "Software"
< },
< {
< "company": "Evergreen Solar Co",
< "website": "https://evergreen-solar.example",
< "country": "ES",
< "employees": 64,
< "industry": "Energy"
< },
< {
< "company": "Fjord Bio",
< "website": "https://fjordbio.example/en/",
< "country": "NO",
< "employees": 5,
< "industry": "Biotech"
< },
< {
< "company": "Granite Data Systems",
< "website": "https://granitedata.example/?utm_medium=cpc&page=2",
< "country": "US",
< "employees": 1500,
< "industry": "Software"
< },
< {
< "company": "Harbor Lane Coffee",
< "website": "",
< "country": "US",
< "employees": 22,
< "industry": "Food"
< },
< {
< "company": "Delta Freight Partners B.V.",
< "website": "deltafreight.example",
< "country": "NL",
< "employees": 305,
< "industry": "Logistics"
< }
< ],
< "normalizeUrlFields": [
< "website"
< ],
< "extractDomainFrom": "website",
< "filters": [
< {
< "field": "employees",
< "op": "gte",
< "value": 10
< }
< ],
< "dedupeFields": [
< "domain"
< ],
< "sortBy": "employees",
< "sortDirection": "desc",
< "exportFormats": [
< "csv"
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/saliga~dataset-merge-dedupe/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'