$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "items": [
< {
< "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
< "title": "A Light in the Attic",
< "price": 51.77,
< "stock": {
< "available": true,
< "count": 22
< }
< },
< {
< "url": "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html",
< "title": "Tipping the Velvet",
< "price": 53.74,
< "stock": {
< "available": true,
< "count": 20
< }
< },
< {
< "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
< "title": "A Light in the Attic",
< "price": 51.77,
< "stock": {
< "available": true,
< "count": 22
< }
< },
< {
< "url": "https://books.toscrape.com/catalogue/soumission_998/index.html",
< "title": "Soumission",
< "price": 50.1,
< "stock": {
< "available": false,
< "count": 0
< }
< },
< {
< "url": "HTTPS://BOOKS.TOSCRAPE.COM/catalogue/soumission_998/index.html",
< "title": "Soumission (copy)",
< "price": 50.1,
< "stock": {
< "available": false,
< "count": 0
< }
< }
< ],
< "dedupFields": [
< "url"
< ],
< "caseInsensitive": true
<}
<EOF
$curl "https://api.apify.com/v2/actors/innovative_cookie~dataset-merge-dedup/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'