{
  "openapi": "3.0.1",
  "info": {
    "title": "Ecuador Company Registry - Owners, Directors & Contacts",
    "description": "Search Ecuador's company register: RUC, legal status, full address, email, phone and website, subscribed and authorised capital, CIIU activity, every director and legal representative with national ID, the shareholder list with capital and foreign-investment flags, legal acts and debts.",
    "version": "0.1",
    "x-build-id": "hoHqhjR3cAhs7YJ1l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~ecuador-supercias-companies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-ecuador-supercias-companies-scraper",
        "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/scrapers_lat~ecuador-supercias-companies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-ecuador-supercias-companies-scraper",
        "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/scrapers_lat~ecuador-supercias-companies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-ecuador-supercias-companies-scraper",
        "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": {
          "searchMode": {
            "title": "Search by",
            "enum": [
              "companyName",
              "identification",
              "expediente",
              "sweep"
            ],
            "type": "string",
            "description": "How to find companies. Company name does a contains-match on the registered name. Tax ID / national ID accepts a 13-digit RUC or a 10-digit cédula. File number takes the register's own expediente number. Sweep walks a whole range of file numbers.",
            "default": "companyName"
          },
          "queries": {
            "title": "Search terms",
            "type": "array",
            "description": "One or more company names (or parts of a name), RUC / cédula numbers, or file numbers — matching the search mode above.",
            "items": {
              "type": "string"
            }
          },
          "deepNameSearch": {
            "title": "Deep name search",
            "type": "boolean",
            "description": "The registry's own name search returns at most 15 companies per term and cannot page past that. With this on, a term that hits the cap is automatically re-issued in narrower variants so you get the companies the registry hides. Leave off for a quick look-up.",
            "default": true
          },
          "maxSearchQueries": {
            "title": "Max search terms to expand to",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper bound on how many name variants the deep search may issue. Raise it for broad terms that match thousands of companies.",
            "default": 250
          },
          "expedienteFrom": {
            "title": "Sweep from file number",
            "minimum": 1,
            "type": "integer",
            "description": "First file number to visit in sweep mode. File numbers are issued in order, so a high range is effectively a feed of newly incorporated companies."
          },
          "expedienteTo": {
            "title": "Sweep to file number",
            "minimum": 1,
            "type": "integer",
            "description": "Last file number to visit in sweep mode. Numbers that were never issued are skipped and never charged."
          },
          "includeAdministrators": {
            "title": "Include directors and legal representatives",
            "type": "boolean",
            "description": "Current and former directors with national ID, role, nationality, appointment date and whether they can legally bind the company.",
            "default": true
          },
          "includeShareholders": {
            "title": "Include shareholders",
            "type": "boolean",
            "description": "The shareholder register: each holder's ID, name, nationality, capital held and whether the holding is national or direct/indirect foreign investment.",
            "default": true
          },
          "includeLegalActs": {
            "title": "Include legal acts",
            "type": "boolean",
            "description": "Capital increases, name changes, mergers, dissolutions and other registered acts with their resolution and registration dates.",
            "default": true
          },
          "includeAmountsOwed": {
            "title": "Include outstanding amounts owed",
            "type": "boolean",
            "description": "Contributions the company still owes the regulator, by year and type — a direct compliance and credit signal.",
            "default": true
          },
          "includeAnnualFilings": {
            "title": "Include annual filing history",
            "type": "boolean",
            "description": "Which annual accounts and declarations were filed for which year, and when. Useful to spot companies that stopped filing.",
            "default": false
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Skip dissolved, liquidated and cancelled companies.",
            "default": false
          },
          "legalStatus": {
            "title": "Legal status",
            "type": "array",
            "description": "Keep only these legal statuses, e.g. ACTIVA, DISOLUCION, LIQUIDACION, CANCELADA. Matched as a substring.",
            "items": {
              "type": "string"
            }
          },
          "companyType": {
            "title": "Company type",
            "type": "array",
            "description": "Keep only these company types, e.g. ANONIMA, RESPONSABILIDAD LIMITADA, SUCURSAL EXTRANJERA, S.A.S. Matched as a substring.",
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Keep only companies registered in these provinces, e.g. PICHINCHA, GUAYAS, AZUAY.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Keep only companies whose registered city contains this text, e.g. QUITO."
          },
          "nameContains": {
            "title": "Company name contains",
            "type": "string",
            "description": "Extra filter on the registered company name."
          },
          "ciiuPrefix": {
            "title": "CIIU activity starts with",
            "type": "string",
            "description": "Keep only companies whose economic activity code starts with this, e.g. G47 for retail or K64 for finance."
          },
          "constitutedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "Keep only companies incorporated on or after this date (YYYY-MM-DD)."
          },
          "constitutedTo": {
            "title": "Incorporated to",
            "type": "string",
            "description": "Keep only companies incorporated on or before this date (YYYY-MM-DD)."
          },
          "minSubscribedCapitalUsd": {
            "title": "Minimum subscribed capital (USD)",
            "type": "integer",
            "description": "Keep only companies with at least this much subscribed capital."
          },
          "maxSubscribedCapitalUsd": {
            "title": "Maximum subscribed capital (USD)",
            "type": "integer",
            "description": "Keep only companies with at most this much subscribed capital."
          },
          "requireEmail": {
            "title": "Only companies with an email address",
            "type": "boolean",
            "description": "Keep only companies that publish at least one contact email.",
            "default": false
          },
          "requirePhone": {
            "title": "Only companies with a phone number",
            "type": "boolean",
            "description": "Keep only companies that publish at least one phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only companies with a website",
            "type": "boolean",
            "description": "Keep only companies that publish a website.",
            "default": false
          },
          "onlyStateSuppliers": {
            "title": "Only government suppliers",
            "type": "boolean",
            "description": "Keep only companies flagged as suppliers of goods or services to the state.",
            "default": false
          },
          "onlySecuritiesMarketParticipants": {
            "title": "Only securities-market participants",
            "type": "boolean",
            "description": "Keep only companies registered in the Ecuadorian securities market.",
            "default": false
          },
          "onlyWithForeignShareholders": {
            "title": "Only companies with foreign shareholders",
            "type": "boolean",
            "description": "Keep only companies with at least one direct or indirect foreign investor. Needs the shareholder section on.",
            "default": false
          },
          "onlyWithAmountsOwed": {
            "title": "Only companies that owe the regulator",
            "type": "boolean",
            "description": "Keep only companies with outstanding contributions. Needs the amounts-owed section on.",
            "default": false
          },
          "maxRecords": {
            "title": "Max companies",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many company files. Free Apify plans are capped at 10 per run.",
            "default": 10
          },
          "concurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many company files to fetch at once. Lower this if the registry starts refusing connections.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The registry refuses datacenter traffic after a short burst, so Ecuadorian residential proxy is used by default. Override only if you know what you need.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "EC"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}