{
  "openapi": "3.0.1",
  "info": {
    "title": "Indian Company Data — CIN, Directors & Financials",
    "description": "Look up any Indian company by CIN and get directors, financials, balance sheet, paid-up capital, charges & registry details as clean JSON. MCA-sourced data via Tofler — for due diligence, KYC, lead enrichment & investor research.",
    "version": "0.2",
    "x-build-id": "WzmodGCYiy9x6oEzk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~indian-company-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-indian-company-data",
        "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/foxlabs~indian-company-data/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-indian-company-data",
        "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/foxlabs~indian-company-data/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-indian-company-data",
        "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": {
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Type Indian company names — one per line (e.g. `Infosys`, `Reliance Industries`). Each is resolved to its company profile via search. ⚠ Best-effort: a shared/ambiguous name may resolve to the wrong company — for guaranteed results use the CIN below. Always check the `matched` field + returned name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cins": {
            "title": "CINs (Corporate Identification Numbers) — most precise",
            "type": "array",
            "description": "One CIN per line — e.g. `L17110MH1973PLC019786`. The CIN is the 21-character MCA identifier on every Indian company's filings. No ambiguity — exact match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companyUrls": {
            "title": "Or paste Tofler company URLs / upload a list",
            "type": "array",
            "description": "Full Tofler URLs, e.g. `https://www.tofler.in/company/L17110MH1973PLC019786`, or upload a .txt/.csv.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "industry": {
            "title": "Industry / sector",
            "enum": [
              "",
              "agriculture",
              "mining-and-quarrying",
              "manufacturing-food-products",
              "manufacturing-tobacco-products",
              "manufacturing-textiles",
              "manufacturing-wearing-apparel",
              "manufacturing-leather-products",
              "manufacturing-wood-products",
              "manufacturing-paper-products",
              "manufacturing-chemical-products",
              "manufacturing-machinery",
              "manufacturing-motor-vehicles",
              "general-manufacturing",
              "electricity-gas-and-water",
              "construction",
              "trading",
              "hotels-and-restaurants",
              "transport-and-storage",
              "transport-services",
              "post-and-telecom",
              "finance",
              "insurance",
              "real-estate-and-renting",
              "computer-related-services",
              "research-and-development",
              "business-services",
              "community-and-social-services",
              "education",
              "health-and-social-work",
              "recreational-cultural-and-sporting-activities"
            ],
            "type": "string",
            "description": "DISCOVER companies by sector — no names needed. Combine with State below to narrow (e.g. Computer & IT services + Karnataka = Bangalore tech companies). Each match is fully enriched with directors, financials & charges.",
            "default": ""
          },
          "state": {
            "title": "State / union territory",
            "enum": [
              "",
              "maharashtra",
              "delhi",
              "karnataka",
              "tamil-nadu",
              "gujarat",
              "telangana",
              "west-bengal",
              "uttar-pradesh",
              "haryana",
              "rajasthan",
              "kerala",
              "punjab",
              "madhya-pradesh",
              "andhra-pradesh",
              "odisha",
              "bihar",
              "jharkhand",
              "chhattisgarh",
              "uttarakhand",
              "goa",
              "himachal-pradesh",
              "chandigarh",
              "jammu-and-kashmir",
              "assam",
              "tripura",
              "manipur",
              "meghalaya",
              "nagaland",
              "mizoram",
              "arunachal-pradesh",
              "sikkim",
              "pondicherry",
              "daman-and-diu",
              "dadar-and-nager-haveli",
              "andaman-and-nicobar",
              "lakshadweep"
            ],
            "type": "string",
            "description": "DISCOVER companies registered in this state (or filter look-ups to it). Combine with Industry above for a precise list.",
            "default": ""
          },
          "statusFilter": {
            "title": "Company status",
            "enum": [
              "",
              "Active",
              "Strike Off",
              "Dissolved",
              "Under Liquidation",
              "Dormant",
              "Not Available for eFiling"
            ],
            "type": "string",
            "description": "Keep only companies with this status (applied after enrichment). Leave empty for all.",
            "default": ""
          },
          "companyClassFilter": {
            "title": "Company class",
            "enum": [
              "",
              "public",
              "private",
              "one person"
            ],
            "type": "string",
            "description": "Keep only companies of this class.",
            "default": ""
          },
          "maxResults": {
            "title": "Maximum number of companies",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on results — pay-per-result pricing scales linearly. In discovery mode this is also how many companies are pulled from the browse list. Set 0 for unlimited.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Concurrent lookups",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many companies to fetch in parallel. Default 10 is balanced.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Datacenter proxy is sufficient.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": []
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}