{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Search – SIRENE Data, NAF, Directors & VAT",
    "description": "Search and export French companies from the official SIRENE/RNE register (api.gouv.fr): by name, SIREN/SIRET, NAF code, département, postal code, size, revenue. Get legal form, head office address, employees, revenue, directors, VAT number. $1.50 per 1,000 companies.",
    "version": "0.1",
    "x-build-id": "YiqNqB6OmXcYftsW6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~france-company-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-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/gazidev~france-company-search/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-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/gazidev~france-company-search/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-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": {
          "queries": {
            "title": "Search (company name, keyword, SIREN, address)",
            "type": "array",
            "description": "Free-text searches in the French company register: a company or brand name (`Doctolib`), an activity keyword (`boulangerie`, `agence web`), a director's name or a SIREN/SIRET. Combined with the filters below. Leave empty to list companies by filters only.",
            "items": {
              "type": "string"
            }
          },
          "sirenOrSiret": {
            "title": "SIREN / SIRET numbers (exact lookup)",
            "type": "array",
            "description": "Look up specific companies: 9-digit SIREN (`794598813`) or 14-digit SIRET (`79459881300033`), spaces allowed. Numbers are validated locally (Luhn); invalid or not-found numbers are free.",
            "items": {
              "type": "string"
            }
          },
          "bulkIds": {
            "title": "Bulk SIREN / SIRET list (paste)",
            "type": "string",
            "description": "Paste many SIREN/SIRET numbers separated by new lines, commas or spaces."
          },
          "nafCodes": {
            "title": "Activity (NAF/APE codes)",
            "type": "array",
            "description": "e.g. `62.01Z` (programmation informatique), `73.11Z` (agences de publicité), `56.10A` (restauration traditionnelle), `10.71C` (boulangerie). `6201Z` is accepted too.",
            "items": {
              "type": "string"
            }
          },
          "nafSections": {
            "title": "Activity sections (A–U)",
            "type": "array",
            "description": "Broad NAF sections, e.g. `J` (information & communication), `F` (construction), `I` (accommodation & food).",
            "items": {
              "type": "string"
            }
          },
          "departements": {
            "title": "Départements",
            "type": "array",
            "description": "Codes like `75` (Paris), `69` (Rhône), `13`, `2A`, `974`.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit codes, e.g. `75011`.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions (INSEE codes)",
            "type": "array",
            "description": "e.g. `11` Île-de-France, `84` Auvergne-Rhône-Alpes, `93` Provence-Alpes-Côte d'Azur, `75` Nouvelle-Aquitaine, `76` Occitanie, `32` Hauts-de-France, `44` Grand Est, `52` Pays de la Loire, `53` Bretagne.",
            "items": {
              "type": "string"
            }
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "`PME` (SME), `ETI` (mid-size), `GE` (large enterprise).",
            "items": {
              "type": "string"
            }
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Uses the INSEE head-count ranges (e.g. 10 → 10-19 and above)."
          },
          "minRevenue": {
            "title": "Minimum revenue (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Latest published turnover (chiffre d'affaires), when filed publicly."
          },
          "maxRevenue": {
            "title": "Maximum revenue (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Latest published turnover upper bound."
          },
          "legalFormCodes": {
            "title": "Legal forms (INSEE codes)",
            "type": "array",
            "description": "e.g. `5710` SAS, `5720` SASU, `5499` SARL, `5498` EURL, `5599` SA, `6540` SCI, `9220` association.",
            "items": {
              "type": "string"
            }
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Skip closed companies (état administratif = cessée).",
            "default": true
          },
          "excludeSoleTraders": {
            "title": "Exclude sole traders (EI / micro-entrepreneurs)",
            "type": "boolean",
            "description": "Useful for B2B lists: keep only companies (sociétés, associations…).",
            "default": false
          },
          "includeDirectors": {
            "title": "Include directors (dirigeants)",
            "type": "boolean",
            "description": "Officers from the RNE as published (name, role, birth month/year), plus auditors. Adds `mainDirector`.",
            "default": true
          },
          "includeMatchingEstablishments": {
            "title": "Include matching establishments (SIRET)",
            "type": "boolean",
            "description": "For each company, add the establishments (sites) that match your search/filters (up to 10), with SIRET and address.",
            "default": false
          },
          "maxResults": {
            "title": "Max companies",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many companies in total (0 = no limit).",
            "default": 100
          },
          "autoSplitByDepartement": {
            "title": "Go beyond 10,000 results",
            "type": "boolean",
            "description": "The API returns at most 10,000 companies per search. When a search has more, and no département/postal code filter is set, it is repeated per département automatically.",
            "default": true
          },
          "requestsPerSecond": {
            "title": "API requests per second",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "The public API allows 7 requests/second per IP; the default leaves headroom.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}