$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "texts": [
< "The delivery was fast and the headphones sound great. The battery easily lasts a full working day, but the ear cushions get warm after an hour.",
< "La calidad es excelente, pero el envío tardó dos semanas en llegar. El vendedor respondió rápido cuando pregunté por el seguimiento del paquete.",
< "Le produit est arrivé cassé et le service client n'a jamais répondu à mes messages. J'ai dû ouvrir un litige pour être remboursé.",
< "Sehr gutes Preis-Leistungs-Verhältnis. Die Einrichtung dauerte nur fünf Minuten, allerdings ist die Akkulaufzeit kürzer als angegeben.",
< "Buscamos un desarrollador backend con experiencia en Python y bases de datos SQL. Trabajo remoto, contrato indefinido y horario flexible.",
< "Appartement lumineux de deux pièces au troisième étage, proche du métro. Cuisine équipée, balcon et cave. Disponible à partir du 1er janvier.",
< "Wir suchen eine erfahrene Buchhalterin in Teilzeit für unser Büro in Hamburg. Gute Deutsch- und Englischkenntnisse sind erforderlich.",
< "Producto muy recomendable: funciona tal como se describe, la batería dura varios días y el tamaño es perfecto para llevarlo en el bolso."
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/gazidev~bulk-text-translator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'