$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "items",
< "items": [
< {
< "adId": "ad-long-1",
< "pageName": "FlexKit",
< "primaryText": "Tired of bulky gym gear in a small apartment? Our fold-flat home fitness kit helps busy parents get a quick full-body session before breakfast.",
< "headline": "Train at home without losing your living room",
< "callToAction": "Shop Now",
< "landingPageUrl": "https://flexkit.example/products/fold-flat-kit",
< "libraryUrl": "https://www.facebook.com/ads/library/?id=ad-long-1",
< "mediaType": "video",
< "publisherPlatform": [
< "facebook",
< "instagram"
< ],
< "startDate": "2026-05-01",
< "endDate": "2026-07-09",
< "countries": [
< "US",
< "CA"
< ]
< },
< {
< "libraryId": "ad-fresh-1",
< "advertiserName": "Generic Gear",
< "adText": "Big sale today. Save 10% on our best products.",
< "title": "Limited time offer",
< "ctaText": "Shop Now",
< "linkUrl": "https://genericgear.example/",
< "format": "image",
< "startedAt": "2026-07-07",
< "scrapedAt": "2026-07-09T00:00:00.000Z"
< },
< {
< "id": "ad-risk-1",
< "brand": "MetaHealth Finance",
< "text": "Clinically proven to cure chronic pain and guarantee weight loss while improving your credit score in 30 days.",
< "headline": "Guaranteed results",
< "cta": "Apply Now",
< "url": "https://metahealth.example/apply",
< "mediaType": "image",
< "startDate": "2026-05-20",
< "endDate": "2026-07-09"
< }
< ],
< "targetProfile": {
< "brandName": "BrightNest",
< "productCategory": "home fitness",
< "targetCustomers": [
< "busy parents",
< "apartment renters"
< ],
< "competitors": [
< "FlexKit",
< "HomeTone"
< ],
< "currentAngles": [
< "discount_offer"
< ],
< "priorityMarkets": [
< "US",
< "CA"
< ],
< "complianceKeywords": [
< "guarantee",
< "clinically proven"
< ],
< "disallowedClaims": [
< "cure",
< "guaranteed weight loss"
< ]
< },
< "processedAt": "2026-07-09T00:00:00.000Z"
<}
<EOF
$curl "https://api.apify.com/v2/acts/rotvuvo~meta-ad-creative-opportunity-scorer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'