{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Registry Scraper - SIRENE, Directors & Revenue",
    "description": "Scrape 10M+ French companies from the official Annuaire des Entreprises / INSEE SIRENE registry: SIREN, SIRET, VAT (TVA), CEO/directors (dirigeants), annual revenue (CA), net income, NAF codes, headcount & HQ addresses. Fast HTTP, zero proxies.",
    "version": "1.0",
    "x-build-id": "VsaXdC3ifyLdD8WT7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hoanle0126~france-sirene-pappers-company-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hoanle0126-france-sirene-pappers-company-registry-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/hoanle0126~france-sirene-pappers-company-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hoanle0126-france-sirene-pappers-company-registry-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/hoanle0126~france-sirene-pappers-company-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hoanle0126-france-sirene-pappers-company-registry-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, Keywords, SIREN (9-digit) or SIRET (14-digit)",
            "type": "array",
            "description": "Search keywords, brand/company names, 9-digit SIREN numbers (e.g., '849239587'), or 14-digit SIRET numbers. Leave empty when searching purely by NAF code, department, region, or category filters.",
            "default": [
              "software"
            ],
            "items": {
              "type": "string"
            }
          },
          "nafCode": {
            "title": "NAF / APE Activity Code(s) (Optional)",
            "type": "string",
            "description": "Filter by official French NAF/APE industry code(s), comma-separated (e.g., '62.01Z' for Software Programming, '70.22Z' for Management Consulting, '56.10A' for Restaurants).",
            "default": ""
          },
          "department": {
            "title": "Department Code(s) (Optional)",
            "type": "string",
            "description": "Filter by French department code(s), comma-separated (e.g., '75' for Paris, '92' for Hauts-de-Seine, '69' for Lyon/Rhone, '13' for Marseille, '33' for Bordeaux).",
            "default": ""
          },
          "region": {
            "title": "INSEE Region Code(s) (Optional)",
            "type": "string",
            "description": "Filter by French INSEE region code(s), comma-separated (e.g., '11' for Ile-de-France, '84' for Auvergne-Rhone-Alpes, '93' for PACA).",
            "default": ""
          },
          "postalCode": {
            "title": "Postal Code(s) (Optional)",
            "type": "string",
            "description": "Filter by 5-digit French postal code(s), comma-separated (e.g., '75008,75009').",
            "default": ""
          },
          "companyCategory": {
            "title": "Company Size Category",
            "enum": [
              "",
              "PME",
              "ETI",
              "GE"
            ],
            "type": "string",
            "description": "Filter by official INSEE company size category: PME (SME), ETI (Mid-Cap), GE (Large Enterprise), or ALL.",
            "default": ""
          },
          "activeOnly": {
            "title": "Active Companies Only (Etat Administratif = A)",
            "type": "boolean",
            "description": "When enabled, excludes dissolved/closed French legal entities.",
            "default": true
          },
          "minRevenueEur": {
            "title": "Minimum Latest Annual Revenue (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum reported annual revenue (chiffre d'affaires in EUR) filter (e.g., 500000 or 1000000).",
            "default": 0
          },
          "withDirectorsOnly": {
            "title": "Require Named Directors (Dirigeants)",
            "type": "boolean",
            "description": "Only output companies that have at least one published director/officer (dirigeant).",
            "default": false
          },
          "maxCompaniesPerQuery": {
            "title": "Max Companies per Query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum French companies to extract per query (1 to 500).",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}