$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "maxDiscoveryChargeUsd": 0.5,
< "sourceMode": "list",
< "itemsList": [
< {
< "shortcode": "rA1x2Y3z4",
< "post_url": "https://www.instagram.com/p/rA1x2Y3z4/",
< "type": "Video",
< "product_type": "clips",
< "caption": "Why does your espresso taste sour? ☕\nIt's almost never the beans — it's your grind. Here's the 10-second fix.\nSave this for your next shot.",
< "hashtags": [
< "espresso",
< "coffeetips",
< "homebarista",
< "coffeelover"
< ],
< "like_count": 3100,
< "comment_count": 210,
< "view_count": 41200,
< "date": "2026-09-26T08:15:00+00:00",
< "user": {
< "username": "demo_roastery",
< "full_name": "Demo Roastery",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_roastery/",
< "comments_disabled": false
< },
< {
< "shortcode": "rB2y3Z4a5",
< "post_url": "https://www.instagram.com/p/rB2y3Z4a5/",
< "type": "Sidecar",
< "product_type": "carousel_container",
< "caption": "5 brew ratios every home barista should know\nSwipe through, then try number 3 tomorrow morning.",
< "hashtags": [
< "brewing",
< "coffeetips",
< "homebarista"
< ],
< "like_count": 1150,
< "comment_count": 100,
< "view_count": null,
< "date": "2026-09-22T17:40:00+00:00",
< "user": {
< "username": "demo_roastery",
< "full_name": "Demo Roastery",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_roastery/",
< "carousel_media_count": 5,
< "comments_disabled": false
< },
< {
< "shortcode": "rC3z4A5b6",
< "post_url": "https://www.instagram.com/p/rC3z4A5b6/",
< "type": "Image",
< "product_type": "feed",
< "caption": "New single origin just landed: Ethiopia Guji, notes of peach and jasmine.",
< "hashtags": [
< "singleorigin",
< "coffee"
< ],
< "like_count": 395,
< "comment_count": 25,
< "view_count": null,
< "date": "2026-09-18T09:05:00+00:00",
< "user": {
< "username": "demo_roastery",
< "full_name": "Demo Roastery",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_roastery/",
< "comments_disabled": false
< },
< {
< "shortcode": "rD4a5B6c7",
< "post_url": "https://www.instagram.com/p/rD4a5B6c7/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Saturday at the roastery. Come say hi until 4 pm.",
< "hashtags": [
< "roastery",
< "coffee"
< ],
< "like_count": 440,
< "comment_count": 30,
< "view_count": null,
< "date": "2026-09-13T11:20:00+00:00",
< "user": {
< "username": "demo_roastery",
< "full_name": "Demo Roastery",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_roastery/",
< "comments_disabled": false
< },
< {
< "shortcode": "rE5b6C7d8",
< "post_url": "https://www.instagram.com/p/rE5b6C7d8/",
< "type": "Video",
< "product_type": "clips",
< "caption": "Behind the scenes: roast day.",
< "hashtags": [
< "roasting",
< "coffee"
< ],
< "like_count": 460,
< "comment_count": 35,
< "view_count": 7800,
< "date": "2026-09-09T14:00:00+00:00",
< "user": {
< "username": "demo_roastery",
< "full_name": "Demo Roastery",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_roastery/",
< "comments_disabled": false
< },
< {
< "shortcode": "rF6c7D8e9",
< "post_url": "https://www.instagram.com/p/rF6c7D8e9/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Our autumn blend is back.",
< "hashtags": [
< "autumn",
< "coffee"
< ],
< "like_count": 420,
< "comment_count": 45,
< "view_count": null,
< "date": "2026-09-04T10:30:00+00:00",
< "user": {
< "username": "demo_roastery",
< "full_name": "Demo Roastery",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_roastery/",
< "comments_disabled": false
< },
< {
< "shortcode": "fA1x2Y3z4",
< "post_url": "https://www.instagram.com/p/fA1x2Y3z4/",
< "type": "Video",
< "product_type": "clips",
< "caption": "How to do your first pull-up in 4 weeks 💪\nNo gym needed — just a door frame and a towel.\nComment PULL and I'll send you the plan.",
< "hashtags": [
< "pullup",
< "calisthenics",
< "homeworkout",
< "fitnessmotivation",
< "strength"
< ],
< "like_count": 2650,
< "comment_count": 480,
< "view_count": 63000,
< "date": "2026-09-25T06:45:00+00:00",
< "user": {
< "username": "demo_fitcoach",
< "full_name": "Demo Fit Coach",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_fitcoach/",
< "comments_disabled": false
< },
< {
< "shortcode": "fB2y3Z4a5",
< "post_url": "https://www.instagram.com/p/fB2y3Z4a5/",
< "type": "Sidecar",
< "product_type": "carousel_container",
< "caption": "3 mistakes that keep your squat stuck at the same weight\nMistake #2 surprised most of my clients.",
< "hashtags": [
< "squat",
< "strengthtraining",
< "gymtips"
< ],
< "like_count": 1020,
< "comment_count": 90,
< "view_count": null,
< "date": "2026-09-20T18:10:00+00:00",
< "user": {
< "username": "demo_fitcoach",
< "full_name": "Demo Fit Coach",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_fitcoach/",
< "carousel_media_count": 5,
< "comments_disabled": false
< },
< {
< "shortcode": "fC3z4A5b6",
< "post_url": "https://www.instagram.com/p/fC3z4A5b6/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Meal prep Sunday. Chicken, rice, greens.",
< "hashtags": [
< "mealprep",
< "fitfood"
< ],
< "like_count": 330,
< "comment_count": 20,
< "view_count": null,
< "date": "2026-09-15T12:00:00+00:00",
< "user": {
< "username": "demo_fitcoach",
< "full_name": "Demo Fit Coach",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_fitcoach/",
< "comments_disabled": false
< },
< {
< "shortcode": "fD4a5B6c7",
< "post_url": "https://www.instagram.com/p/fD4a5B6c7/",
< "type": "Video",
< "product_type": "clips",
< "caption": "Quick mobility flow before work.",
< "hashtags": [
< "mobility",
< "stretching"
< ],
< "like_count": 360,
< "comment_count": 40,
< "view_count": 5200,
< "date": "2026-09-11T07:30:00+00:00",
< "user": {
< "username": "demo_fitcoach",
< "full_name": "Demo Fit Coach",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_fitcoach/",
< "comments_disabled": false
< },
< {
< "shortcode": "fE5b6C7d8",
< "post_url": "https://www.instagram.com/p/fE5b6C7d8/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Client win of the week — 12 weeks, one big smile.",
< "hashtags": [
< "clientwin",
< "transformation"
< ],
< "like_count": 390,
< "comment_count": 30,
< "view_count": null,
< "date": "2026-09-07T16:20:00+00:00",
< "user": {
< "username": "demo_fitcoach",
< "full_name": "Demo Fit Coach",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_fitcoach/",
< "comments_disabled": false
< },
< {
< "shortcode": "fF6c7D8e9",
< "post_url": "https://www.instagram.com/p/fF6c7D8e9/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Rest day reminder: recovery is training too.",
< "hashtags": [
< "recovery",
< "restday"
< ],
< "like_count": 340,
< "comment_count": 25,
< "view_count": null,
< "date": "2026-09-02T09:00:00+00:00",
< "user": {
< "username": "demo_fitcoach",
< "full_name": "Demo Fit Coach",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_fitcoach/",
< "comments_disabled": false
< },
< {
< "shortcode": "sA1x2Y3z4",
< "post_url": "https://www.instagram.com/p/sA1x2Y3z4/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Stop layering five serums. Here's what a dermatologist-reviewed routine actually looks like.\nSave this before your next skincare haul.",
< "hashtags": [
< "skincare",
< "skincareroutine",
< "glowup",
< "serum",
< "skintok",
< "beautytips",
< "dermatology",
< "cleanbeauty"
< ],
< "like_count": 2250,
< "comment_count": 310,
< "view_count": null,
< "date": "2026-09-24T13:25:00+00:00",
< "user": {
< "username": "demo_skinlab",
< "full_name": "Demo Skin Lab",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_skinlab/",
< "comments_disabled": false
< },
< {
< "shortcode": "sB2y3Z4a5",
< "post_url": "https://www.instagram.com/p/sB2y3Z4a5/",
< "type": "Video",
< "product_type": "clips",
< "caption": "3 ingredients that don't mix 🚫\nNumber 2 is in half your bathroom cabinets.",
< "hashtags": [
< "skincare",
< "ingredients",
< "skincaretips"
< ],
< "like_count": 1180,
< "comment_count": 140,
< "view_count": 28900,
< "date": "2026-09-19T19:00:00+00:00",
< "user": {
< "username": "demo_skinlab",
< "full_name": "Demo Skin Lab",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_skinlab/",
< "comments_disabled": false
< },
< {
< "shortcode": "sC3z4A5b6",
< "post_url": "https://www.instagram.com/p/sC3z4A5b6/",
< "type": "Image",
< "product_type": "feed",
< "caption": "New: barrier repair cream, now in a larger jar.",
< "hashtags": [
< "newlaunch",
< "skincare"
< ],
< "like_count": 410,
< "comment_count": 30,
< "view_count": null,
< "date": "2026-09-16T10:10:00+00:00",
< "user": {
< "username": "demo_skinlab",
< "full_name": "Demo Skin Lab",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_skinlab/",
< "comments_disabled": false
< },
< {
< "shortcode": "sD4a5B6c7",
< "post_url": "https://www.instagram.com/p/sD4a5B6c7/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Behind the lab: where we test every batch.",
< "hashtags": [
< "behindthescenes",
< "lab"
< ],
< "like_count": 380,
< "comment_count": 35,
< "view_count": null,
< "date": "2026-09-10T12:45:00+00:00",
< "user": {
< "username": "demo_skinlab",
< "full_name": "Demo Skin Lab",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_skinlab/",
< "comments_disabled": false
< },
< {
< "shortcode": "sE5b6C7d8",
< "post_url": "https://www.instagram.com/p/sE5b6C7d8/",
< "type": "Sidecar",
< "product_type": "carousel_container",
< "caption": "Ingredient glossary, part one.",
< "hashtags": [
< "ingredients",
< "skincare"
< ],
< "like_count": 430,
< "comment_count": 25,
< "view_count": null,
< "date": "2026-09-06T15:00:00+00:00",
< "user": {
< "username": "demo_skinlab",
< "full_name": "Demo Skin Lab",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_skinlab/",
< "carousel_media_count": 5,
< "comments_disabled": false
< },
< {
< "shortcode": "sF6c7D8e9",
< "post_url": "https://www.instagram.com/p/sF6c7D8e9/",
< "type": "Image",
< "product_type": "feed",
< "caption": "Weekend sale: 15% off the starter set.",
< "hashtags": [
< "sale",
< "skincare"
< ],
< "like_count": 365,
< "comment_count": 20,
< "view_count": null,
< "date": "2026-09-01T08:00:00+00:00",
< "user": {
< "username": "demo_skinlab",
< "full_name": "Demo Skin Lab",
< "is_verified": false
< },
< "from_url": "https://www.instagram.com/demo_skinlab/",
< "comments_disabled": false
< }
< ],
< "discoveryInput": {}
<}
<EOF
$curl "https://api.apify.com/v2/actors/rich_minds~ig-competitor-winning-posts/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'