{
  "openapi": "3.0.1",
  "info": {
    "title": "Pappers / SIRENE Scraper — French Companies API",
    "description": "Official French SIRENE/RNE, BODACC insolvency & BOAMP tenders API & MCP tool. Free count mode, GPS radius search, RGE/Qualiopi/Bio/ESS filters, executives, financials & VAT. Zero proxy.",
    "version": "1.0",
    "x-build-id": "YBrXc5xdxm8XNUlXb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yannabadie~french-company-intelligence-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yannabadie-french-company-intelligence-mcp",
        "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/yannabadie~french-company-intelligence-mcp/runs": {
      "post": {
        "operationId": "runs-sync-yannabadie-french-company-intelligence-mcp",
        "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/yannabadie~french-company-intelligence-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-yannabadie-french-company-intelligence-mcp",
        "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": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "search_companies",
              "count",
              "enrich_sirens",
              "watch_bodacc",
              "search_boamp"
            ],
            "type": "string",
            "description": "Choose whether to preview match count for FREE ('count'), search companies (SIRENE/RNE or GPS radius), bulk-enrich SIREN/SIRET lists, watch BODACC legal events, or search BOAMP tenders.",
            "default": "search_companies"
          },
          "query": {
            "title": "Search Query (Company name, keyword, executive, or tender topic)",
            "type": "string",
            "description": "Free-text search query for search_companies, count, watch_bodacc, or search_boamp."
          },
          "sirens": {
            "title": "SIREN or SIRET List (for enrich_sirens mode)",
            "type": "array",
            "description": "List of 9-digit French SIREN or 14-digit SIRET identifiers (spaces and dashes are automatically stripped).",
            "items": {
              "type": "string"
            }
          },
          "department": {
            "title": "French Department Code (optional)",
            "type": "string",
            "description": "2- or 3-digit department code (e.g. '75', '69', '33', '974'). Supports comma-separated values."
          },
          "postalCode": {
            "title": "Postal Code (optional)",
            "type": "string",
            "description": "5-digit French postal code filter (e.g. '75008', '69002'). Supports comma-separated values."
          },
          "region": {
            "title": "INSEE Region Code (optional)",
            "type": "string",
            "description": "2-digit French region code (e.g. '11' Île-de-France, '84' Auvergne-Rhône-Alpes, '93' PACA)."
          },
          "nafCode": {
            "title": "NAF / APE Activity Code (optional)",
            "type": "string",
            "description": "INSEE NAF code filter for company search (e.g. '62.01Z', '70.22Z'). Supports comma-separated values."
          },
          "employeeRange": {
            "title": "Employee Headcount Range Code (optional)",
            "type": "string",
            "description": "INSEE tranche_effectif_salarie code(s), comma-separated (e.g. '11,12,21' for 10–99 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)."
          },
          "companyCategory": {
            "title": "Company Size Category (optional)",
            "enum": [
              "",
              "PME",
              "ETI",
              "GE"
            ],
            "type": "string",
            "description": "Filter by official INSEE size category: PME, ETI, or GE.",
            "default": ""
          },
          "executiveLastName": {
            "title": "Executive / Director Last Name (optional)",
            "type": "string",
            "description": "Filter companies by an executive or director's last name (nom_personne)."
          },
          "latitude": {
            "title": "GPS Latitude (optional — enables radius search)",
            "type": "number",
            "description": "WGS84 latitude (e.g. 48.8566 for Paris). Provide both latitude and longitude to search companies within radiusKm via /near_point."
          },
          "longitude": {
            "title": "GPS Longitude (optional — enables radius search)",
            "type": "number",
            "description": "WGS84 longitude (e.g. 2.3522 for Paris). Must be combined with latitude."
          },
          "radiusKm": {
            "title": "GPS Search Radius in km (optional)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Search radius in kilometers around (latitude, longitude) — between 0.1 and 50 km.",
            "default": 5
          },
          "onlyActive": {
            "title": "Only Active Companies",
            "type": "boolean",
            "description": "Exclude ceased/closed legal entities (etat_administratif = A).",
            "default": true
          },
          "estRge": {
            "title": "Label Filter: RGE Certified Only",
            "type": "boolean",
            "description": "Keep only companies certified RGE (Reconnu Garant de l'Environnement).",
            "default": false
          },
          "estQualiopi": {
            "title": "Label Filter: Qualiopi Certified Only",
            "type": "boolean",
            "description": "Keep only Qualiopi-certified training & skills providers.",
            "default": false
          },
          "estBio": {
            "title": "Label Filter: Organic / Agence Bio Certified Only",
            "type": "boolean",
            "description": "Keep only Agence Bio certified companies.",
            "default": false
          },
          "estEss": {
            "title": "Label Filter: ESS (Social & Solidarity Economy) Only",
            "type": "boolean",
            "description": "Keep only Économie Sociale et Solidaire entities.",
            "default": false
          },
          "estAssociation": {
            "title": "Label Filter: Associations Only",
            "type": "boolean",
            "description": "Keep only French associations.",
            "default": false
          },
          "estOrganismeFormation": {
            "title": "Label Filter: Training Organizations Only",
            "type": "boolean",
            "description": "Keep only officially registered training organizations (Organisme de Formation).",
            "default": false
          },
          "estSocieteMission": {
            "title": "Label Filter: Société à Mission Only",
            "type": "boolean",
            "description": "Keep only mission-driven companies (Société à Mission).",
            "default": false
          },
          "minRevenueEur": {
            "title": "Minimum Latest Annual Revenue in EUR (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter enriched companies whose latest published turnover (CA) is at least this amount in EUR."
          },
          "bodaccFamily": {
            "title": "BODACC Notice Family (optional, watch_bodacc mode)",
            "enum": [
              "",
              "collective",
              "conciliation",
              "retablissement_professionnel",
              "creation",
              "immatriculation",
              "vente",
              "radiation",
              "modification",
              "dpc"
            ],
            "type": "string",
            "description": "Filter BODACC notices by official family code.",
            "default": ""
          },
          "sinceDate": {
            "title": "Published Since Date (YYYY-MM-DD, optional)",
            "type": "string",
            "description": "Filter BODACC or BOAMP records published on or after this ISO date."
          },
          "includeBodacc": {
            "title": "Enrich Companies with BODACC Legal & Risk History (+$0.003/company)",
            "type": "boolean",
            "description": "Optional KYC add-on: fetch official DILA BODACC notices per company to compute deterministic insolvency/closure risk flags. Disabled by default so base company search costs $6 / 1,000 companies.",
            "default": false
          },
          "includeBoamp": {
            "title": "Enrich Companies with BOAMP Public Tenders (+$0.003/company)",
            "type": "boolean",
            "description": "Optional add-on: fetch official DILA BOAMP public procurement notices mentioning each company.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on output records to control spend and execution time.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}