{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Search & SIREN Enrichment (Official Registry)",
    "description": "French company data from the official government registry API (INSEE SIRENE + RNE): search by name, NAF code, département, size or revenue, or enrich a list of SIREN/SIRET. Revenue, headcount band, VAT number, address, GPS and labels. Opt-outs from commercial use are respected.",
    "version": "1.0",
    "x-build-id": "haewR95DN7VZsIOjb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/diegolimafernandes~france-company-search-sirene/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-diegolimafernandes-france-company-search-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/diegolimafernandes~france-company-search-sirene/runs": {
      "post": {
        "operationId": "runs-sync-diegolimafernandes-france-company-search-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/diegolimafernandes~france-company-search-sirene/run-sync": {
      "post": {
        "operationId": "run-sync-diegolimafernandes-france-company-search-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": {
          "queries": {
            "title": "Search text",
            "type": "array",
            "description": "Company names or keywords (e.g. \"boulangerie\", \"Carrefour\"). Matches company name and address. Leave empty to search by filters only.",
            "items": {
              "type": "string"
            }
          },
          "sirens": {
            "title": "SIREN or SIRET numbers (enrichment)",
            "type": "array",
            "description": "Paste a list of SIREN (9 digits) or SIRET (14 digits) to get the full record of each company. Spaces are ignored. Lookups ignore the filters below.",
            "items": {
              "type": "string"
            }
          },
          "nafCodes": {
            "title": "Industry (NAF / APE codes)",
            "type": "array",
            "description": "French activity codes, e.g. 62.01Z (software), 10.71C (bakery), 56.10A (restaurants). The dot is optional.",
            "items": {
              "type": "string"
            }
          },
          "departements": {
            "title": "Départements",
            "type": "array",
            "description": "Two- or three-character codes: 75 (Paris), 69 (Rhône), 13, 2A, 971... Each département runs as its own search, which also lets you go past the 10,000 companies the registry serves per search.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Five-digit postal codes, e.g. 75002.",
            "items": {
              "type": "string"
            }
          },
          "headquartersOnly": {
            "title": "Only companies headquartered in the location",
            "type": "boolean",
            "description": "A location filter matches any company with an establishment there. Turn this on to keep only those whose head office is in the département or postal code.",
            "default": false
          },
          "sizeCategories": {
            "title": "Company size",
            "type": "array",
            "description": "Official INSEE categories. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME: small and medium (under 250 staff)",
                "ETI: mid-sized (250 to 4,999)",
                "GE: large (5,000+)"
              ]
            }
          },
          "employeeBands": {
            "title": "Headcount band",
            "type": "array",
            "description": "Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "No employees",
                "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+"
              ]
            }
          },
          "minRevenue": {
            "title": "Minimum revenue (EUR)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep companies whose latest published revenue is at least this. Companies that do not publish accounts are dropped."
          },
          "maxRevenue": {
            "title": "Maximum revenue (EUR)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep companies whose latest published revenue is at most this."
          },
          "labels": {
            "title": "Labels and certifications",
            "type": "array",
            "description": "Keep only companies holding all of the selected labels.",
            "items": {
              "type": "string",
              "enum": [
                "rge",
                "qualiopi",
                "bio",
                "ess",
                "association",
                "trainingOrganisation",
                "missionCompany",
                "livingHeritage",
                "publicAdministration"
              ],
              "enumTitles": [
                "RGE (certified energy-renovation contractor)",
                "Qualiopi (certified training provider)",
                "Organic (bio)",
                "Social economy (ESS)",
                "Association",
                "Training organisation",
                "Mission-driven company",
                "Living heritage company (EPV)",
                "Public administration"
              ]
            }
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Date as YYYY-MM-DD. The registry cannot sort by date, so the Actor scans the search and keeps the matches: combine with a NAF code and a département to keep runs short."
          },
          "createdBefore": {
            "title": "Created on or before",
            "type": "string",
            "description": "Date as YYYY-MM-DD."
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many companies across all searches. You are charged only for companies delivered.",
            "default": 100
          },
          "excludeOptedOut": {
            "title": "Leave out companies that opted out of commercial use",
            "type": "boolean",
            "description": "Many French companies have told INSEE they refuse commercial prospecting based on their registry data; such use is not allowed. Keep this on for lead lists. Turn it off only for non-prospecting uses (research, compliance, enrichment of existing customers). SIREN/SIRET lookups always return the company and flag it.",
            "default": true
          },
          "includeSoleProprietors": {
            "title": "Include sole proprietors (entrepreneurs individuels)",
            "type": "boolean",
            "description": "Sole proprietorships are registered under a person's own name. They are left out by default.",
            "default": false
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Turn off to include companies that have ceased activity.",
            "default": true
          },
          "includeDirectors": {
            "title": "Include directors",
            "type": "boolean",
            "description": "Adds the directors listed in the national business register (name and role; corporate directors with their SIREN). Birth dates are never included.",
            "default": false
          },
          "onlyNew": {
            "title": "Monitor mode: only companies not delivered before",
            "type": "boolean",
            "description": "Remembers what was already delivered under the monitor name and returns (and bills) only companies that are new to your search. Schedule it weekly to catch new entrants in a sector or area.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share one memory. Use a different name for each independent watch.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed in normal use. The registry limits requests per network; if a run reports repeated rate limiting, enabling Apify Proxy spreads the load.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}