$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "conversionGoal": "lead_submission",
< "pages": [
< {
< "pageId": "lead-home",
< "url": "https://example.com/offer",
< "ok": true,
< "adPromise": "Book a 15 minute product walkthrough",
< "verifiedTrustEvidence": false,
< "findings": [
< {
< "id": "fetch",
< "status": "PASS",
< "message": "The page returned HTTP 200."
< },
< {
< "id": "message_match",
< "status": "WARN",
< "message": "Ad copy token overlap was 40 percent."
< },
< {
< "id": "cta",
< "status": "WARN",
< "message": "Seven possible calls to action were detected."
< },
< {
< "id": "form_length",
< "status": "WARN",
< "message": "The selected form contains ten required fields."
< },
< {
< "id": "trust_signals",
< "status": "FAIL",
< "message": "No supported trust signal type was detected."
< },
< {
< "id": "analytics",
< "status": "PASS",
< "message": "An analytics script was detected in HTML."
< }
< ]
< },
< {
< "pageId": "contact",
< "url": "https://example.com/contact",
< "ok": false,
< "findings": [
< {
< "id": "fetch",
< "status": "FAIL",
< "message": "The page could not be fetched."
< },
< {
< "id": "cta",
< "status": "FAIL",
< "message": "The supplied audit has no recognized CTA."
< }
< ]
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/danielmichalek~landing-page-ab-hypothesis-generator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'