{
  "openapi": "3.0.1",
  "info": {
    "title": "Romania Company Financials – Revenue, Profit, CUI",
    "description": "Romanian company financials from official Ministry of Finance data and ANAF: revenue, profit, assets, equity, debt, cash and employees by CUI, in RON and EUR, with ratios, 10-year history and a monitor for new figures. $0.01 per company-year.",
    "version": "0.1",
    "x-build-id": "7dTLFfhzcL1L2MYi1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/matikitli~ro-company-financials/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-matikitli-ro-company-financials",
        "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/matikitli~ro-company-financials/runs": {
      "post": {
        "operationId": "runs-sync-matikitli-ro-company-financials",
        "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/matikitli~ro-company-financials/run-sync": {
      "post": {
        "operationId": "run-sync-matikitli-ro-company-financials",
        "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": {
          "identifiers": {
            "title": "Company fiscal codes (CUI / CIF)",
            "type": "array",
            "description": "Romanian fiscal codes, 2–10 digits, with or without the RO VAT prefix; spaces and dots are fine. One per line, up to 10,000. Example: 14399840, RO 1590082.",
            "items": {
              "type": "string"
            }
          },
          "historyYears": {
            "title": "Years of history",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1 = latest published financial year only. Up to 10 = the latest ten years, newest first, with year-on-year changes. Example: 5.",
            "default": 1
          },
          "yearFrom": {
            "title": "From financial year",
            "minimum": 2000,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional explicit range instead of 'Years of history' (max 10 years). Example: 2019."
          },
          "yearTo": {
            "title": "To financial year",
            "minimum": 2000,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional end of the explicit range. Example: 2025."
          },
          "caenCodes": {
            "title": "Search: CAEN activity codes",
            "type": "array",
            "description": "Find companies instead of listing CUIs: CAEN prefixes (1–4 digits), e.g. 62 or 4711. Search covers companies that filed in the latest published year.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Search: counties",
            "type": "array",
            "description": "Search: registered-office county. Example: CJ (Cluj).",
            "items": {
              "type": "string",
              "enum": [
                "AB",
                "AR",
                "AG",
                "BC",
                "BH",
                "BN",
                "BT",
                "BV",
                "BR",
                "B",
                "BZ",
                "CS",
                "CJ",
                "CT",
                "CV",
                "CL",
                "DJ",
                "DB",
                "GL",
                "GR",
                "GJ",
                "HR",
                "HD",
                "IL",
                "IS",
                "IF",
                "MM",
                "MH",
                "MS",
                "NT",
                "OT",
                "PH",
                "SM",
                "SB",
                "SV",
                "SJ",
                "TR",
                "TM",
                "TL",
                "VS",
                "VN",
                "VL"
              ],
              "enumTitles": [
                "Alba",
                "Arad",
                "Argeș",
                "Bacău",
                "Bihor",
                "Bistrița-Năsăud",
                "Botoșani",
                "Brașov",
                "Brăila",
                "București",
                "Buzău",
                "Caraș-Severin",
                "Cluj",
                "Constanța",
                "Covasna",
                "Călărași",
                "Dolj",
                "Dâmbovița",
                "Galați",
                "Giurgiu",
                "Gorj",
                "Harghita",
                "Hunedoara",
                "Ialomița",
                "Iași",
                "Ilfov",
                "Maramureș",
                "Mehedinți",
                "Mureș",
                "Neamț",
                "Olt",
                "Prahova",
                "Satu Mare",
                "Sibiu",
                "Suceava",
                "Sălaj",
                "Teleorman",
                "Timiș",
                "Tulcea",
                "Vaslui",
                "Vrancea",
                "Vâlcea"
              ]
            }
          },
          "legalFormCategories": {
            "title": "Search: legal forms",
            "type": "array",
            "description": "Search: legal form. Example: LLC (SRL).",
            "items": {
              "type": "string",
              "enum": [
                "LLC",
                "JSC",
                "PARTNERSHIP",
                "COOPERATIVE",
                "STATE",
                "OTHER"
              ],
              "enumTitles": [
                "SRL (limited liability)",
                "SA (joint-stock)",
                "SNC / SCS / SCA",
                "Cooperative",
                "State-owned (regie autonomă, companie națională)",
                "Other legal forms"
              ]
            }
          },
          "employeesMin": {
            "title": "Search: min. employees",
            "minimum": 0,
            "type": "integer",
            "description": "Search: average number of employees in the latest year, at least."
          },
          "employeesMax": {
            "title": "Search: max. employees",
            "minimum": 0,
            "type": "integer",
            "description": "Search: upper bound (inclusive)."
          },
          "revenueMinRon": {
            "title": "Search: min. revenue (RON)",
            "minimum": 0,
            "type": "integer",
            "description": "Search: net turnover in the latest year (RON), at least."
          },
          "revenueMaxRon": {
            "title": "Search: max. revenue (RON)",
            "minimum": 0,
            "type": "integer",
            "description": "Search: upper bound (inclusive)."
          },
          "maxItems": {
            "title": "Search: max. companies",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum companies returned by a search (1–10,000).",
            "default": 100
          },
          "maxLiveLookups": {
            "title": "Live checks for late filers",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Companies missing from the published yearly dataset (filed late) are checked live at ANAF, one request per company-year at ~1/s. This caps the checks per run (0–2,000).",
            "default": 300
          },
          "monitor": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Return only company-years that are new or changed since the previous run with the same input (e.g. after a new financial year is published). Schedule it monthly.",
            "default": false
          },
          "resetMonitor": {
            "title": "Reset monitor history",
            "type": "boolean",
            "description": "Forget what monitor mode delivered for this input and start again.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}