{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Creator & Influencer Marketing Intel",
    "description": "Influencer analytics from public Instagram profiles (+ optional TikTok/YouTube): follower count, engagement rate, avg likes/comments, posting cadence, audience-quality / fake-follower heuristics, and top content. The Modash/HypeAuditor layer without Meta App Review. For brands, DTC, and agencies.",
    "version": "0.1",
    "x-build-id": "pgYBuTGq3SZx2qRFs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seibs.co~instagram-creator-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seibs.co-instagram-creator-intel",
        "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/seibs.co~instagram-creator-intel/runs": {
      "post": {
        "operationId": "runs-sync-seibs.co-instagram-creator-intel",
        "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/seibs.co~instagram-creator-intel/run-sync": {
      "post": {
        "operationId": "run-sync-seibs.co-instagram-creator-intel",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "creator_profile",
              "audience_quality",
              "roster_compare"
            ],
            "type": "string",
            "description": "creator_profile = pull each creator's public profile + recent posts and compute the engagement-analysis layer. audience_quality = creator_profile plus the fake-follower / audience-credibility estimate (the premium signal). roster_compare = creator_profile for a set of creators plus a cross-creator ranking table for roster selection.",
            "default": "creator_profile"
          },
          "creators": {
            "title": "Creators (@handles, usernames, or profile URLs)",
            "maxItems": 50,
            "type": "array",
            "description": "Instagram @handles, bare usernames, or profile URLs to analyze, e.g. ['@natgeo', 'nike', 'https://instagram.com/glossier']. When TikTok / YouTube are included, the same handle is looked up on each platform for a multi-platform view. Hard cap of 50.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "maxItems": 3,
            "uniqueItems": true,
            "type": "array",
            "description": "Which public creator surfaces to query: instagram (primary), tiktok (cross-reference footprint), youtube (cross-reference footprint). Aliases like 'ig', 'tt', 'yt' are accepted. Leave empty for Instagram only.",
            "items": {
              "type": "string",
              "enum": [
                "instagram",
                "tiktok",
                "youtube"
              ]
            },
            "default": [
              "instagram"
            ]
          },
          "include_cross_platform": {
            "title": "Cross-platform view (add TikTok + YouTube)",
            "type": "boolean",
            "description": "Shortcut to look the same handle up on Instagram + TikTok + YouTube and emit a multi-platform reach rollup (overrides the platforms list).",
            "default": false
          },
          "include_engagement_analysis": {
            "title": "Engagement analysis",
            "type": "boolean",
            "description": "Compute engagement rate, avg/median likes & comments, like:comment ratio, posting cadence, format mix, top content, follower-tier benchmark, and inferred category. Adds an engagement_analysis PPE charge per creator. This is the core analytics layer.",
            "default": true
          },
          "include_audience_quality": {
            "title": "Audience quality (fake-follower estimate)",
            "type": "boolean",
            "description": "Compute the fake-follower / audience-credibility estimate (credibility score + band + flags) from public signals. Adds an audience_quality_flag PPE charge per creator. Forced on in audience_quality mode. This is the premium authenticity signal Modash / HypeAuditor gate behind subscriptions.",
            "default": false
          },
          "max_posts": {
            "title": "Max recent posts to analyze",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many recent posts to factor into the engagement math. Instagram exposes ~12 logged-out; default 12.",
            "default": 12
          },
          "monitor_webhook_url": {
            "title": "Monitor webhook URL (Slack / email, optional)",
            "type": "string",
            "description": "When this actor runs under an Apify Schedule (monitor mode), post the change digest (follower / engagement movement, newly-added creators) to this Slack-compatible webhook URL.",
            "default": ""
          },
          "contact_email": {
            "title": "Contact email (polite-scraping signal, optional)",
            "type": "string",
            "description": "Optional. Sent as an X-Contact header so a platform can reach you - a good-citizen signal. Not a credential and never used to log in.",
            "default": ""
          },
          "use_apify_proxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy. DATACENTER handles the first (httpx) pass; a RESIDENTIAL tier is provisioned for the anti-bot escalation legs (Instagram fingerprints datacenter IPs).",
            "default": true
          },
          "use_browser_fallback": {
            "title": "Anti-bot escalation (curl_cffi + browser)",
            "type": "boolean",
            "description": "When a surface serves an anti-bot / login challenge (Instagram's profile JSON is token-locked), automatically escalate: switch to the RESIDENTIAL proxy and retry with curl_cffi Chrome TLS impersonation, then a headless browser that loads the public profile page and captures the page's own web_profile_info XHR. Turn off to use plain httpx only (Instagram then returns a documented platform_pending note).",
            "default": true
          },
          "browser_cdp_url": {
            "title": "Warm browser CDP endpoint (for token-locked Instagram)",
            "type": "string",
            "description": "Optional. CDP/WebSocket endpoint of an already-running, anti-detect (UC-mode / real Chrome) browser. When set, the browser tier connects to it (inheriting its session + fingerprint) so it clears Instagram's edge reliably. Without it a plain headless Chromium is launched (works on the apify/actor-python-playwright image; weaker against managed challenges). Can also be set as the BROWSER_CDP_URL env var.",
            "default": ""
          },
          "apify_proxy_groups": {
            "title": "Proxy groups (optional override)",
            "type": "array",
            "description": "Override the auto-selected proxy group. Leave empty to let the actor pick DATACENTER for the first pass and RESIDENTIAL for escalation.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Max concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Parallel profile fetches. The surfaces are rate-sensitive; default 4.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}