{
  "openapi": "3.0.1",
  "info": {
    "title": "Ecuador Company Register - New Companies & RUC List (Supercias)",
    "description": "Ecuador company register scraper and API (official Supercias directory, 230,000 firms, updated daily): filter by incorporation date, province, city, company type, CIIU code or RUC list. One row per company: RUC, name, status, type, address, phone, capital, CIIU. Daily new firms. $0.80 per 1,000.",
    "version": "1.0",
    "x-build-id": "iLI6cRjGJn4SYdVYe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~ecuador-company-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-ecuador-company-register",
        "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/rel8ble~ecuador-company-register/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-ecuador-company-register",
        "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/rel8ble~ecuador-company-register/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-ecuador-company-register",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "newCompanies",
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "newCompanies: companies incorporated in the last daysBack days, newest first (best for new-business leads). search: every company that matches the filters, any year. lookup: check a list of RUC numbers or Supercias file numbers (expedientes).",
            "default": "newCompanies"
          },
          "daysBack": {
            "title": "Days back (new companies mode)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "newCompanies mode: incorporation date within the last N days (Ecuador time). About 2,000 companies are incorporated per month.",
            "default": 30
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Keep only companies registered in these provinces (registered address). Pichincha = Quito, Guayas = Guayaquil. Empty = whole country.",
            "items": {
              "type": "string",
              "enum": [
                "AZUAY",
                "BOLIVAR",
                "CAÑAR",
                "CARCHI",
                "CHIMBORAZO",
                "COTOPAXI",
                "EL ORO",
                "ESMERALDAS",
                "GALAPAGOS",
                "GUAYAS",
                "IMBABURA",
                "LOJA",
                "LOS RIOS",
                "MANABI",
                "MORONA SANTIAGO",
                "NAPO",
                "ORELLANA",
                "PASTAZA",
                "PICHINCHA",
                "SANTA ELENA",
                "SANTO DOMINGO DE LOS TSACHILAS",
                "SUCUMBIOS",
                "TUNGURAHUA",
                "ZAMORA CHINCHIPE"
              ],
              "enumTitles": [
                "Azuay",
                "Bolivar",
                "Cañar",
                "Carchi",
                "Chimborazo",
                "Cotopaxi",
                "El Oro",
                "Esmeraldas",
                "Galapagos",
                "Guayas",
                "Imbabura",
                "Loja",
                "Los Rios",
                "Manabi",
                "Morona Santiago",
                "Napo",
                "Orellana",
                "Pastaza",
                "Pichincha",
                "Santa Elena",
                "Santo Domingo De Los Tsachilas",
                "Sucumbios",
                "Tungurahua",
                "Zamora Chinchipe"
              ]
            }
          },
          "cities": {
            "title": "Cities or cantons",
            "type": "array",
            "description": "Keep only companies in these cities or cantons, e.g. Quito, Guayaquil, Cuenca, Samborondon, Manta. Accents and case are ignored. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Keep only these legal forms, e.g. S.A.S. (most new companies), S.A., Cia. Ltda., foreign branches. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "sas",
                "anonima",
                "limitada",
                "sucursal_extranjera",
                "asociacion_consorcio",
                "economia_mixta",
                "anonima_predios_rusticos",
                "anonima_multinacional_andina",
                "comandita_acciones"
              ],
              "enumTitles": [
                "Simplified joint-stock company (S.A.S.) - Sociedad Por Acciones Simplificada",
                "Public limited company (S.A.) - Anónima",
                "Limited liability company (Cía. Ltda.) - Responsabilidad Limitada",
                "Branch of a foreign company - Sucursal Extranjera",
                "Association or consortium - Asociación O Consorcio",
                "Mixed public-private company - Economía Mixta",
                "Public limited company in rural land - Anónima En Predios Rústicos",
                "Andean multinational company - Anónima Multinacional Andina",
                "Partnership limited by shares - Comandita Por Acciones"
              ]
            }
          },
          "ciiuSections": {
            "title": "CIIU sections (industry)",
            "type": "array",
            "description": "Keep only companies whose main activity is in these CIIU / ISIC Rev. 4 sections, e.g. G (trade), F (construction), J (IT and media), M (professional services). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G",
                "H",
                "I",
                "J",
                "K",
                "L",
                "M",
                "N",
                "O",
                "P",
                "Q",
                "R",
                "S",
                "T",
                "U",
                "Z"
              ],
              "enumTitles": [
                "A - Agriculture, forestry and fishing",
                "B - Mining and quarrying",
                "C - Manufacturing",
                "D - Electricity, gas, steam and air conditioning supply",
                "E - Water supply, sewerage, waste management",
                "F - Construction",
                "G - Wholesale and retail trade; repair of motor vehicles",
                "H - Transportation and storage",
                "I - Accommodation and food service activities",
                "J - Information and communication",
                "K - Financial and insurance activities",
                "L - Real estate activities",
                "M - Professional, scientific and technical activities",
                "N - Administrative and support service activities",
                "O - Public administration and defence",
                "P - Education",
                "Q - Human health and social work",
                "R - Arts, entertainment and recreation",
                "S - Other service activities",
                "T - Activities of households as employers",
                "U - Activities of extraterritorial organizations",
                "Z - Not classified (Z)"
              ]
            }
          },
          "ciiuCodes": {
            "title": "CIIU codes (prefix)",
            "type": "array",
            "description": "Keep only companies whose CIIU activity code starts with these, with or without the section letter: 62 (software), 4711 (supermarkets), G4630 (food wholesale), I5610.01 (restaurants). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "nameKeywords": {
            "title": "Name contains (any of)",
            "type": "array",
            "description": "Keep only companies whose name contains one of these words, e.g. \"export\", \"tech\", \"constructora\". Accents and case are ignored.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Name does not contain",
            "type": "array",
            "description": "Drop companies whose name contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "incorporatedAfter": {
            "title": "Incorporated on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD. In newCompanies mode this replaces daysBack."
          },
          "incorporatedBefore": {
            "title": "Incorporated on or before",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "activeOnly": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "On (default): only companies with legal status ACTIVA. Off: also companies in dissolution / liquidation, inactive or with a cancelled permit. Lookup mode returns every status unless you turn this on.",
            "default": true
          },
          "minCapital": {
            "title": "Minimum subscribed capital (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies with at least this subscribed capital in US dollars (Ecuador uses the dollar). Most new S.A.S. have USD 1-1,000."
          },
          "maxCapital": {
            "title": "Maximum subscribed capital (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies with at most this subscribed capital."
          },
          "onlyWithPhone": {
            "title": "Only with a phone number",
            "type": "boolean",
            "description": "Drop companies without a usable registered phone (placeholder numbers such as 042000000 count as missing).",
            "default": false
          },
          "onlyWithRuc": {
            "title": "Only with a RUC",
            "type": "boolean",
            "description": "Drop companies that have no RUC (tax ID) in the directory yet. The newest companies often get their RUC some days after incorporation.",
            "default": false
          },
          "rucs": {
            "title": "RUC numbers (lookup mode)",
            "type": "array",
            "description": "Lookup mode: 13-digit company RUC numbers, e.g. 1790013731001. Values that are not found are listed in RUN_SUMMARY.notFound.",
            "items": {
              "type": "string"
            }
          },
          "fileNumbers": {
            "title": "File numbers / expedientes (lookup mode)",
            "type": "array",
            "description": "Lookup mode: Supercias file numbers (expediente), e.g. 765911.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort (search mode)",
            "enum": [
              "newest",
              "oldest",
              "register"
            ],
            "type": "string",
            "description": "Search mode order. newCompanies mode is always newest first.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many companies. 0 = every match (the whole active register is about 186,000 companies).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}