{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Scraper - SIRENE, SIREN & VAT",
    "description": "Scrape French companies from the SIRENE register by name, NAF code, postcode or SIREN/SIRET: VAT number, activity, headcount, revenue, head office address. 🏢",
    "version": "1.0",
    "x-build-id": "cVzxitgAWsnEwyd5Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~french-company-scraper-sirene/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-french-company-scraper-sirene",
        "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/helenisapi~french-company-scraper-sirene/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-french-company-scraper-sirene",
        "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/helenisapi~french-company-scraper-sirene/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-french-company-scraper-sirene",
        "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": {
          "query": {
            "title": "Company name or keywords",
            "type": "string",
            "description": "Company name, brand or address words to search the French SIRENE register for, e.g. \"doctolib\" or \"boulangerie\" (3 characters minimum when no filter is set). A search needs query and/or at least one filter (naf, section, postalCode, department, region, category, minEmployees, minRevenue, legalForm); without a search, give ids. Leave empty to search by filters only."
          },
          "naf": {
            "title": "NAF / APE codes",
            "type": "array",
            "description": "Search filter: NAF/APE activity codes, one per item, e.g. [\"62.01Z\", \"56.10A\"] (62.01Z = computer programming, 56.10A = restaurants). A company matches any of them. Leave empty for every activity.",
            "items": {
              "type": "string"
            }
          },
          "section": {
            "title": "Sector (NAF section)",
            "type": "string",
            "description": "Search filter: NAF section, one letter A-U, e.g. \"J\" (Information and communication) or \"F\" (Construction); several comma-separated, e.g. \"J,M\". Leave empty for every sector."
          },
          "postalCode": {
            "title": "Postcodes",
            "type": "array",
            "description": "Search filter: 5-digit French postcodes, one per item, e.g. [\"75011\", \"69003\"]. Matches companies with any establishment there. Leave empty for all of France.",
            "items": {
              "type": "string"
            }
          },
          "department": {
            "title": "Departments",
            "type": "array",
            "description": "Search filter: French department codes, one per item, e.g. [\"69\", \"2A\", \"971\"]. Matches companies with any establishment there. Leave empty for all departments.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Regions (INSEE codes)",
            "type": "array",
            "description": "Search filter: INSEE region codes, one per item, e.g. [\"11\", \"84\"] (11 = Île-de-France, 84 = Auvergne-Rhône-Alpes). Matches companies with any establishment there. Leave empty for all regions.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Company size category",
            "type": "array",
            "description": "Search filter: INSEE size categories to keep: SME (PME, small and medium-sized companies), ETI (mid-size companies) or Large (grandes entreprises). Several allowed. Leave empty for every size.",
            "items": {
              "type": "string",
              "enum": [
                "SME",
                "ETI",
                "Large"
              ]
            }
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter: minimum headcount, an integer from 0, e.g. 50 keeps companies whose INSEE headcount band starts at 50 employees or more. Leave empty for no minimum."
          },
          "minRevenue": {
            "title": "Minimum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter: minimum last published revenue in euros, an integer from 0, e.g. 1000000 for 1 million EUR or more. Leave empty for no minimum."
          },
          "legalForm": {
            "title": "Legal form codes",
            "type": "array",
            "description": "Search filter: 4-digit INSEE legal form codes, one per item, e.g. [\"5710\", \"5499\"] (5710 = SAS, 5499 = SARL). Leave empty for every legal form.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "active",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Which companies the search returns: active (default) = still trading, closed = ceased trading, all = both. Applies to the search only, not to ids.",
            "default": "active"
          },
          "maxResults": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of companies the search returns, 1-10000 (default 100); each company is one row and one charged event. The ids list is looked up on top of it. On the Apify free plan, a run returns 50 companies at most.",
            "default": 100
          },
          "ids": {
            "title": "SIREN or SIRET numbers",
            "type": "array",
            "description": "French company numbers to look up, one per item: 9-digit SIREN or 14-digit SIRET, spaces allowed, e.g. [\"794598813\", \"552 081 317\"]. Required unless a search is set (query or a filter); both can be combined. Each number returns the full company record (VAT number, NAF activity, headcount, revenue, head office); a wrong number returns an error row (not charged).",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}