{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Data API - SIREN Lookup, Officers, BODACC",
    "description": "French company data API for Pappers: search companies by NAF code, department, revenue, headcount or creation date, look up any SIREN or SIRET, and export officers, beneficial owners, financials and BODACC publications to JSON, CSV or Excel. Bring your own Pappers API key.",
    "version": "0.1",
    "x-build-id": "PVmCav0O1VijMG8D8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~france-company-register-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-france-company-register-api",
        "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/nabeelbaghoor~france-company-register-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-france-company-register-api",
        "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/nabeelbaghoor~france-company-register-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-france-company-register-api",
        "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": "What to do",
            "enum": [
              "search",
              "company",
              "directors",
              "beneficiaries",
              "publications"
            ],
            "type": "string",
            "description": "Company search finds companies by filters. Company lookup returns the full register record for each SIREN or SIRET. Officer, beneficial owner and BODACC publication searches use the same filters and return people or publications instead.",
            "default": "search"
          },
          "query": {
            "title": "Search text",
            "type": "string",
            "description": "Company name for a company search, a person's name for officer and beneficial owner searches, or a keyword in the publication text."
          },
          "precision": {
            "title": "Match precision",
            "enum": [
              "approximative",
              "standard",
              "exacte"
            ],
            "type": "string",
            "description": "How strictly the search text must match."
          },
          "companyIds": {
            "title": "Company numbers (SIREN or SIRET)",
            "type": "array",
            "description": "For Company lookup: one 9-digit SIREN or 14-digit SIRET per line. For officer, beneficial owner and publication searches: optional SIRENs to restrict the search to those companies.",
            "items": {
              "type": "string"
            }
          },
          "nafCodes": {
            "title": "NAF codes",
            "type": "array",
            "description": "NAF (APE) activity codes, for example 10.71C or 62.01Z.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "French department numbers of any of the company's establishments, for example 75 or 69.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Region codes",
            "type": "array",
            "description": "INSEE region codes, for example 11 for Ile-de-France.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Postal codes of any of the company's establishments.",
            "items": {
              "type": "string"
            }
          },
          "legalCategories": {
            "title": "Legal categories (INSEE codes)",
            "type": "array",
            "description": "INSEE legal category codes, for example 5710 (SAS). The provider uses 5720 for SASU and 5498 for EURL.",
            "items": {
              "type": "string"
            }
          },
          "companyStatus": {
            "title": "Company status",
            "enum": [
              "any",
              "active",
              "ceased"
            ],
            "type": "string",
            "description": "Active companies only, ceased companies only, or both.",
            "default": "any"
          },
          "rcsStatus": {
            "title": "RCS status",
            "enum": [
              "inscrit",
              "radie",
              "non inscrit"
            ],
            "type": "string",
            "description": "Registration status in the trade and companies register."
          },
          "headcountMin": {
            "title": "Minimum headcount band",
            "enum": [
              "NN",
              "00",
              "01",
              "02",
              "03",
              "11",
              "12",
              "21",
              "22",
              "31",
              "32",
              "41",
              "42",
              "51",
              "52",
              "53"
            ],
            "type": "string",
            "description": "Smallest Sirene headcount band to include."
          },
          "headcountMax": {
            "title": "Maximum headcount band",
            "enum": [
              "NN",
              "00",
              "01",
              "02",
              "03",
              "11",
              "12",
              "21",
              "22",
              "31",
              "32",
              "41",
              "42",
              "51",
              "52",
              "53"
            ],
            "type": "string",
            "description": "Largest Sirene headcount band to include."
          },
          "revenueMin": {
            "title": "Minimum revenue (EUR)",
            "type": "integer",
            "description": "Lowest last known revenue. The provider notes this narrows results to companies that published accounts."
          },
          "revenueMax": {
            "title": "Maximum revenue (EUR)",
            "type": "integer",
            "description": "Highest last known revenue."
          },
          "netIncomeMin": {
            "title": "Minimum net income (EUR)",
            "type": "integer",
            "description": "Lowest last known net income (resultat)."
          },
          "netIncomeMax": {
            "title": "Maximum net income (EUR)",
            "type": "integer",
            "description": "Highest last known net income (resultat)."
          },
          "capitalMin": {
            "title": "Minimum share capital (EUR)",
            "type": "integer",
            "description": "Lowest share capital."
          },
          "capitalMax": {
            "title": "Maximum share capital (EUR)",
            "type": "integer",
            "description": "Highest share capital."
          },
          "createdFrom": {
            "title": "Created from",
            "type": "string",
            "description": "Earliest creation date."
          },
          "createdTo": {
            "title": "Created to",
            "type": "string",
            "description": "Latest creation date."
          },
          "registeredFrom": {
            "title": "RCS registration from",
            "type": "string",
            "description": "Earliest RCS registration date."
          },
          "registeredTo": {
            "title": "RCS registration to",
            "type": "string",
            "description": "Latest RCS registration date."
          },
          "corporatePurpose": {
            "title": "Corporate purpose contains",
            "type": "string",
            "description": "Text in the corporate purpose (objet social) declared to the RCS."
          },
          "collectiveAgreement": {
            "title": "Collective agreement",
            "type": "string",
            "description": "Collective agreement (convention collective) identifier."
          },
          "officerType": {
            "title": "Officer type",
            "enum": [
              "physique",
              "morale"
            ],
            "type": "string",
            "description": "Natural persons or legal entities as officers."
          },
          "officerRole": {
            "title": "Officer role",
            "type": "string",
            "description": "Role such as President, Gerant or Directeur general."
          },
          "officerLastName": {
            "title": "Officer last name",
            "type": "string",
            "description": "Last name of the officer, or of one of the company's officers."
          },
          "officerFirstName": {
            "title": "Officer first name",
            "type": "string",
            "description": "First name of the officer."
          },
          "officerNationality": {
            "title": "Officer nationality",
            "type": "string",
            "description": "Nationality of the officer, for example Francaise."
          },
          "officerAgeMin": {
            "title": "Officer minimum age",
            "minimum": 0,
            "maximum": 130,
            "type": "integer",
            "description": "Youngest officer age."
          },
          "officerAgeMax": {
            "title": "Officer maximum age",
            "minimum": 0,
            "maximum": 130,
            "type": "integer",
            "description": "Oldest officer age."
          },
          "publicationTypes": {
            "title": "BODACC publication types",
            "type": "array",
            "description": "Only publications of these types.",
            "items": {
              "type": "string",
              "enum": [
                "Création",
                "Immatriculation",
                "Modification",
                "Vente",
                "Radiation",
                "Procédure collective",
                "Dépôt des comptes"
              ],
              "enumTitles": [
                "Creation",
                "Registration",
                "Modification",
                "Sale",
                "Striking off",
                "Insolvency proceeding",
                "Accounts filing"
              ]
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest BODACC publication date."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest BODACC publication date."
          },
          "extraFields": {
            "title": "Extra company fields (lookup)",
            "type": "array",
            "description": "Extra fields for Company lookup. Phone, email and LinkedIn cost 3 extra Pappers credits each when available; website, sanctions, PEP and companies directed cost 1; the rest are free.",
            "items": {
              "type": "string",
              "enum": [
                "sites_internet",
                "telephone",
                "email",
                "lien_linkedin",
                "enseigne_1",
                "code_commune",
                "code_region",
                "region",
                "code_departement",
                "departement",
                "nomenclature_code_naf",
                "lien_pappers",
                "labels",
                "micro_entreprise",
                "sanctions",
                "personne_politiquement_exposee",
                "categorie_entreprise",
                "motif_cessation",
                "representants_legaux",
                "entreprises_dirigees"
              ],
              "enumTitles": [
                "Websites",
                "Phone",
                "Email",
                "LinkedIn link",
                "Trade name",
                "Commune code",
                "Region code",
                "Region",
                "Department code",
                "Department",
                "NAF nomenclature",
                "Profile link",
                "Labels",
                "Micro-enterprise flag",
                "Sanctions",
                "Politically exposed person",
                "Company category",
                "Reason for ceasing",
                "Legal representatives",
                "Companies directed"
              ]
            }
          },
          "checkVat": {
            "title": "Check VAT number validity (lookup)",
            "type": "boolean",
            "description": "Ask the provider to say whether the intra-community VAT number is valid.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many rows. This caps both spend and run time.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Pace requests to stay inside your plan's limits.",
            "default": 120
          },
          "apiKey": {
            "title": "Pappers API key",
            "type": "string",
            "description": "Your own Pappers API key. It is sent only in the api-key header to api.pappers.fr and removed from every log line. Stored as a secret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}