$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "content": [
< {
< "id": "demo1",
< "text": "The quick brown fox jumps over the lazy dog"
< },
< {
< "id": "demo2",
< "text": "A quick brown fox jumps over a lazy dog"
< },
< {
< "id": "demo3",
< "text": "The fast brown fox leaps over the sleepy dog"
< },
< {
< "id": "demo4",
< "text": "Artificial intelligence is transforming modern technology"
< },
< {
< "id": "demo5",
< "text": "AI is revolutionizing contemporary tech solutions"
< }
< ],
< "similarityThreshold": 0.8,
< "algorithms": {
< "cosine": true,
< "levenshtein": true,
< "fuzzy": true,
< "jaccard": true
< },
< "caseSensitive": false,
< "ignoreWhitespace": true,
< "minLength": 10,
< "groupByDuplicate": true
<}
<EOF
$curl "https://api.apify.com/v2/acts/fiery_dream~content-similarity-finder/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'