{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Followers Scraper: Mutual Connection Map",
    "description": "🧵✨  Threads User Followers Scraper scrapes Instagram Threads follower and following data to map relationships, mutuals, and overlaps. 🔍 Export clean CSV/JSON for analytics. 📊 Perfect for competitor tracking, influencer discovery, and audience research.",
    "version": "0.1",
    "x-build-id": "hQzxpPSz0y8QlaQFY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simpleapi~threads-user-followers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simpleapi-threads-user-followers-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/simpleapi~threads-user-followers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-simpleapi-threads-user-followers-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/simpleapi~threads-user-followers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-simpleapi-threads-user-followers-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",
        "required": [
          "urls",
          "sessionId"
        ],
        "properties": {
          "urls": {
            "title": "📝 Profiles to look up (one or many)",
            "type": "array",
            "description": "🎯 Paste Threads links **or** plain usernames — one per line is fine.\n\n✨ **Examples:** `@zuck` · `https://www.threads.com/@creator` · mix & match as you like!\n\nℹ️ Very large accounts: Threads only serves a sample of roughly 50 followers for them, so the mutual map for a mega-account covers that sample. Small and mid-size profiles paginate fully.",
            "items": {
              "type": "string"
            }
          },
          "sessionId": {
            "title": "🔑✅ Your logged-in session (required)",
            "type": "string",
            "description": "🍪 This tells Threads *you're you* — same as when you browse the app yourself. Follower and following lists are never served to logged-out clients, so this is required.\n\n👉 Open your browser's cookie settings for **Instagram** or **Threads**, find **`sessionid`**, and paste the value here.\n\n🤫 **Keep it secret** — treat it like a password. Never share it or paste it into public chats or code repos."
          },
          "maxFollowers": {
            "title": "🎚️ How many followers per profile?",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "📊 Cap on how many followers to analyze for **each** profile. The relationship summary is computed over exactly these analyzed followers.",
            "default": 50
          },
          "maxFollowingLookup": {
            "title": "🔁 How much of the target's *following* list to read",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "🧠 A tie is only **mutual** if the target follows the person back, and the only proof of that is the target's own following list — so this Actor reads it and intersects.\n\n⬆️ Raise it for accounts that follow a lot of people: any follower not found inside the part that was read is reported as `unknown` (never as \"not mutual\"), so a low value here means fewer definite answers.",
            "default": 2000
          },
          "onlyMutuals": {
            "title": "🤝 Only save mutual connections",
            "type": "boolean",
            "description": "✅ When **on**, only followers confirmed mutual in both directions are written as rows. The per-profile summary still reports counts across everyone analyzed, so `mutualPct` stays meaningful.\n\n🛟 If a profile turns out to have no mutuals at all, its real rows are kept anyway (flagged `isMutual=false`) rather than handing you an empty dataset.",
            "default": false
          },
          "sortBy": {
            "title": "↕️ Order the rows by",
            "enum": [
              "connection",
              "followers",
              "username"
            ],
            "type": "string",
            "description": "🏅 **Connection strength** puts confirmed mutuals (verified ones first) at the top, then fans, then undetermined. **Follower count** ranks by real reach. **Username** is alphabetical.",
            "default": "connection"
          },
          "maxRunTimeSecs": {
            "title": "⏱️ Time budget (seconds)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "🛑 Hard wall-clock limit. When it's reached the Actor stops fetching, keeps everything already collected and finishes cleanly — partial results are labelled as such in the summary (`followingListComplete: false`).",
            "default": 3600
          },
          "proxyConfiguration": {
            "title": "🌐 Network options (optional)",
            "type": "object",
            "description": "🛡️ **Totally optional** — leave the defaults if you're not sure. The Actor tries a direct connection first and only falls back to these settings if Threads doesn't answer.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}