{
  "openapi": "3.0.1",
  "info": {
    "title": "Executive Search: Find C-Level and VP Contacts",
    "description": "Executive search by industry, country and company size: one deduplicated C-level or VP profile per match with title, company, industry, size, location and profile URL. Free plan: 100 per run. Pay per executive. No login or cookies. No company list needed.",
    "version": "0.1",
    "x-build-id": "rSRRdPv9VoLwwb5su"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2bdata~exec-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2bdata-exec-search",
        "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/b2bdata~exec-search/runs": {
      "post": {
        "operationId": "runs-sync-b2bdata-exec-search",
        "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/b2bdata~exec-search/run-sync": {
      "post": {
        "operationId": "run-sync-b2bdata-exec-search",
        "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": [
          "countries"
        ],
        "properties": {
          "countries": {
            "title": "Which countries? (where the executive is based)",
            "type": "array",
            "description": "Two-letter country codes, 1 to 5, where the person is based. Example: [\"us\", \"gb\"]. Required: each country is its own search and gets an equal share of limit, in the order given. People with no country on file never match.",
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Which industries? (optional)",
            "type": "array",
            "description": "Industry names of the executive's current company, up to 20, as LinkedIn spells them. Example: [\"Software Development\", \"Financial Services\"]. A name also covers the industries under it. A name the data does not know stops the run before any charge. Only about 59% of working people have a company with an industry on file. Leave empty for any industry.",
            "items": {
              "type": "string"
            }
          },
          "levels": {
            "title": "Which levels?",
            "type": "array",
            "description": "Which seniority levels to return: cxo, vp or both. Default both. Level comes from the person's current job title.",
            "items": {
              "type": "string",
              "enum": [
                "cxo",
                "vp"
              ],
              "enumTitles": [
                "C-level (CEO, CFO, CTO, COO, CMO and other chiefs)",
                "Vice president (VP, SVP)"
              ]
            },
            "default": [
              "cxo",
              "vp"
            ]
          },
          "companySizeMin": {
            "title": "Smallest company (employees, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Only people whose current company has at least this many employees. Example: 11. Companies with no size on file never match a size range. Leave empty for no lower bound."
          },
          "companySizeMax": {
            "title": "Largest company (employees, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Only people whose current company has at most this many employees. Example: 200. Companies with no size on file never match a size range. Leave empty for no upper bound."
          },
          "keywords": {
            "title": "Job title keywords (optional)",
            "type": "array",
            "description": "Words the current job title must contain, 3 to 64 characters, up to 10; one is enough. Whole words in any letter case, so \"finance\" does not match \"financial\" and \"cto\" does not match \"director\". Example: [\"finance\", \"cfo\", \"marketing\"]. List the variants you want. Leave empty for any title at the chosen levels.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Max executives",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most executives delivered in the run, which also caps what is charged. Default 25, maximum 1000. Free plan: 100 per run. A free count of how many people match is shown in the run status.",
            "default": 25
          },
          "includePhones": {
            "title": "Add phone numbers (add-on)",
            "type": "boolean",
            "description": "Adds a phone number to each person who has one on file, in phone and phones. Add-on price: $4.996 per 1,000 phone numbers found on the Free plan ($2.996 on Gold), charged once per person and only when a number is found. People without a phone cost nothing extra. Off by default.",
            "default": false
          },
          "includeEmails": {
            "title": "Add work emails (add-on)",
            "type": "boolean",
            "description": "Adds the current work email of each person who has one on file, in workEmail. Add-on price: $0.963 per 1,000 work emails found on the Free plan ($0.696 on Gold), charged once per person and only when an email is found. People without a work email cost nothing extra. Off by default.",
            "default": false
          },
          "includeAudit": {
            "title": "Include audit fields",
            "type": "boolean",
            "description": "Adds requestId, latencyMs and inputRaw to each row under audit. Omit for clean rows.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}