{
  "openapi": "3.0.1",
  "info": {
    "title": "Job Change Data API - People Movement and Employment Tracking",
    "description": "Search a people dataset for job changes and employment history by company, job function, title and job-change date, and export profiles with current and past roles. Pay per result. Bring your own API key.",
    "version": "0.1",
    "x-build-id": "IU9EZw8gPEo6QROzk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~job-change-data-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-job-change-data-api",
        "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/nabeelbaghoor~job-change-data-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-job-change-data-api",
        "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/nabeelbaghoor~job-change-data-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-job-change-data-api",
        "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": {
          "name": {
            "title": "Person name",
            "type": "string",
            "description": "Optional fuzzy match on a person's full name, e.g. `Jane Doe`. Combined with the filters below."
          },
          "companyName": {
            "title": "Company name",
            "type": "string",
            "description": "Match people with a job at this company, by company name, e.g. `Stripe`. Matches the `jobs.company.name` field."
          },
          "companyLinkedin": {
            "title": "Company LinkedIn slug",
            "type": "array",
            "description": "Match people with a job at these companies, by LinkedIn slug, e.g. `stripe`, `spacex` (the part after linkedin.com/company/). Matches `jobs.company.linkedin`. Combined as OR.",
            "items": {
              "type": "string"
            }
          },
          "jobFunction": {
            "title": "Job function",
            "type": "array",
            "description": "Filter to people whose job function is one of these, e.g. `Engineering`, `Sales`, `Marketing`. Matches `jobs.function`. Combined as OR.",
            "items": {
              "type": "string"
            }
          },
          "jobTitle": {
            "title": "Job title contains",
            "type": "string",
            "description": "Fuzzy match on job title, e.g. `product manager`. Matches `jobs.title`."
          },
          "jobEndedFrom": {
            "title": "Left a job on or after",
            "type": "string",
            "description": "Find people who left a role on or after this date (YYYY-MM-DD) - a job-change signal. Matches `jobs.ended_at`."
          },
          "jobEndedTo": {
            "title": "Left a job on or before",
            "type": "string",
            "description": "Upper bound for the job-change date (YYYY-MM-DD). Matches `jobs.ended_at`."
          },
          "matchMode": {
            "title": "Combine filters with",
            "enum": [
              "and",
              "or"
            ],
            "type": "string",
            "description": "Whether a person must match ALL filters (and) or ANY filter (or).",
            "default": "and"
          },
          "rawFilters": {
            "title": "Advanced filter leaves",
            "type": "array",
            "description": "Power users: an array of raw filter leaf objects appended to the filters above, each in the form `{ \"field\": \"jobs.company.domain\", \"type\": \"must\", \"match_type\": \"exact\", \"string_values\": [\"stripe.com\"] }`. Supports `type` (must/must_not), `match_type` (exact/fuzzy/exists), `string_values`, `date_from`, `date_to`, `number_min`, `number_max`, `boolean_value`."
          },
          "returnFields": {
            "title": "Return fields",
            "type": "array",
            "description": "Optional list of dot-path fields to return, e.g. `name`, `linkedin`, `jobs.company.name`. Leave empty to return the full person record.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Optional sort, as `+field` for ascending or `-field` for descending, e.g. `-jobs.ended_at`."
          },
          "orgId": {
            "title": "Organization ID",
            "type": "string",
            "description": "Your organization ID at the provider, used in the API path. Found in your provider dashboard alongside your service account. Required."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after this many people (1-2,000). Paged automatically with a cursor. You are charged per result returned."
          },
          "apiKey": {
            "title": "Client secret",
            "type": "string",
            "description": "Your service account client secret. Required. Used with the Client ID below to obtain a short-lived access token. Stored securely and never logged."
          },
          "clientId": {
            "title": "Client ID",
            "type": "string",
            "description": "Your service account client ID, issued by the provider for your organization. Required."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}