{
  "openapi": "3.0.1",
  "info": {
    "title": "SIRENE Scraper: French Companies by NAF, SIREN and Postcode",
    "description": "French companies from the official SIRENE register: SIREN, head office SIRET, name, legal form, NAF code and label, address, creation date, employee band, revenue, officers, establishments, status and VAT. Search by name, NAF, postcode, departement, legal form or size. No login.",
    "version": "0.1",
    "x-build-id": "aLL88wyiNTg8q0ed9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~sirene-companies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-sirene-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/themineworks~sirene-companies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-sirene-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/themineworks~sirene-companies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-sirene-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": {
          "searchQueries": {
            "title": "Company names or keywords",
            "type": "array",
            "description": "One search per line, matched against company names, trade names, addresses and officers, as on annuaire-entreprises.data.gouv.fr. Example: boulangerie, Michelin, cabinet comptable. Every filter below applies to each line. Leave empty to list by filters only. Up to 200 lines.",
            "items": {
              "type": "string"
            }
          },
          "companyIds": {
            "title": "SIREN, SIRET or VAT numbers to look up",
            "type": "array",
            "description": "One per line, for one full row each: SIREN (9 digits), SIRET (14 digits, the row then names that establishment in matched_siret), French VAT number (FR + 11 digits) or an annuaire-entreprises or Pappers company link. Spaces are fine. Up to 10,000. Filters do not apply to lookups.",
            "items": {
              "type": "string"
            }
          },
          "activityCodes": {
            "title": "Activity codes (NAF / APE)",
            "type": "array",
            "description": "Main activity of the company, NAF rev. 2: 62.01Z or 6201Z (software), 56.10A (restaurants), 69.20Z (accountants), or a section letter such as J (information and communication). Several lines are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "5 digit postcodes such as 75011 or 69002. A company matches when any of its establishments is there; matching_establishments lists those sites. Several lines are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "departements": {
            "title": "Departements",
            "type": "array",
            "description": "Departement codes or names: 75, 69, 13, 2A, 974, or Gironde. Matches any establishment of the company. Several lines are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Region codes or names: 11 or Île-de-France, 84 or Auvergne-Rhône-Alpes, 53 or Bretagne. Matches any establishment of the company.",
            "items": {
              "type": "string"
            }
          },
          "headOfficeInArea": {
            "title": "Head office in these places only",
            "type": "boolean",
            "description": "On: with a postcode, departement or region filter, only companies whose head office is there are returned. Off: a company also matches through any branch there (the register's own rule), and matching_establishments shows which.",
            "default": true
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Short names or INSEE codes: SAS (also SASU), SARL (also EURL), SA, SCI, SNC, SELARL, SELAS, SCOP, SC, GIE, EI (sole trader), Association, or a 4 digit code like 5710 or a 2 digit group like 54. Several lines are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "employeeBands": {
            "title": "Employee bands",
            "type": "array",
            "description": "Headcount band INSEE gives the company (salaried staff). Pick one or more.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "No employees (non employer)",
                "0 employees at year end",
                "1 to 2",
                "3 to 5",
                "6 to 9",
                "10 to 19",
                "20 to 49",
                "50 to 99",
                "100 to 199",
                "200 to 249",
                "250 to 499",
                "500 to 999",
                "1,000 to 1,999",
                "2,000 to 4,999",
                "5,000 to 9,999",
                "10,000 or more"
              ]
            }
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "INSEE category: PME (small and medium), ETI (mid caps), GE (large companies).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME (small and medium)",
                "ETI (mid cap)",
                "GE (large company)"
              ]
            }
          },
          "certifications": {
            "title": "Labels and certifications",
            "type": "array",
            "description": "Only companies that carry every label you pick.",
            "items": {
              "type": "string",
              "enum": [
                "rge",
                "qualiopi",
                "bio",
                "ess",
                "association",
                "training",
                "mission",
                "entertainment",
                "siae",
                "epv",
                "finess",
                "rfar"
              ],
              "enumTitles": [
                "RGE (energy renovation)",
                "Qualiopi (training quality)",
                "Agence Bio (organic)",
                "ESS (social economy)",
                "Association",
                "Training organisation",
                "Société à mission",
                "Entertainment licence",
                "SIAE (work integration)",
                "EPV (living heritage)",
                "FINESS (health and social care)",
                "RFAR (responsible purchasing)"
              ]
            }
          },
          "minRevenue": {
            "title": "Revenue at least (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Last published revenue (chiffre d'affaires) in euros. Only companies that publish their accounts have one."
          },
          "maxRevenue": {
            "title": "Revenue at most (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Last published revenue in euros."
          },
          "onlyActive": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "On: ceased companies are left out of searches. Lookups by number always return the company whatever its status.",
            "default": true
          },
          "excludeSoleTraders": {
            "title": "Leave out sole traders",
            "type": "boolean",
            "description": "On: entrepreneurs individuels (micro entrepreneurs) are left out, so the list holds companies, associations and public bodies only.",
            "default": false
          },
          "maxItems": {
            "title": "Max companies per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most companies to return for each search line (or for the filters alone), 1 to 100,000. Above 10,000 the search is split into slices automatically. Example: 500.",
            "default": 100
          },
          "includeDirectors": {
            "title": "Include officers",
            "type": "boolean",
            "description": "Officers as the register publishes them: name, role (Président, Gérant, Commissaire aux comptes) and, for a company officer, its SIREN. Birth dates are never copied. Same price either way.",
            "default": true
          },
          "includeEstablishments": {
            "title": "Include matching establishments",
            "type": "boolean",
            "description": "The company's establishments (SIRET) that match your search or location filter, with address and activity code. Same price either way.",
            "default": true
          },
          "maxEstablishmentsPerCompany": {
            "title": "Max matching establishments per company",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many matching establishments to list on each row, 1 to 100.",
            "default": 3
          },
          "sortBySize": {
            "title": "Largest companies first",
            "type": "boolean",
            "description": "On: results are ordered by the number of establishments instead of by relevance.",
            "default": false
          },
          "splitLargeSearches": {
            "title": "Go past the 10,000 limit",
            "type": "boolean",
            "description": "The register API stops at 10,000 results per search. On: a larger search is split by departement, employee band and NAF section so every company can be read, up to Max companies per search.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}