{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Leads: SIREN, Directors, Revenue",
    "description": "Build French B2B lead lists from the official company directory (SIRENE + RNE). SIREN, SIRET, VAT, NAF activity, size, address, revenue and directors; filter by NAF, department, size, revenue or label. Opt-outs excluded. Excel and CSV.",
    "version": "0.1",
    "x-build-id": "iQCVzpB7Lp0F7gdW1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pandadad0214~france-company-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pandadad0214-france-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/pandadad0214~france-company-leads/runs": {
      "post": {
        "operationId": "runs-sync-pandadad0214-france-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/pandadad0214~france-company-leads/run-sync": {
      "post": {
        "operationId": "run-sync-pandadad0214-france-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": {
          "query": {
            "title": "Search text",
            "type": "string",
            "description": "Optional free text: company name, brand, address words or a director name, e.g. boulangerie, transport, Dupont. Leave empty to list by filters only."
          },
          "nafCodes": {
            "title": "NAF / APE activity codes",
            "type": "array",
            "description": "French activity codes, e.g. 62.01Z (software), 43.22B (plumbing/HVAC), 56.10A (restaurants), 69.20Z (accountants), 41.20A (house building). Dots optional.",
            "items": {
              "type": "string"
            }
          },
          "sectors": {
            "title": "Sectors (NAF sections)",
            "type": "array",
            "description": "Broad sector letters. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G",
                "H",
                "I",
                "J",
                "K",
                "L",
                "M",
                "N",
                "O",
                "P",
                "Q",
                "R",
                "S",
                "T",
                "U"
              ],
              "enumTitles": [
                "A - Agriculture, sylviculture et pêche",
                "B - Industries extractives",
                "C - Industrie manufacturière",
                "D - Production et distribution d'électricité, de gaz, de vapeur et d'air conditionné",
                "E - Production et distribution d'eau ; assainissement, gestion des déchets et dépollution",
                "F - Construction",
                "G - Commerce; réparation d'automobiles et de motocycles",
                "H - Transports et entreposage",
                "I - Hébergement et restauration",
                "J - Information et communication",
                "K - Activités financières et d'assurance",
                "L - Activités immobilières",
                "M - Activités spécialisées, scientifiques et techniques",
                "N - Activités de services administratifs et de soutien",
                "O - Administration publique",
                "P - Enseignement",
                "Q - Santé humaine et action sociale",
                "R - Arts, spectacles et activités récréatives",
                "S - Autres activités de services",
                "T - Activités des ménages en tant qu'employeurs ; activités indifférenciées des ménages en tant que producteurs de biens et services pour usage propre",
                "U - Activités extra-territoriales"
              ]
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes, e.g. 75 (Paris), 69 (Rhône/Lyon), 13 (Bouches-du-Rhône/Marseille), 33 (Gironde/Bordeaux), 2A. Matches any establishment in the department.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit postal codes, e.g. 75011, 31000.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "INSEE region codes, e.g. 11 (Ile-de-France), 84 (Auvergne-Rhône-Alpes), 93 (Provence-Alpes-Côte d'Azur), 75 (Nouvelle-Aquitaine).",
            "items": {
              "type": "string"
            }
          },
          "headcountBands": {
            "title": "Employee bands",
            "type": "array",
            "description": "INSEE headcount bands. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "NN: no employees",
                "00: 0 employees",
                "01: 1-2",
                "02: 3-5",
                "03: 6-9",
                "11: 10-19",
                "12: 20-49",
                "21: 50-99",
                "22: 100-199",
                "31: 200-249",
                "32: 250-499",
                "41: 500-999",
                "42: 1,000-1,999",
                "51: 2,000-4,999",
                "52: 5,000-9,999",
                "53: 10,000+"
              ]
            }
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "PME (SME), ETI (mid-size), GE (large).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME - small/medium",
                "ETI - mid-size",
                "GE - large"
              ]
            }
          },
          "legalForms": {
            "title": "Legal form codes",
            "type": "array",
            "description": "INSEE nature juridique codes, e.g. 5710 (SAS), 5720 (SASU), 5499 (SARL), 5498 (EURL), 5599 (SA), 6540 (SCI), 9220 (association).",
            "items": {
              "type": "string"
            }
          },
          "revenueMin": {
            "title": "Minimum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies that published accounts with at least this turnover."
          },
          "revenueMax": {
            "title": "Maximum revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper turnover bound."
          },
          "netIncomeMin": {
            "title": "Minimum net income (EUR)",
            "type": "integer",
            "description": "Only companies with at least this published net result."
          },
          "labels": {
            "title": "Official labels",
            "type": "array",
            "description": "Keep companies holding any of these labels.",
            "items": {
              "type": "string",
              "enum": [
                "est_rge",
                "est_bio",
                "est_qualiopi",
                "est_organisme_formation",
                "est_ess",
                "est_societe_mission",
                "est_entrepreneur_spectacle",
                "est_patrimoine_vivant",
                "est_siae",
                "est_finess",
                "est_achats_responsables",
                "egapro_renseignee"
              ],
              "enumTitles": [
                "RGE (energy renovation)",
                "Organic (Agence Bio)",
                "Qualiopi (training)",
                "Training organisation",
                "Social economy (ESS)",
                "Société à mission",
                "Live-show licence",
                "EPV (living heritage)",
                "SIAE (inclusion)",
                "Health/social (FINESS)",
                "RFAR label",
                "Egapro index filed"
              ]
            }
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Optional YYYY-MM-DD post-filter on company creation date (checked over up to 10,000 matches; combine with narrow filters)."
          },
          "createdBefore": {
            "title": "Created on or before",
            "type": "string",
            "description": "Optional YYYY-MM-DD post-filter."
          },
          "requireDirector": {
            "title": "Only with a named director",
            "type": "boolean",
            "description": "Keep companies that list at least one director (gérant, président...).",
            "default": false
          },
          "requireFinancials": {
            "title": "Only with published revenue",
            "type": "boolean",
            "description": "Keep companies whose latest accounts show a revenue figure.",
            "default": false
          },
          "onlyActive": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Default on (etat administratif A).",
            "default": true
          },
          "includeSoleTraders": {
            "title": "Include sole traders (entrepreneurs individuels)",
            "type": "boolean",
            "description": "Default off: sole traders are people; most B2B lists skip them.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "You pay per company returned, so this also caps the cost. Default 200; the source allows 10,000 matches per query.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}