{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Schools Alumni Scraper",
    "description": "Find alumni from any university or school on LinkedIn. Enter a school name or LinkedIn school URL to get alumni profiles with name, headline, current company, location, and more.",
    "version": "0.39",
    "x-build-id": "iLfYWaNOY0ACftuGG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~linkedin-schools-alumni-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-linkedin-schools-alumni-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~linkedin-schools-alumni-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-linkedin-schools-alumni-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~linkedin-schools-alumni-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-linkedin-schools-alumni-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": {
          "schoolUrls": {
            "title": "School URLs",
            "type": "array",
            "description": "LinkedIn school page URLs. Example: https://www.linkedin.com/school/mit/ or https://www.linkedin.com/school/harvard-university/",
            "items": {
              "type": "string"
            }
          },
          "schoolNames": {
            "title": "School Names",
            "type": "array",
            "description": "Plain school or university names when you don't have the LinkedIn URL. Example: 'MIT', 'Harvard University', 'Stanford University'.",
            "items": {
              "type": "string"
            }
          },
          "cookie": {
            "title": "LinkedIn Cookie",
            "type": "string",
            "description": "Your LinkedIn session cookie. Accepts: (1) the li_at value from browser DevTools → Application → Cookies, or (2) a full cookie JSON array exported from a browser extension such as EditThisCookie or Cookie-Editor."
          },
          "maxAlumniPerSchool": {
            "title": "Max Alumni Per School",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of alumni profiles to scrape per school. LinkedIn surfaces alumni visible to your session.",
            "default": 100
          },
          "fieldOfStudy": {
            "title": "Field of Study / Keywords",
            "type": "string",
            "description": "Optional keyword to narrow alumni results by field of study or specialization. Example: 'Computer Science', 'MBA', 'Engineering'."
          },
          "graduationYear": {
            "title": "Graduation Year",
            "type": "string",
            "description": "Optional graduation year filter. Example: '2020', '2015'. Used as a keyword in the search."
          },
          "graduationYearRange": {
            "title": "Graduation Year Range",
            "type": "object",
            "description": "Optional graduation year range with start and end (inclusive)."
          },
          "field": {
            "title": "Field of Study",
            "type": "string",
            "description": "Field of study (e.g. 'Computer Science', 'Economics', 'Marketing')."
          },
          "degree": {
            "title": "Degree",
            "enum": [
              "",
              "Bachelor",
              "Master",
              "PhD",
              "MBA",
              "Associate",
              "Other"
            ],
            "type": "string",
            "description": "Degree filter.",
            "default": ""
          },
          "currentLocation": {
            "title": "Current Location",
            "type": "string",
            "description": "Filter to alumni whose current location matches this text."
          },
          "currentCompany": {
            "title": "Current Company",
            "type": "string",
            "description": "Filter to alumni currently working at this company."
          },
          "language": {
            "title": "Language",
            "enum": [
              "en_US",
              "en_GB",
              "es_ES",
              "fr_FR",
              "de_DE",
              "pt_BR",
              "it_IT",
              "nl_NL",
              "ja_JP",
              "zh_CN"
            ],
            "type": "string",
            "description": "Preferred LinkedIn locale.",
            "default": "en_US"
          },
          "connectionDegree": {
            "title": "Connection Degree",
            "enum": [
              "",
              "F",
              "S",
              "O"
            ],
            "type": "string",
            "description": "Filter alumni by LinkedIn connection degree: F = 1st degree, S = 2nd degree, O = 3rd degree+. Leave blank to include all.",
            "default": ""
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy configuration. Residential proxy is recommended for best reliability."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}