{
  "openapi": "3.0.1",
  "info": {
    "title": "Job Change Tracker",
    "description": "Checks whether your contacts still work where your CRM says. Returns current employer, title, start month, role history, and left, landed, or promoted status, with a namesake check and a source date on every row. Runs on your own data and your own search, Prospeo, and verifier keys.",
    "version": "0.1",
    "x-build-id": "du7eaq1u6q595DNJi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mambalabs~job-change-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mambalabs-job-change-tracker",
        "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/mambalabs~job-change-tracker/runs": {
      "post": {
        "operationId": "runs-sync-mambalabs-job-change-tracker",
        "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/mambalabs~job-change-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-mambalabs-job-change-tracker",
        "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": {
          "person_name": {
            "title": "Person name",
            "type": "string",
            "description": "Full name of the person to check."
          },
          "company_domain": {
            "title": "Last known company domain",
            "type": "string",
            "description": "Website domain of the company your records place this person at, for example microsoft.com. Left, landed, and promoted are worked out against this company."
          },
          "company_name": {
            "title": "Last known company name",
            "type": "string",
            "description": "Name of that company. Used with or instead of the domain to match roles in the person's history."
          },
          "last_known_title": {
            "title": "Last known title",
            "type": "string",
            "description": "The title your records hold. Echoed on the row as input_title."
          },
          "profile_url": {
            "title": "LinkedIn profile URL",
            "type": "string",
            "description": "Optional. The person's LinkedIn profile URL, used as the identity. This actor never opens it. Without it, the run looks the profile up with your search key and charges profile_resolved when it finds and accepts one."
          },
          "email": {
            "title": "Old work email",
            "type": "string",
            "description": "Optional. The person's work address at the last known company. With a BounceBan key, an undeliverable answer marks the person as left."
          },
          "company_linkedin_url": {
            "title": "Company LinkedIn URL",
            "type": "string",
            "description": "Optional. The strongest company match when a role history carries LinkedIn company URLs."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Optional. Echoed for your records."
          },
          "input_id": {
            "title": "Your row ID",
            "type": "string",
            "description": "Optional. Returned unchanged on the row so you can join it back to your CRM or table."
          },
          "known_history": {
            "title": "Role history you already hold (JSON)",
            "type": "string",
            "description": "Optional. A role history you already have, as JSON: {\"source\": \"heyreach\", \"source_date\": \"2026-10-07\", \"experiences\": [...]} or {\"source\": \"crm\", \"roles\": [{\"company_name\", \"title\", \"start_month\", \"end_month\"}]}. Read before any paid key; a history newer than Max source age skips Prospeo."
          },
          "people": {
            "title": "People",
            "type": "array",
            "description": "Many people at once. Each item takes the same keys as the single person fields: person_name, company_domain, company_name, last_known_title, profile_url, email, company_linkedin_url, location, input_id, and known_history (an object).",
            "default": []
          },
          "serperApiKey": {
            "title": "Serper API key",
            "type": "string",
            "description": "Optional. Web search (serper.dev): finds profile URLs and reads the search result line for the current role. About 1 to 3 searches per person."
          },
          "serpApiKey": {
            "title": "SerpAPI key",
            "type": "string",
            "description": "Optional. Used for web search only when no Serper key is set."
          },
          "prospeoApiKey": {
            "title": "Prospeo API key",
            "type": "string",
            "description": "Optional. Prospeo enrich-person: the person's role history with start and end months. Skipped when you send a fresh history of your own."
          },
          "bouncebanApiKey": {
            "title": "BounceBan API key",
            "type": "string",
            "description": "Optional. Verifies the old work address only while the person still reads as at the company. Only an undeliverable answer is used."
          },
          "maxSourceAgeDays": {
            "title": "Max source age (days)",
            "type": "string",
            "description": "A history you send that is older than this is treated as lagging, so the run also reads Prospeo and the search result. Default 30.",
            "default": "30"
          },
          "checkCompanySite": {
            "title": "Check the company website",
            "enum": [
              "true",
              "false"
            ],
            "type": "string",
            "description": "Free. Looks for the person on up to 4 team and about pages of the last known company domain.",
            "default": "true"
          },
          "checkNews": {
            "title": "Check Google News",
            "enum": [
              "true",
              "false"
            ],
            "type": "string",
            "description": "Free. Cites up to 3 headlines from the last year that name the person with a move word. Evidence only; a headline never sets the employer.",
            "default": "true"
          },
          "verifyOldEmail": {
            "title": "Verify the old work email",
            "enum": [
              "true",
              "false"
            ],
            "type": "string",
            "description": "With a BounceBan key: one check per person who still reads as at the company. Uses the address you send, or one Prospeo returns on the company domain.",
            "default": "true"
          },
          "includeRoleHistory": {
            "title": "Include role history",
            "enum": [
              "true",
              "false"
            ],
            "type": "string",
            "description": "No keeps role_count and drops the role_history array.",
            "default": "true"
          },
          "cacheTtlDays": {
            "title": "Cache days",
            "type": "string",
            "description": "Reuse a reading made in the last N days, uncharged, from a store in your own Apify account. 0 turns it off. Rows with your own history are never cached. Default 7.",
            "default": "7"
          },
          "maxPeople": {
            "title": "Max people",
            "type": "string",
            "description": "Stop after this many people. Default 1000.",
            "default": "1000"
          },
          "max_charge_usd": {
            "title": "Max charge (USD)",
            "type": "string",
            "description": "Optional. The run stops before any row that would take its event charges past this amount."
          },
          "source_tag": {
            "title": "Source tag",
            "type": "string",
            "description": "Internal attribution tag."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}