# searchCompanyLeaders

**Identifier:** `pappers_searchCompanyLeaders`

**Provider:** [Pappers](https://kirha.com/providers/pappers.md)

Search for French company directors/executives by name using Pappers database.

## Run it with the CLI

```bash
kirha tools run pappers_searchCompanyLeaders \
  --input '{
    "companyLeaderName": "<companyLeaderName>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "pappers_searchCompanyLeaders",
  "input": {
    "companyLeaderName": "<companyLeaderName>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "companyLeaderName": {
      "description": "Director name to search for",
      "minLength": 1,
      "type": "string"
    },
    "limit": {
      "default": 5,
      "description": "Maximum number of results to return",
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    }
  },
  "required": [
    "companyLeaderName"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "directors": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "birthDate": {
            "type": "string"
          },
          "companies": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "activityCode": {
                  "type": "string"
                },
                "activityLabel": {
                  "type": "string"
                },
                "city": {
                  "type": "string"
                },
                "legalForm": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "siren": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                }
              },
              "required": [
                "siren",
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "denomination": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "nationality": {
            "type": "string"
          },
          "quality": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "totalCompanies": {
            "type": "number"
          }
        },
        "required": [
          "quality",
          "companies",
          "totalCompanies"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalResults": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "directors",
    "totalResults"
  ],
  "type": "object"
}
```

-----

[All Pappers tools](https://kirha.com/providers/pappers.md) · [< Back to tools list](https://kirha.com/tools.md)