{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Master Data + Parent & Ultimate Owner (CIN, LinkedIn)",
    "description": "Turn any company name, alias or domain into a complete master-data record in bulk — official registered name, CIN/LLPIN/FCRN/LEI, immediate & ultimate parent company (with IDs), website, LinkedIn, followers, employees and HQ. India + global. No login or cookies required.",
    "version": "2.0",
    "x-build-id": "ndbYPK5AnP1b3jD3O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/event-data-api~company-master-data-parent-owner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-event-data-api-company-master-data-parent-owner",
        "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/event-data-api~company-master-data-parent-owner/runs": {
      "post": {
        "operationId": "runs-sync-event-data-api-company-master-data-parent-owner",
        "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/event-data-api~company-master-data-parent-owner/run-sync": {
      "post": {
        "operationId": "run-sync-event-data-api-company-master-data-parent-owner",
        "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": {
          "companies": {
            "title": "Companies (JSON list)",
            "type": "array",
            "description": "A list of companies to resolve. Each item can be: (1) a plain name/alias — \"Infosys\"; (2) a domain — \"infosys.com\"; or (3) an object with optional hints: {\"name\", \"domain\", \"linkedin\", \"email_domains\", \"master_id\"}. Hints improve accuracy but are not required — a bare name or domain works."
          },
          "pasteRows": {
            "title": "Paste rows (from Excel / Google Sheet)",
            "type": "string",
            "description": "Paste rows copied straight from Excel or Google Sheets (Ctrl/Cmd+C → paste here). Tab- or comma-separated. Columns are auto-detected — name/company/alias, domain/website, linkedin, email. A header row is optional. Use this when you don't want to build JSON."
          },
          "sheetUrl": {
            "title": "Google Sheet / CSV URL",
            "type": "string",
            "description": "A public Google-Sheet CSV-export link or any CSV URL. The whole file is downloaded and every row resolved. (Google Sheet → File → Share → Publish to web → CSV, or use the .../export?format=csv link.)"
          },
          "mode": {
            "title": "Resolution mode",
            "enum": [
              "fast",
              "balanced",
              "full"
            ],
            "type": "string",
            "description": "fast = official name + website + LinkedIn only (cheapest, no parent). balanced = identity + parent + enrichment, GLEIF-verified (recommended). full = additionally reverse-validates every CIN on Google so IDs are zero-wrong (most accurate, a bit slower).",
            "default": "balanced"
          },
          "enrich": {
            "title": "Enrich with LinkedIn (followers + employees + HQ)",
            "type": "boolean",
            "description": "Add live LinkedIn metrics — followers, employee count and HQ city/country — for the company AND its immediate & ultimate parents. Turn off if you only need the registered identity + IDs.",
            "default": true
          },
          "geminiApiKey": {
            "title": "Gemini API key (optional)",
            "type": "string",
            "description": "OPTIONAL. Your own Google AI Studio (Gemini) key. If provided, reasoning runs directly on the Gemini API — far cheaper and uses a strict schema. If left blank, a built-in reasoning path is used automatically (billed to your Apify usage). Get a free key at aistudio.google.com/apikey."
          },
          "workers": {
            "title": "Parallel workers",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many companies to resolve at once. 6–10 is a good balance of speed vs. rate-limits. Lower it (e.g. 2) if you use a free Gemini key (15 requests/minute limit).",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}