{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn+Glassdoor_Jobs",
    "description": "prototype",
    "version": "0.0",
    "x-build-id": "tne3EGBljuXQuqHEm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/retrograde~linkedin-glassdoor-jobs/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-retrograde-linkedin-glassdoor-jobs",
        "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/retrograde~linkedin-glassdoor-jobs/runs": {
      "post": {
        "operationId": "runs-sync-retrograde-linkedin-glassdoor-jobs",
        "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/retrograde~linkedin-glassdoor-jobs/run-sync": {
      "post": {
        "operationId": "run-sync-retrograde-linkedin-glassdoor-jobs",
        "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": [
          "keyword",
          "platforms"
        ],
        "properties": {
          "keyword": {
            "title": "Job Keyword",
            "type": "string",
            "description": "Define the job keyword to search (e.g., 'Software Engineer', 'Data Analyst')",
            "default": "Software Engineer"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Specify the location for job searching (e.g., 'New York, NY', 'Remote')",
            "default": "United States"
          },
          "platforms": {
            "title": "Platforms to Scrape",
            "uniqueItems": true,
            "type": "array",
            "description": "Select which platforms to scrape jobs from",
            "items": {
              "type": "string",
              "enum": [
                "glassdoor",
                "linkedin"
              ]
            },
            "default": [
              "glassdoor",
              "linkedin"
            ]
          },
          "maxItems": {
            "title": "Max Jobs Per Platform",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of job listings to scrape per platform (0 = unlimited)",
            "default": 50
          },
          "scrapeCompanyReviews": {
            "title": "Scrape Company Reviews",
            "type": "boolean",
            "description": "Enable scraping of company reviews from Glassdoor and LinkedIn",
            "default": true
          },
          "maxReviewsPerCompany": {
            "title": "Max Reviews Per Company",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of reviews to scrape for each company",
            "default": 20
          },
          "includeNoSalaryJob": {
            "title": "Include Jobs Without Salary",
            "type": "boolean",
            "description": "Choose to include jobs that don't list salary information",
            "default": true
          },
          "minSalary": {
            "title": "Minimum Salary (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum salary filter in USD (leave empty for no minimum)"
          },
          "maxSalary": {
            "title": "Maximum Salary (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum salary filter in USD (leave empty for no maximum)"
          },
          "fromAge": {
            "title": "Job Age Filter (Days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Filter jobs based on how recently they were posted (in days)",
            "default": 30
          },
          "jobType": {
            "title": "Job Type",
            "type": "array",
            "description": "Select the type of job contract",
            "items": {
              "type": "string",
              "enum": [
                "FULL_TIME",
                "PART_TIME",
                "CONTRACT",
                "TEMPORARY",
                "INTERNSHIP"
              ]
            },
            "default": [
              "FULL_TIME"
            ]
          },
          "remoteWorkType": {
            "title": "Remote Work Type",
            "enum": [
              "any",
              "remote_only",
              "hybrid",
              "on_site"
            ],
            "type": "string",
            "description": "Filter by remote work options",
            "default": "any"
          },
          "seniorityType": {
            "title": "Seniority Level",
            "type": "array",
            "description": "Choose the level of seniority for job positions",
            "items": {
              "type": "string",
              "enum": [
                "ENTRY_LEVEL",
                "MID_LEVEL",
                "SENIOR_LEVEL",
                "EXECUTIVE"
              ]
            },
            "default": []
          },
          "minRating": {
            "title": "Minimum Company Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Set a minimum company rating (0-5 stars, applies to Glassdoor)",
            "default": 0
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for scraping (recommended for better reliability)",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}