{
  "openapi": "3.0.1",
  "info": {
    "title": "Argentina New Companies Feed - Nuevas Sociedades S.A.S./S.R.L.",
    "description": "Newly incorporated Argentine companies (S.A.S., S.R.L., S.A.) from the official Registro Nacional de Sociedades open data: CUIT, name, legal form, province, locality, activity (CLAE). Entity-only, filterable, since-last-run.",
    "version": "0.1",
    "x-build-id": "faen8B8Z4AwjReqtA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~argentina-new-companies-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-argentina-new-companies-feed",
        "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/moment-data~argentina-new-companies-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-argentina-new-companies-feed",
        "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/moment-data~argentina-new-companies-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-argentina-new-companies-feed",
        "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": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "Window returns the newest incorporations every time. Since last run remembers delivered CUITs in a named key-value store, so scheduled runs only return companies you have not received yet (including late registrations that appear in later snapshots).",
            "default": "window"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 3660,
            "type": "integer",
            "description": "Window length in days, counted back from the snapshot date of the newest register file (refreshed about monthly). Default 30 (window) or 120 (since last run)."
          },
          "fromDate": {
            "title": "From date (YYYY-MM-DD)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional fixed range start (incorporation / contrato social date). Any past date works - the file is the full register."
          },
          "toDate": {
            "title": "To date (YYYY-MM-DD)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional fixed range end (incorporation date)."
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Empty = all legal forms.",
            "items": {
              "type": "string",
              "enum": [
                "sas",
                "srl",
                "sa",
                "sau",
                "section-iv",
                "partnership",
                "foreign",
                "nonprofit",
                "cooperative",
                "state",
                "other"
              ],
              "enumTitles": [
                "S.A.S. (Sociedad por Acciones Simplificada)",
                "S.R.L. (Responsabilidad Limitada)",
                "S.A. (Sociedad Anónima)",
                "S.A.U. (Anónima Unipersonal)",
                "Sección IV / Sociedad simple",
                "Partnerships (comandita, colectiva)",
                "Foreign companies & branches",
                "Non-profits (asociación civil, fundación)",
                "Cooperatives & mutuals",
                "State companies",
                "Other"
              ]
            },
            "default": []
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Province names, accent-insensitive: CABA (Ciudad Autónoma de Buenos Aires), Buenos Aires, Córdoba, Santa Fe, Mendoza, ... Matches the fiscal or legal address. Empty = all Argentina.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "localities": {
            "title": "Localities",
            "type": "array",
            "description": "Locality names as registered, e.g. Rosario, Mar del Plata, Capital Federal (accent-insensitive).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal code prefixes",
            "type": "array",
            "description": "4-digit postal code or prefix, e.g. 2000 (Rosario), 5000 (Córdoba city), 14 (part of CABA).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activityCodes": {
            "title": "Activity codes (CLAE prefixes)",
            "type": "array",
            "description": "AFIP CLAE / NAES activity code prefixes, e.g. 62 (software & IT), 41 (construction), 47 (retail), 56 (restaurants), 01 (agriculture). Matches any declared activity.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep companies whose name or main activity contains any of these words, e.g. software, constructora, agro, logistica, solar.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude name keywords",
            "type": "array",
            "description": "Drop companies whose name contains any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeInFormation": {
            "title": "Include companies 'en formación'",
            "type": "boolean",
            "description": "Keep companies whose name still carries 'EN FORMACION' (registration in progress).",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum companies to return (newest first). Each returned company is one billed event.",
            "default": 30
          },
          "stateKey": {
            "title": "State key (since last run)",
            "type": "string",
            "description": "Separate memory per saved filter set when using Since last run mode.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}