{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Leads – SIRENE B2B Lists (No Personal Data)",
    "description": "Build B2B lead lists of French companies (SIRENE) filtered by NAF code, department, size and legal form. Companies only: sole traders excluded by default, no director names. Flat CSV-ready rows with SIREN, SIRET, address, revenue, VAT number.",
    "version": "0.1",
    "x-build-id": "ZJod7kjivjOsfA5I8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tiaggaws~french-company-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tiaggaws-french-company-leads",
        "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/tiaggaws~french-company-leads/runs": {
      "post": {
        "operationId": "runs-sync-tiaggaws-french-company-leads",
        "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/tiaggaws~french-company-leads/run-sync": {
      "post": {
        "operationId": "run-sync-tiaggaws-french-company-leads",
        "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": {
          "nafCodes": {
            "title": "NAF codes",
            "type": "array",
            "description": "Enter NAF/APE activity codes such as 62.01Z, or a section letter A-U such as F (construction) for a whole sector. Codes and letters are searched separately, then merged.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Enter French department codes such as 69, 75, 2A or 971. One search runs per department, which keeps each search under the API limit of 10,000 results.",
            "items": {
              "type": "string"
            }
          },
          "employeeRanges": {
            "title": "Employee ranges",
            "type": "array",
            "description": "Select employee ranges (INSEE bands, whole company). Leave empty for all sizes, including companies with no employees.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1-2",
                "3-5",
                "6-9",
                "10-19",
                "20-49",
                "50-99",
                "100-199",
                "200-249",
                "250-499",
                "500-999",
                "1000-1999",
                "2000-4999",
                "5000-9999",
                "10000+"
              ],
              "enumTitles": [
                "0 employees (had employees during the year)",
                "1-2 employees",
                "3-5 employees",
                "6-9 employees",
                "10-19 employees",
                "20-49 employees",
                "50-99 employees",
                "100-199 employees",
                "200-249 employees",
                "250-499 employees",
                "500-999 employees",
                "1,000-1,999 employees",
                "2,000-4,999 employees",
                "5,000-9,999 employees",
                "10,000+ employees"
              ]
            }
          },
          "maxResults": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Set the maximum number of companies to deliver. You are billed per company delivered, and the run stops cleanly when your budget limit is reached.",
            "default": 1000
          },
          "query": {
            "title": "Text query",
            "type": "string",
            "description": "Enter free text to search company names and addresses. Optional when another filter is set."
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Enter 5-digit postal codes such as 69003. One search runs per postal code when no department is set.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Select INSEE regions. One search runs per region when no department or postal code is set.",
            "items": {
              "type": "string",
              "enum": [
                "84",
                "27",
                "53",
                "24",
                "94",
                "44",
                "32",
                "11",
                "28",
                "75",
                "76",
                "52",
                "93",
                "01",
                "02",
                "03",
                "04",
                "06"
              ],
              "enumTitles": [
                "Auvergne-Rhône-Alpes",
                "Bourgogne-Franche-Comté",
                "Bretagne",
                "Centre-Val de Loire",
                "Corse",
                "Grand Est",
                "Hauts-de-France",
                "Île-de-France",
                "Normandie",
                "Nouvelle-Aquitaine",
                "Occitanie",
                "Pays de la Loire",
                "Provence-Alpes-Côte d'Azur",
                "Guadeloupe",
                "Martinique",
                "Guyane",
                "La Réunion",
                "Mayotte"
              ]
            }
          },
          "categories": {
            "title": "Company categories",
            "type": "array",
            "description": "Select company size categories: PME (small and medium), ETI (mid-cap) or GE (large). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME (small and medium)",
                "ETI (mid-cap)",
                "GE (large)"
              ]
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Select legal forms. SAS includes SASU and SARL includes EURL, because INSEE has no separate legal code for them. Leave empty for all forms.",
            "items": {
              "type": "string",
              "enum": [
                "SAS",
                "SARL",
                "SA",
                "SCI",
                "Association"
              ],
              "enumTitles": [
                "SAS (including SASU)",
                "SARL (including EURL)",
                "SA (public limited company)",
                "SCI (real-estate company)",
                "Association"
              ]
            }
          },
          "certifications": {
            "title": "Certifications",
            "type": "array",
            "description": "Select certifications. A company must hold all the selected ones: RGE (environment), Qualiopi (training) or ESS (social and solidarity economy).",
            "items": {
              "type": "string",
              "enum": [
                "RGE",
                "Qualiopi",
                "ESS"
              ],
              "enumTitles": [
                "RGE (environmental guarantor)",
                "Qualiopi (training quality)",
                "ESS (social and solidarity economy)"
              ]
            }
          },
          "minRevenueEur": {
            "title": "Minimum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies whose latest published revenue is at least this amount. Companies without published accounts are left out."
          },
          "excludeSoleTraders": {
            "title": "Exclude sole traders",
            "type": "boolean",
            "description": "Exclude sole traders (entrepreneurs individuels): their name is personal data.",
            "default": true
          },
          "onlyActive": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "Exclude companies that have ceased activity.",
            "default": true
          },
          "headOfficeOnly": {
            "title": "Head office in the area",
            "type": "boolean",
            "description": "Keep only companies whose head office is in the selected departments, postal codes or regions. Turn off to also include companies that only have a branch there: address columns still show the head office.",
            "default": true
          },
          "newSinceLastRun": {
            "title": "Only new companies",
            "type": "boolean",
            "description": "Use for scheduled runs: return only companies never delivered in previous runs with the same filters.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}