{
  "openapi": "3.0.1",
  "info": {
    "title": "France New Companies Feed (SIRENE, NAF, size, département)",
    "description": "Newly created French companies (SAS, SARL, SCI, SA...) from INSEE's official SIRENE open data: SIREN, head-office SIRET, NAF/APE code, legal form, workforce band, postal code, département, région. Legal entities only. Filters and 'new since last run' mode.",
    "version": "0.1",
    "x-build-id": "jiicL6ipadD2llohO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~france-new-companies-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-france-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~france-new-companies-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-france-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~france-new-companies-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-france-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 (default): companies created in the date window from the latest monthly SIRENE file, no saved state. sinceLastRun: same window but skips SIRENs already delivered for this State key, so a monthly/weekly schedule only gets new ones (and resumes if Max items cut a run short).",
            "default": "window"
          },
          "lookbackDays": {
            "title": "Lookback (days)",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Creation-date window ends on the SIRENE file date (1st of the month) and starts this many days earlier. Ignored if 'Created from' is set.",
            "default": 31
          },
          "creationDateFrom": {
            "title": "Created from",
            "type": "string",
            "description": "Optional start date (YYYY-MM-DD) for the creation date. Recent SIRENs only: very old creation dates may be incomplete."
          },
          "creationDateTo": {
            "title": "Created to",
            "type": "string",
            "description": "Optional end date (YYYY-MM-DD). Default: the SIRENE file date."
          },
          "includeFutureDated": {
            "title": "Include future-dated creations",
            "type": "boolean",
            "description": "Some companies are registered with a start date after the file date. Excluded by default.",
            "default": false
          },
          "legalFormGroups": {
            "title": "Legal form groups",
            "type": "array",
            "description": "commercial = SAS, SASU, SARL, EURL, SA, SNC, SEL, GIE, coops. civil = sociétés civiles (SCI, SCM, GAEC...). foreign = foreign companies registered at the RCS (branches). foreign-unregistered = foreign companies with a French VAT/SIREN but no RCS registration (mostly marketplace sellers). nonprofit = associations, foundations, mutuals. public = public bodies. Entrepreneurs individuels are never included.",
            "items": {
              "type": "string",
              "enum": [
                "commercial",
                "civil",
                "foreign",
                "foreign-unregistered",
                "nonprofit",
                "public",
                "other"
              ],
              "enumTitles": [
                "Commercial companies",
                "Civil companies (SCI, SCM...)",
                "Foreign, RCS-registered",
                "Foreign, not RCS-registered",
                "Associations & non-profits",
                "Public bodies",
                "Other"
              ]
            },
            "default": [
              "commercial",
              "civil",
              "foreign"
            ]
          },
          "legalForms": {
            "title": "Legal form codes",
            "type": "array",
            "description": "Optional INSEE catégorie juridique codes or prefixes, e.g. 5710 (SAS), 5720 (SASU), 5499 (SARL), 5498 (EURL), 6540 (SCI), 57 (all SAS). Overrides the groups above (entrepreneurs individuels stay excluded).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nafCodes": {
            "title": "NAF / APE codes",
            "type": "array",
            "description": "Prefix match on the NAF rév. 2 (or NAF 2025) code, with or without dots: 62.01Z, 6201Z, 62 (all of division 62), 56.10 (restaurants).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nafSections": {
            "title": "NAF sections",
            "type": "array",
            "description": "Section letters A-U, e.g. F (construction), J (information & communication), M (professional services).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "workforceBands": {
            "title": "Workforce bands",
            "type": "array",
            "description": "INSEE tranche d'effectifs. New companies are almost always NN (non-employer / not yet known).",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "NN non-employer/unknown",
                "0",
                "1-2",
                "3-5",
                "6-9",
                "10-19",
                "20-49",
                "50-99",
                "100-199",
                "200-249",
                "250-499",
                "500-999",
                "1000-1999",
                "2000-4999",
                "5000-9999",
                "10000+"
              ]
            },
            "default": []
          },
          "employerOnly": {
            "title": "Employers only",
            "type": "boolean",
            "description": "Only units INSEE flags as employers (caractère employeur = O). Rare for brand-new companies.",
            "default": false
          },
          "socialEconomyOnly": {
            "title": "Social & solidarity economy only",
            "type": "boolean",
            "description": "Only ESS units.",
            "default": false
          },
          "keywords": {
            "title": "Name contains",
            "type": "array",
            "description": "Any of these words in the name, acronym or usual name (accents optional), e.g. holding, immo, conseil, tech.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "departements": {
            "title": "Départements",
            "type": "array",
            "description": "Head-office département codes, e.g. 75, 69, 13, 2A, 971. Needs a location lookup per candidate (about 4.5 per second), limited by Max lookups.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Régions",
            "type": "array",
            "description": "Région names or INSEE codes, e.g. Île-de-France / 11, Bretagne / 53, Occitanie / 76.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "addLocation": {
            "title": "Add location",
            "type": "boolean",
            "description": "Add postal code, commune, département and région of the head office from the public API Recherche d'entreprises (one call per delivered record). Never the street line.",
            "default": true
          },
          "maxLookups": {
            "title": "Max location lookups",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on location lookups per run. With a département/région filter, the run stops when this is reached.",
            "default": 400
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum records per run (each record is one charged event). Newest creations first. October 2026 had about 27,000 new legal entities.",
            "default": 25
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate saved state per saved search in sinceLastRun 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}