{
  "openapi": "3.0.1",
  "info": {
    "title": "The Org Scraper [$0.90/1K💰] | Org Charts & People",
    "description": "Scrape The Org company profiles, org charts, teams, people and reporting lines. Get headcount, funding stage, offices, manager relationships and profile links in one dataset.",
    "version": "0.1",
    "x-build-id": "ROcbnH1XrMrtvNGJY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~the-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-the-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/ahmed_jasarevic~the-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-the-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/ahmed_jasarevic~the-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-the-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": {
          "companySlugs": {
            "title": "Company slugs",
            "type": "array",
            "description": "The Org company slugs, e.g. \"openai\", \"stripe\", \"figma\". You can also paste full company URLs here.",
            "items": {
              "type": "string"
            }
          },
          "companyUrls": {
            "title": "Company URLs",
            "type": "array",
            "description": "Full theorg.com company URLs, e.g. https://theorg.com/org/openai. Org-chart and browse URLs are normalized automatically.",
            "items": {
              "type": "string"
            }
          },
          "browseIndustry": {
            "title": "Browse: industry slug",
            "type": "string",
            "description": "Discover companies by industry slug, e.g. \"ai-ml\", \"fintech\", \"saas\". See https://theorg.com/explore/industries for all slugs. Used only when no company slugs/URLs are provided."
          },
          "browseCountry": {
            "title": "Browse: country slug",
            "type": "string",
            "description": "Discover companies by country slug, e.g. \"united-states\", \"germany\". See https://theorg.com/explore/countries for all slugs."
          },
          "browseEmployeeRange": {
            "title": "Browse: employee range",
            "enum": [
              "1-10",
              "10-50",
              "50-200",
              "200-500",
              "500-1000",
              "1000-5000",
              "5000-10000",
              ">10000"
            ],
            "type": "string",
            "description": "Discover companies by headcount bucket."
          },
          "browseLetter": {
            "title": "Browse: company letter",
            "type": "string",
            "description": "Discover companies whose name starts with this letter (a-z). See https://theorg.com/companies."
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of companies to process per run.",
            "default": 20
          },
          "includePeople": {
            "title": "Include people",
            "type": "boolean",
            "description": "Emit one dataset item per person (name, title, department, seniority, team, photo, manager).",
            "default": true
          },
          "maxPeoplePerCompany": {
            "title": "Max people per company",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap on people emitted per company. The Org's public API returns up to 50 members per team.",
            "default": 100
          },
          "includeOrgChart": {
            "title": "Include org-chart reporting lines",
            "type": "boolean",
            "description": "Walk the org chart from the top nodes and emit manager/report relationships.",
            "default": true
          },
          "orgChartDepth": {
            "title": "Org-chart depth",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "How many management levels to expand below the top-level org chart nodes.",
            "default": 2
          },
          "maxOrgChartRequests": {
            "title": "Max org-chart requests per company",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on GraphQL calls used to walk the org chart for one company.",
            "default": 25
          },
          "includeTeams": {
            "title": "Emit team items",
            "type": "boolean",
            "description": "Also emit one dataset item per team (name, slug, headcount, description). Team headcounts are always included on the company item.",
            "default": false
          },
          "enrichLocations": {
            "title": "Enrich person locations",
            "type": "boolean",
            "description": "Fetch each person's profile page to resolve their individual location, level and bio. Costs one extra request per person.",
            "default": false
          },
          "maxEnrichedPeople": {
            "title": "Max enriched people per company",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on person profile fetches when location enrichment is enabled.",
            "default": 25
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}