$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "targetUrl": "https://example.com/product",
< "competitorUrl": "https://competitor.example/product",
< "query": "Does Acme export CSV?",
< "evidence": {
< "answer": "The competitor offers CSV exports.",
< "citedUrls": [
< "https://competitor.example/product"
< ]
< },
< "targetHtml": "<!doctype html><html><body><h1>Acme</h1><p>Acme exports reports in CSV format.</p></body></html>",
< "competitorHtml": "<html><body><h1>CSV exports</h1></body></html>",
< "facts": [
< {
< "text": "Acme exports reports in CSV format.",
< "sourceUrl": "https://example.com/product"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/bono718~citation-remediation-payload-generator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'