$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "rawData": [
< {
< "company": "Northwind Traders",
< "website": "https://www.northwind.example/?utm_source=directory",
< "email": "Sales@Northwind.example",
< "phone": "(415) 555-2671",
< "city": "San Francisco"
< },
< {
< "company": "Northwind Traders Inc.",
< "website": "http://northwind.example/",
< "email": "sales@northwind.example",
< "phone": "+1 415 555 2671",
< "employees": 120
< },
< {
< "company": "Contoso Ltd",
< "website": "https://contoso.example/about",
< "phone": "212-555-0187",
< "city": "New York"
< },
< {
< "company": "Contoso",
< "website": "https://www.contoso.example/about/#team",
< "email": "hello@contoso.example",
< "city": ""
< },
< {
< "company": "Fabrikam",
< "website": "https://fabrikam.example",
< "email": "info@fabrikam.example",
< "city": "Austin"
< },
< {
< "company": "Tailspin Toys",
< "website": "https://tailspin.example/shop?gclid=abc123",
< "city": "Denver"
< },
< {
< "company": "Tailspin Toys",
< "website": "https://tailspin.example/shop",
< "phone": "720 555 0144",
< "city": "Denver"
< }
< ],
< "dedupeFields": [
< "website"
< ],
< "urlFields": [
< "website"
< ],
< "keep": "merge"
<}
<EOF
$curl "https://api.apify.com/v2/actors/fernandosord~dataset-merge-dedupe/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'