{
  "openapi": "3.0.1",
  "info": {
    "title": "France SIRENE Company Scraper - French SIREN, SIRET & VAT",
    "description": "Search 26M+ French companies in France's official INSEE SIRENE & RNE company registry (Annuaire des Entreprises / Pappers alternative). Extract SIREN, SIRET, EU VAT (VIES), NAF code, revenue, net income & RGE/Qualiopi badges to CSV, JSON, Excel or API.",
    "version": "0.1",
    "x-build-id": "ZmvRdDYamgjW5SmFw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/angaba92~france-sirene-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-angaba92-france-sirene-company-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/angaba92~france-sirene-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-angaba92-france-sirene-company-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/angaba92~france-sirene-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-angaba92-france-sirene-company-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": {
          "queries": {
            "title": "Company Names, SIREN (9 digits) or SIRET (14 digits)",
            "type": "array",
            "description": "Optional list of company names, brand names, 9-digit SIREN numbers, or 14-digit SIRET numbers to look up. Leave omitted to search by NAF/departement/financial filters.",
            "items": {
              "type": "string"
            }
          },
          "nafCodes": {
            "title": "NAF / APE Activity Codes",
            "type": "array",
            "description": "Optional French NAF/APE activity codes (e.g. ['62.01Z'] for software programming, ['70.22Z'] for business consulting, ['43.22B'] for HVAC/energy installation).",
            "items": {
              "type": "string"
            }
          },
          "departements": {
            "title": "French Departements",
            "type": "array",
            "description": "Optional 2- or 3-character French departement codes (e.g. ['75', '92', '69', '33', '13']).",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal Codes",
            "type": "array",
            "description": "Optional 5-digit French postal codes (e.g. ['75008', '92300']).",
            "items": {
              "type": "string"
            }
          },
          "companyCategories": {
            "title": "Company Size Categories (PME / ETI / GE)",
            "type": "array",
            "description": "Optional INSEE enterprise size tiers: 'PME' (SME), 'ETI' (mid-market), 'GE' (large enterprise).",
            "items": {
              "type": "string"
            }
          },
          "minRevenueEur": {
            "title": "Minimum Annual Revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum official annual turnover (chiffre d'affaires) in EUR.",
            "default": 0
          },
          "activeOnly": {
            "title": "Active Companies Only",
            "type": "boolean",
            "description": "Return only active legal entities (etat_administratif = 'A').",
            "default": true
          },
          "onlyRge": {
            "title": "Only RGE Certified (Green / Renovation)",
            "type": "boolean",
            "description": "Filter to companies holding active RGE (Reconnu Garant de l'Environnement) certification.",
            "default": false
          },
          "onlyQualiopi": {
            "title": "Only Qualiopi Certified (Training Providers)",
            "type": "boolean",
            "description": "Filter to certified French training organizations (est_qualiopi = true).",
            "default": false
          },
          "excludeSoleProprietors": {
            "title": "Corporate Entities Only (Exclude Sole Proprietors)",
            "type": "boolean",
            "description": "GDPR-friendly default: skips individual sole proprietorships (entrepreneur individuel) and entities opposing commercial diffusion.",
            "default": true
          },
          "includeExecutives": {
            "title": "Include Corporate Officers (KYB Mode)",
            "type": "boolean",
            "description": "Include RNE registered officers/directors (birth dates are always redacted; restricted-diffusion entities are always excluded).",
            "default": false
          },
          "validateVatVies": {
            "title": "Live EU VIES VAT Validation",
            "type": "boolean",
            "description": "Verify each computed French EU VAT number (FRxx999999999) live against the European Commission VIES API.",
            "default": false
          },
          "maxResults": {
            "title": "Max Companies",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of verified French company records to output and charge.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}