$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "dedupe",
< "records": [
< {
< "title": "Blue Door Dental Care",
< "categoryName": "Dentist",
< "address": "120 Main St, Austin, TX 78701",
< "street": "120 Main St",
< "city": "Austin",
< "state": "Texas",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "(512) 555-0134",
< "website": "https://www.bluedoordental.com/",
< "totalScore": 4.8,
< "reviewsCount": 212,
< "location": {
< "lat": 30.26721,
< "lng": -97.74312
< },
< "placeId": "ChIJ_bluedoor_A"
< },
< {
< "title": "Blue Door Dental",
< "categoryName": "Dental clinic",
< "address": "120 Main Street, Austin, TX 78701",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "+1 512-555-0134",
< "website": "http://bluedoordental.com/?utm_source=google",
< "reviewsCount": 0,
< "placeId": "ChIJ_bluedoor_B"
< },
< {
< "title": "Lakeside Pizza & Pasta",
< "categoryName": "Pizza restaurant",
< "address": "45 Lake Ave, Austin, TX 78702",
< "street": "45 Lake Ave",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78702",
< "countryCode": "US",
< "phone": "(512) 555-0178",
< "totalScore": 4.4,
< "reviewsCount": 891,
< "location": {
< "lat": 30.2601,
< "lng": -97.7102
< },
< "placeId": "ChIJ_lakeside_1"
< },
< {
< "title": "Lakeside Pizza and Pasta LLC",
< "categoryName": "Restaurant",
< "address": "45 Lake Avenue, Austin, TX 78702",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78702",
< "countryCode": "US",
< "phone": "512.555.0178",
< "website": "https://lakesidepizzaatx.com",
< "totalScore": 4.4,
< "reviewsCount": 893,
< "location": {
< "lat": 30.26012,
< "lng": -97.71021
< },
< "placeId": "ChIJ_lakeside_1"
< },
< {
< "title": "Hill Country Coffee",
< "categoryName": "Coffee shop",
< "address": "900 Congress Ave, Austin, TX 78701",
< "street": "900 Congress Ave",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "(512) 555-0102",
< "website": "https://hillcountrycoffee.com",
< "totalScore": 4.6,
< "reviewsCount": 540,
< "location": {
< "lat": 30.2712,
< "lng": -97.7431
< },
< "placeId": "ChIJ_hcc_congress"
< },
< {
< "title": "Hill Country Coffee",
< "categoryName": "Coffee shop",
< "address": "2100 S Lamar Blvd, Austin, TX 78704",
< "street": "2100 S Lamar Blvd",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78704",
< "countryCode": "US",
< "phone": "(512) 555-0166",
< "website": "https://hillcountrycoffee.com",
< "totalScore": 4.5,
< "reviewsCount": 377,
< "location": {
< "lat": 30.2453,
< "lng": -97.769
< },
< "placeId": "ChIJ_hcc_lamar"
< },
< {
< "title": "Hill Country Coffee Roasters",
< "categoryName": "Coffee roaster",
< "address": "900 Congress Avenue, Austin, TX 78701",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "512.555.0102",
< "totalScore": 4.1,
< "reviewsCount": 12,
< "placeId": "ChIJ_hcc_roasters_old"
< },
< {
< "title": "Greenleaf Plumbing Co.",
< "categoryName": "Plumber",
< "address": "77 Industrial Blvd, Round Rock, TX 78664",
< "street": "77 Industrial Blvd",
< "city": "Round Rock",
< "state": "TX",
< "postalCode": "78664",
< "countryCode": "US",
< "phone": "(512) 555-0190",
< "totalScore": 4.9,
< "reviewsCount": 64,
< "placeId": "ChIJ_greenleaf_1"
< },
< {
< "title": "Green Leaf Plumbing",
< "categoryName": "Plumbing service",
< "address": "77 Industrial Boulevard, Round Rock, TX 78664",
< "city": "Round Rock",
< "state": "TX",
< "postalCode": "78664",
< "countryCode": "US",
< "website": "https://greenleafplumbing.net",
< "totalScore": 4.9,
< "reviewsCount": 61,
< "placeId": "ChIJ_greenleaf_2"
< },
< {
< "title": "Austin Bike Works",
< "categoryName": "Bicycle shop",
< "address": "301 E 6th St, Austin, TX 78701",
< "street": "301 E 6th St",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "(512) 555-0155",
< "website": "https://austinbikeworks.com",
< "totalScore": 4.7,
< "reviewsCount": 158,
< "placeId": "ChIJ_bike_1"
< },
< {
< "title": "Austin Bike Workshop",
< "categoryName": "Bicycle repair shop",
< "address": "1802 Barton Springs Rd, Austin, TX 78704",
< "street": "1802 Barton Springs Rd",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78704",
< "countryCode": "US",
< "phone": "(512) 555-0121",
< "website": "https://austinbikeworkshop.org",
< "totalScore": 4.3,
< "reviewsCount": 90,
< "placeId": "ChIJ_bike_2"
< },
< {
< "title": "Maria's Taqueria",
< "categoryName": "Mexican restaurant",
< "address": "15 Cesar Chavez St, Austin, TX 78701",
< "street": "15 Cesar Chavez St",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "(512) 555-0143",
< "totalScore": 4.5,
< "reviewsCount": 1210,
< "placeId": "ChIJ_maria_1"
< },
< {
< "title": "Marias Taqueria",
< "categoryName": "Taco restaurant",
< "address": "15 Cesar Chavez Street, Austin, TX 78701",
< "city": "Austin",
< "state": "TX",
< "postalCode": "78701",
< "countryCode": "US",
< "phone": "+15125550143",
< "website": "https://mariastaqueriaatx.com",
< "totalScore": 4.5,
< "reviewsCount": 1208,
< "placeId": "ChIJ_maria_2"
< },
< {
< "title": "Oak Street Veterinary Clinic",
< "categoryName": "Veterinarian",
< "address": "8 Oak St, Cedar Park, TX 78613",
< "street": "8 Oak St",
< "city": "Cedar Park",
< "state": "TX",
< "postalCode": "78613",
< "countryCode": "US",
< "phone": "(512) 555-0111",
< "website": "https://oakstreetvet.com",
< "totalScore": 4.8,
< "reviewsCount": 300,
< "placeId": "ChIJ_oak_1"
< }
< ],
< "sourceUrl": "",
< "csvText": "",
< "schema": "auto",
< "fieldMap": {},
< "matchThreshold": 85,
< "reviewThreshold": 70,
< "mergePolicy": "richest",
< "outputMode": "clean",
< "addDedupeFields": true,
< "defaultCountry": "auto",
< "maxClusterSize": 25,
< "maxBlockSize": 500,
< "maxRecords": 200000
<}
<EOF
$curl "https://api.apify.com/v2/actors/that_red_bird~lead-list-deduplicator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'