{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper Profiles Reels Leads",
    "description": "Scrape Instagram creator profiles, Reels, video view metrics, bio link emails (Linktree, Beacons), sponsor brand detection, and buyer-intent comment scoring into clean lead tables.",
    "version": "0.0",
    "x-build-id": "4yHyJKWTaYdLBFRGl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/driftking-byte~instagram-scraper-profiles-reels-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-driftking-byte-instagram-scraper-profiles-reels-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/driftking-byte~instagram-scraper-profiles-reels-leads/runs": {
      "post": {
        "operationId": "runs-sync-driftking-byte-instagram-scraper-profiles-reels-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/driftking-byte~instagram-scraper-profiles-reels-leads/run-sync": {
      "post": {
        "operationId": "run-sync-driftking-byte-instagram-scraper-profiles-reels-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "profiles",
              "posts",
              "demo"
            ],
            "type": "string",
            "description": "Choose whether to scrape Instagram Profiles (with recent Reels/Posts + Bio Link Email Enrichment + Brand Sponsors + Buyer-Intent Comments), specific Post/Reel URLs, or Instant Demo Dataset.",
            "default": "profiles"
          },
          "outputRowMode": {
            "title": "Dataset Output Row Structure",
            "enum": [
              "posts_with_profile_lead",
              "profiles_and_posts",
              "profiles_only"
            ],
            "type": "string",
            "description": "Control how rows appear in the output Dataset table: 'posts_with_profile_lead' outputs 1 row per Reel/Post enriched with the creator's verified email, bio link, engagement rate, and lead score (just like apify/instagram-scraper + lead enrichment, yielding 30+ rows on default input); 'profiles_and_posts' outputs both Profile summary rows and individual Reel/Post rows; 'profiles_only' outputs 1 summary row per profile.",
            "default": "posts_with_profile_lead"
          },
          "usernames": {
            "title": "Instagram Usernames or Profile URLs",
            "type": "array",
            "description": "Enter Instagram handles (e.g. 'nike', '@duolingo', 'gymshark', 'natgeo', 'redbull') or full profile URLs ('https://www.instagram.com/nike/'). No login or cookies required.",
            "default": [
              "nike",
              "duolingo",
              "gymshark",
              "natgeo",
              "redbull",
              "hubspot"
            ],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Instagram Post or Reel URLs / Shortcodes",
            "type": "array",
            "description": "List of Instagram Post (/p/SHORTCODE/) or Reel (/reel/SHORTCODE/) URLs to extract captions, video views, likes, comments, hashtags, and media URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Max Recent Posts / Reels per Profile",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of recent Posts and Reels to extract per profile (1 to 50).",
            "default": 12
          },
          "deepCrawlBioLinks": {
            "title": "Deep-Crawl Bio Link (Linktree, Beacons, Website) for Emails & Socials",
            "type": "boolean",
            "description": "Automatically visit the external URL in the Instagram bio (Linktree, Beacons.ai, Stan.store, Solo.to, Carrd, or company website) to extract hidden business emails, phone numbers, TikTok, YouTube, Twitter/X, LinkedIn, and store links.",
            "default": true
          },
          "verifyEmailDns": {
            "title": "Verify Extracted Emails (Domain & Syntax Check)",
            "type": "boolean",
            "description": "Filter out placeholder/junk emails (sentry, wix, example, image extensions) and validate email domain structure for cold outreach readiness.",
            "default": true
          },
          "minFollowers": {
            "title": "Minimum Followers Filter (Optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Only output profiles that have at least this many followers (set 0 to keep all).",
            "default": 0
          },
          "onlyWithEmail": {
            "title": "Only Keep Profiles With Extracted Emails (Lead-Gen Filter)",
            "type": "boolean",
            "description": "If enabled, only profiles where at least one verified email was found (in bio, business button, or external bio link) will be pushed to the dataset.",
            "default": false
          },
          "includeRawPostsArray": {
            "title": "Include Recent Posts & Reels Array on Profile Records",
            "type": "boolean",
            "description": "Include the structured array of recent Posts/Reels (`latestPosts`) on each profile object.",
            "default": true
          },
          "generateHtmlReport": {
            "title": "Generate Visual Influencer & Lead Intelligence HTML Dashboard",
            "type": "boolean",
            "description": "Save an interactive HTML analytics report in Key-Value Store (REPORT.html) showing engagement benchmarks, lead contact cards, brand sponsors, and top Reels.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Uses zero-cost multi-endpoint fallback by default. Optionally configure Apify Proxy or custom proxy URLs for massive bulk runs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}