{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Search (SIRENE)",
    "description": "Search the official French company register by name, SIREN, activity code, place, size, legal form, revenue or director. One row per company with address, GPS, NAF code, headcount, VAT number, directors, revenue and net income.",
    "version": "0.1",
    "x-build-id": "SkAlVvsebJHBoaNoF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeworks~france-company-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeworks-france-company-search",
        "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/scrapeworks~france-company-search/runs": {
      "post": {
        "operationId": "runs-sync-scrapeworks-france-company-search",
        "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/scrapeworks~france-company-search/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeworks-france-company-search",
        "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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Company names, brand names, director names, or SIREN (9 digits) and SIRET (14 digits) numbers. Each term is its own search. Leave this empty to list every company that matches the filters below.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops after this many companies in total, across all search terms. You pay per company returned.",
            "default": 100
          },
          "status": {
            "title": "Company status",
            "enum": [
              "active",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Active companies only, closed ones only, or both.",
            "default": "active"
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department numbers, for example 75 (Paris), 69 (Rhône), 13 (Bouches-du-Rhône), 2A (Corse-du-Sud), 974 (La Réunion). A company matches when any of its establishments is in one of them.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Five-digit postal codes, for example 75011 or 69002. A company matches when any of its establishments has one of them.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "A company matches when any of its establishments is in one of these regions.",
            "items": {
              "type": "string",
              "enum": [
                "11",
                "24",
                "27",
                "28",
                "32",
                "44",
                "52",
                "53",
                "75",
                "76",
                "84",
                "93",
                "94",
                "01",
                "02",
                "03",
                "04",
                "06"
              ],
              "enumTitles": [
                "Île-de-France",
                "Centre-Val de Loire",
                "Bourgogne-Franche-Comté",
                "Normandie",
                "Hauts-de-France",
                "Grand Est",
                "Pays de la Loire",
                "Bretagne",
                "Nouvelle-Aquitaine",
                "Occitanie",
                "Auvergne-Rhône-Alpes",
                "Provence-Alpes-Côte d'Azur",
                "Corse",
                "Guadeloupe",
                "Martinique",
                "Guyane",
                "La Réunion",
                "Mayotte"
              ]
            }
          },
          "nafCodes": {
            "title": "Activity codes (NAF / APE)",
            "type": "array",
            "description": "Main activity codes, with or without the dot, for example 56.10A (restaurants), 10.71C (bakeries), 62.01Z (software development), 43.22A (plumbing), 68.31Z (real estate agencies).",
            "items": {
              "type": "string"
            }
          },
          "nafSections": {
            "title": "Activity sections",
            "type": "array",
            "description": "Broad sectors. Use activity codes above for anything narrower.",
            "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"
              ],
              "enumTitles": [
                "A: Agriculture, forestry and fishing",
                "B: Mining and quarrying",
                "C: Manufacturing",
                "D: Electricity and gas supply",
                "E: Water, sewerage and waste",
                "F: Construction",
                "G: Wholesale and retail trade, car repair",
                "H: Transport and storage",
                "I: Hotels and restaurants",
                "J: Information and communication",
                "K: Finance and insurance",
                "L: Real estate",
                "M: Professional, scientific and technical",
                "N: Administrative and support services",
                "O: Public administration",
                "P: Education",
                "Q: Health and social work",
                "R: Arts, entertainment and recreation",
                "S: Other services",
                "T: Households as employers",
                "U: Extraterritorial organisations"
              ]
            }
          },
          "employeeBands": {
            "title": "Number of employees",
            "type": "array",
            "description": "Headcount bands as reported to INSEE. Many small companies have no band on record.",
            "items": {
              "type": "string",
              "enum": [
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "0",
                "1-2",
                "3-5",
                "6-9",
                "10-19",
                "20-49",
                "50-99",
                "100-199",
                "200-249",
                "250-499",
                "500-999",
                "1,000-1,999",
                "2,000-4,999",
                "5,000-9,999",
                "10,000 or more"
              ]
            }
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "INSEE size category: small and medium (PME), intermediate (ETI) or large (GE).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME: small and medium",
                "ETI: intermediate",
                "GE: large"
              ]
            }
          },
          "legalFormCodes": {
            "title": "Legal forms",
            "type": "array",
            "description": "Pick one or more legal forms.",
            "items": {
              "type": "string",
              "enum": [
                "5710",
                "5720",
                "5499",
                "5498",
                "1000",
                "6540",
                "5599",
                "5699",
                "5202",
                "5485",
                "5785",
                "6599",
                "9220",
                "9300",
                "6220",
                "6533",
                "6598",
                "5800",
                "5306",
                "5308",
                "5458"
              ],
              "enumTitles": [
                "SAS",
                "SASU",
                "SARL",
                "EURL (single-member SARL)",
                "Sole trader (entrepreneur individuel)",
                "SCI (property company)",
                "SA with board of directors",
                "SA with management board",
                "SNC",
                "SELARL",
                "SELAS",
                "Other civil company",
                "Association (loi 1901)",
                "Foundation",
                "GIE",
                "GAEC",
                "EARL",
                "European company (SE)",
                "Limited partnership (SCS)",
                "Partnership limited by shares (SCA)",
                "SCOP (SARL)"
              ]
            }
          },
          "minRevenue": {
            "title": "Minimum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies whose latest published revenue is at least this much. Most small companies do not publish accounts, so this filter leaves them out."
          },
          "maxRevenue": {
            "title": "Maximum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies whose latest published revenue is at most this much."
          },
          "minNetIncome": {
            "title": "Minimum net income (EUR)",
            "type": "integer",
            "description": "Only companies whose latest published net income is at least this much. Can be negative."
          },
          "maxNetIncome": {
            "title": "Maximum net income (EUR)",
            "type": "integer",
            "description": "Only companies whose latest published net income is at most this much. Can be negative."
          },
          "directorLastName": {
            "title": "Director last name",
            "type": "string",
            "description": "Companies with a director (or sole trader) of this last name."
          },
          "directorFirstName": {
            "title": "Director first name",
            "type": "string",
            "description": "Use together with the last name to narrow it down."
          },
          "onlyWith": {
            "title": "Labels and types",
            "type": "array",
            "description": "Only companies that have all of the picked labels.",
            "items": {
              "type": "string",
              "enum": [
                "est_rge",
                "est_qualiopi",
                "est_bio",
                "est_ess",
                "est_societe_mission",
                "est_association",
                "est_entrepreneur_individuel",
                "est_organisme_formation",
                "est_siae",
                "est_finess",
                "est_uai",
                "est_service_public",
                "egapro_renseignee"
              ],
              "enumTitles": [
                "RGE certified (energy renovation)",
                "Qualiopi certified (training)",
                "Organic (Agence Bio)",
                "Social and solidarity economy (ESS)",
                "Mission-driven company",
                "Association",
                "Sole trader",
                "Registered training provider",
                "Work integration company (SIAE)",
                "Health or social care establishment (FINESS)",
                "School or university (UAI)",
                "Public service",
                "Published gender pay index (Egapro)"
              ]
            }
          },
          "includeEstablishments": {
            "title": "Include matching establishments",
            "type": "boolean",
            "description": "Adds up to 10 establishments (sites) per company that match your search, with address, SIRET, activity and GPS. Useful with place filters, because a company matches when any of its sites is in the place you picked.",
            "default": false
          },
          "excludeOptedOut": {
            "title": "Leave out companies that refuse marketing use",
            "type": "boolean",
            "description": "Some companies, mostly sole traders, have asked INSEE that their data not be used for marketing. Turn this on to drop them. Either way, every row has the field optedOutOfMarketing.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed. The register is a free public government service. Only turn on a proxy if your runs get blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}