{
  "openapi": "3.0.1",
  "info": {
    "title": "French & EU Company 360° Enricher (SIREN, Peppol & VAT)",
    "description": "All-in-one French & European KYB and B2B Lead Enricher: combine INSEE/INPI SIREN, directors/CEOs, latest revenue, RGE/Qualiopi labels, Peppol e-invoicing readiness, EU VIES VAT check, BODACC insolvency alerts, BOAMP public tenders, and website email crawling.",
    "version": "1.0",
    "x-build-id": "QlW9YYSMvAPzoReut"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yzdraall~eu-france-company-360-enricher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yzdraall-eu-france-company-360-enricher",
        "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/yzdraall~eu-france-company-360-enricher/runs": {
      "post": {
        "operationId": "runs-sync-yzdraall-eu-france-company-360-enricher",
        "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/yzdraall~eu-france-company-360-enricher/run-sync": {
      "post": {
        "operationId": "run-sync-yzdraall-eu-france-company-360-enricher",
        "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, SIREN, SIRET, or EU VAT Numbers",
            "type": "array",
            "description": "List of French company names, 9-digit SIRENs, 14-digit SIRETs, or EU VAT numbers (e.g. 'Doctolib', '844572496', 'FR27552032534').",
            "items": {
              "type": "string"
            },
            "default": [
              "Doctolib",
              "424761419",
              "Mistral AI"
            ]
          },
          "nafCodes": {
            "title": "NAF / APE Sector Codes (Bulk Prospecting)",
            "type": "array",
            "description": "Optional NAF/APE codes (e.g. '62.01Z', '43.22B') to discover matching active French companies when queries are empty or combined with department/certification filters.",
            "items": {
              "type": "string"
            }
          },
          "departement": {
            "title": "Department Code Filter (Optional)",
            "type": "string",
            "description": "Optional French department code (e.g. '75', '69', '33', '92') to narrow searches.",
            "default": ""
          },
          "onlyRge": {
            "title": "Only RGE Certified Companies",
            "type": "boolean",
            "description": "Restrict bulk NAF/search results to RGE-certified energy renovation businesses.",
            "default": false
          },
          "onlyQualiopi": {
            "title": "Only Qualiopi Certified Training Providers",
            "type": "boolean",
            "description": "Restrict bulk NAF/search results to Qualiopi-certified training organizations.",
            "default": false
          },
          "websites": {
            "title": "Known Websites (Optional)",
            "type": "array",
            "description": "Optional websites or 'domain:company' pairs (e.g. 'doctolib.fr:Doctolib') for direct email/social crawling.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Companies",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of enriched company profiles to output.",
            "default": 15
          },
          "checkPeppol": {
            "title": "Check Peppol E-Invoicing Directory",
            "type": "boolean",
            "description": "Check whether the company is registered on the official European Peppol e-invoicing network.",
            "default": true
          },
          "checkViesVat": {
            "title": "Validate EU VAT via EC VIES",
            "type": "boolean",
            "description": "Validate the company's EU VAT number live against the European Commission VIES API.",
            "default": true
          },
          "includeBodacc": {
            "title": "Include BODACC Legal & Insolvency Notices",
            "type": "boolean",
            "description": "Fetch recent BODACC filings and flag collective insolvency procedures (liquidation, redressement, sauvegarde).",
            "default": true
          },
          "includePublicTenders": {
            "title": "Include BOAMP Public Tenders Mentions",
            "type": "boolean",
            "description": "Search BOAMP official French public procurement notices mentioning the company or SIREN.",
            "default": true
          },
          "enrichWebsiteContacts": {
            "title": "Crawl Known Website for Emails & Socials",
            "type": "boolean",
            "description": "Crawl websites (provided in input or discovered via Peppol) for contact emails, phones, and LinkedIn URLs.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}