$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "postsFile": {
< "posts": [
< {
< "newsletterName": "Field Notes (synthetic demo)",
< "newsletterUrl": "https://field.example/",
< "postTitle": "Fieldwork dispatch",
< "postUrl": "https://field.example/issues/1",
< "publishedAt": "2026-10-08T12:00:00Z",
< "html": "<p>Sponsored by <a href='https://cedar.example'>Cedar</a> and <a href='https://birch.example'>Birch</a>.</p><p><a href='/contact'>Contact us</a></p>",
< "subscriberObservation": {
< "evidence": "1,240 total subscribers",
< "observedAt": "2026-10-08",
< "sourceUrl": "https://field.example/about",
< "basis": "total"
< }
< },
< {
< "newsletterName": "Field Notes (synthetic demo)",
< "newsletterUrl": "https://field.example/",
< "postTitle": "Reading list",
< "postUrl": "https://field.example/issues/2",
< "publishedAt": "2026-10-15T12:00:00Z",
< "html": "<p>Affiliate link: <a href='https://floor.example'>Floor Press</a>. We earn a commission.</p><p><a href='/contact'>Contact us</a></p>"
< },
< {
< "newsletterName": "Field Notes (synthetic demo)",
< "newsletterUrl": "https://field.example/",
< "postTitle": "Editorial notebook",
< "postUrl": "https://field.example/issues/3",
< "publishedAt": "2026-10-22T12:00:00Z",
< "html": "<p>We compared <a href='https://cedar.example'>Cedar</a> with other tools. Thousands of readers joined us.</p><p><a href='/contact'>Contact us</a></p>"
< }
< ]
< },
< "sponsorKeywords": [
< "Cedar"
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/afkdigital~substack-newsletter-sponsor-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'