{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper — Creator Vetting, Due-Diligence & Tracking",
    "description": "Instagram Scraper with a creator-intelligence layer: ranked vetting queue, engagement authenticity, breakout detection, brand-fit, and follower-growth history instead of rows. Works as a profile scraper, influencer-vetting tool, and roster tracker. Drop-in compatible field set.",
    "version": "1.0",
    "x-build-id": "VgO45dW1Cx9LZpWZT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanclinton~instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanclinton-instagram-scraper",
        "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/ryanclinton~instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ryanclinton-instagram-scraper",
        "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/ryanclinton~instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ryanclinton-instagram-scraper",
        "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": "Input mode",
            "enum": [
              "profiles",
              "posts",
              "watchlist",
              "historicalSnapshot"
            ],
            "type": "string",
            "description": "What you're starting from. profiles (default) ranks a set of creators with the full intelligence layer. posts analyses specific post URLs. watchlist tracks a roster across runs and reports only what changed. historicalSnapshot reconstructs a past market state from tracked history."
          },
          "usernames": {
            "title": "Creator handles",
            "maxItems": 200,
            "type": "array",
            "description": "Instagram handles (with or without @) or profile URLs. Used in profiles and watchlist modes. The default run analyses nasa, natgeo, and bbcearth.",
            "default": [
              "nasa",
              "natgeo",
              "bbcearth"
            ],
            "items": {
              "type": "string"
            }
          },
          "rankBy": {
            "title": "Rank by",
            "enum": [
              "dealReadiness",
              "breakoutPotential",
              "engagementQuality",
              "brandFit",
              "momentum",
              "followers",
              "authenticity"
            ],
            "type": "string",
            "description": "How to order the results. dealReadiness (default) puts who to look at first for a deal at the top. breakoutPotential surfaces who's popping now. engagementQuality, brandFit, momentum, followers, and authenticity are also available."
          },
          "posts": {
            "title": "Post URLs",
            "maxItems": 500,
            "type": "array",
            "description": "Instagram post URLs (or shortcodes) for posts mode. Returns what's notable about each post.",
            "items": {
              "type": "string"
            }
          },
          "intent": {
            "title": "Intent",
            "enum": [
              "vet_creators",
              "find_emerging",
              "track_roster",
              "brand_match",
              "campaign_shortlist",
              "compare"
            ],
            "type": "string",
            "description": "Pick the job and the actor sets a sensible mode, ranking, and output pack for you. Anything you set explicitly still wins. compare lays creators side by side; campaign_shortlist builds an export-ready shortlist against a brand."
          },
          "compareUsernames": {
            "title": "Creators to compare",
            "maxItems": 50,
            "type": "array",
            "description": "2 to 50 handles to compare side by side (use with intent = Compare creators). Produces a comparison with labeled bests.",
            "items": {
              "type": "string"
            }
          },
          "brandProfile": {
            "title": "Brand profile",
            "type": "object",
            "description": "Describe your brand for the brand-fit engine: themes, values, audience the brand targets, plus optional mustInclude / avoid terms for a campaign shortlist. All matching is against public profile signals only."
          },
          "outputPack": {
            "title": "Output pack",
            "enum": [
              "raw",
              "brand",
              "agency",
              "analyst",
              "scout",
              "campaign",
              "portfolio"
            ],
            "type": "string",
            "description": "Shape the output for a buyer. brand and agency add a vetting read; agency, campaign, and portfolio emit client-ready deliverables (recommended/consider/avoid, a campaign shortlist, or a creator mix by funnel stage). raw is the full record set."
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Set a name to enable cross-run monitoring on ANY mode. The actor remembers this roster and, on the next run, returns only what changed: new breakouts, anomalies to vet, creators going quiet — with a change briefing first. Use the same name on a schedule for a daily feed."
          },
          "filters": {
            "title": "Filters",
            "type": "object",
            "description": "Keep only creators matching public profile attributes: followerTier (nano/micro/mid/macro/mega), verified, category, language. No follower or commenter filters — public profile attributes only."
          },
          "alerts": {
            "title": "Alerts",
            "type": "object",
            "description": "Tune the Signal Feed and Signal Cards: minAttentionScore, onlyNewSinceLastRun, breakoutMinMultiple, flagAnomalies, severity. Cards fire for creators above the threshold."
          },
          "enableCreatorMemory": {
            "title": "Build creator memory",
            "type": "boolean",
            "description": "Keep the growth + engagement history that powers trajectories, benchmarks, and the market views. On by default. Turn off to opt this run out of the shared history (public profile metrics only; no private or follower data is ever stored).",
            "default": true
          },
          "explainScores": {
            "title": "Explain scores",
            "type": "boolean",
            "description": "Add a breakdown of each score's components and weights to every record — a no-magic audit view.",
            "default": false
          },
          "taskPack": {
            "title": "Task pack",
            "enum": [
              "none",
              "engagementAuthenticity",
              "emergingCreators",
              "influencerVetting",
              "brandFitFinder",
              "creatorGrowthTracker",
              "accountAnalyzer"
            ],
            "type": "string",
            "description": "Add a curated, product-shaped summary record built for a specific job — e.g. an engagement-authenticity check or an emerging-creator shortlist. Built from the same signals; no extra fetch. none = no pack.",
            "default": "none"
          },
          "date": {
            "title": "As-of date",
            "type": "string",
            "description": "For historicalSnapshot mode: reconstruct the market as it stood on this date (YYYY-MM-DD), drawn from tracked history. Returns insufficientHistory for dates before coverage began."
          },
          "category": {
            "title": "Category / niche",
            "type": "string",
            "description": "For historicalSnapshot and benchmarks: the creator niche or category to slice on (e.g. fitness, beauty)."
          },
          "tier": {
            "title": "Follower tier",
            "enum": [
              "nano",
              "micro",
              "mid",
              "macro",
              "mega"
            ],
            "type": "string",
            "description": "For historicalSnapshot and benchmarks: the follower tier to slice on."
          },
          "geo": {
            "title": "Geo",
            "type": "string",
            "description": "Optional geo tag for benchmarks and the historical snapshot (e.g. UK, US). Used as a benchmark axis where the store has enough creators."
          },
          "changeWindowDays": {
            "title": "Change window (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Produce a 'what changed' read for the queried creators over this many days, drawn from tracked history — even without a prior watchlist run. Leave empty to skip."
          },
          "maxRecentPostsPerProfile": {
            "title": "Max recent posts per profile",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap on recent posts used per creator for the engagement read. The public profile API returns roughly a dozen recent posts.",
            "default": 12
          },
          "maxPostsDeep": {
            "title": "Deep post history",
            "minimum": 0,
            "maximum": 300,
            "type": "integer",
            "description": "Optionally pull deeper post history (more runtime and proxy cost). 0 uses just the recent posts from the profile API.",
            "default": 0
          },
          "outputProfile": {
            "title": "Output profile",
            "enum": [
              "signals",
              "compat",
              "minimal"
            ],
            "type": "string",
            "description": "signals (default) adds the full decision layer — vetting, engagement quality, brand fit, scores, history, deltas. compat returns the standard profile + posts field set for drop-in migration and raw ingestion (no decision layer). minimal returns IDs and URLs only.",
            "default": "signals"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxies are required — Instagram restricts automated access from shared datacenter IPs. The default uses Apify Residential with US rotation. Leave as-is unless you know you need a different region.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}