{
  "openapi": "3.0.1",
  "info": {
    "title": "TeamBlind Scraper",
    "description": "Scrape posts, comments, topic feeds, and company feeds from TeamBlind, the anonymous workplace community for tech employees. Search by keyword, fetch full threads, browse Career/Compensation/Interview/Tech topics, or filter by company. Cookie required.",
    "version": "1.0",
    "x-build-id": "R7DbFLy8UvYlqpicj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~teamblind-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-teamblind-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/crawlerbros~teamblind-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-teamblind-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/crawlerbros~teamblind-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-teamblind-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": [
          "mode",
          "cookieHeader"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchPosts",
              "byPost",
              "byTopic",
              "byCompany",
              "byUrl"
            ],
            "type": "string",
            "description": "What to scrape.",
            "default": "searchPosts"
          },
          "query": {
            "title": "Search query (mode=searchPosts)",
            "type": "string",
            "description": "Free-text search query. TeamBlind's search returns matched posts ranked by relevance.",
            "default": "layoffs"
          },
          "topic": {
            "title": "Topic (mode=byTopic)",
            "enum": [
              "Career",
              "Compensation",
              "Interview",
              "Tech",
              "Layoffs",
              "Startups",
              "Investing",
              "Real-Estate",
              "Education",
              "Health",
              "Relationships",
              "Travel",
              "Lifestyle",
              "Marketplace",
              "General"
            ],
            "type": "string",
            "description": "TeamBlind topic / channel. The most popular feeds are listed here; if you need a less-common one use mode=byUrl.",
            "default": "Career"
          },
          "companies": {
            "title": "Companies (mode=byCompany)",
            "type": "array",
            "description": "Company slugs as they appear in TeamBlind URLs (e.g. `Google`, `Amazon`, `Meta`, `Microsoft`, `Apple`, `Netflix`, `Salesforce`, `Uber`, `Airbnb`, `Stripe`).",
            "default": [
              "Google"
            ],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (mode=byPost / byUrl)",
            "type": "array",
            "description": "Full TeamBlind post URLs (e.g. `https://www.teamblind.com/post/...`). For mode=byUrl you can also paste topic / company / search URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order (mode=byTopic / byCompany)",
            "enum": [
              "newest",
              "popular"
            ],
            "type": "string",
            "description": "Sort feed by recency (default) or popularity.",
            "default": "newest"
          },
          "country": {
            "title": "Country / locale",
            "enum": [
              "us",
              "kr",
              "in"
            ],
            "type": "string",
            "description": "TeamBlind region. `us` and `in` both use www.teamblind.com (TeamBlind serves India-region feeds via the same host based on user account country). `kr` swaps to kr.teamblind.com.",
            "default": "us"
          },
          "includeComments": {
            "title": "Include comments (mode=byPost)",
            "type": "boolean",
            "description": "Emit each comment as a separate record alongside the post body.",
            "default": true
          },
          "cookieHeader": {
            "title": "TeamBlind cookie header (REQUIRED)",
            "type": "string",
            "description": "REQUIRED — TeamBlind is login-walled. Open https://www.teamblind.com after signing in, open DevTools → Network → click any request → copy the entire `Cookie` header value. Paste here. Look for `b_session_id=...` plus other Cookies. The actor sends this header verbatim. Daily test runs will fail without a valid cookie — this is expected per Apify's credential-gated actor pattern."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records (post + comment + error records combined).",
            "default": 50
          },
          "autoEscalateOnBlock": {
            "title": "Auto-escalate to Apify residential proxy on block",
            "type": "boolean",
            "description": "If true (default), the actor engages Apify residential proxy on HTTP 403 / 429 blocks.",
            "default": true
          },
          "proxyGroups": {
            "title": "Apify proxy groups (used on auto-escalation)",
            "type": "array",
            "description": "Apify proxy groups to engage on auto-escalation. Empty = datacenter (default), then residential fallback.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}