# getFrenchBirthsAndDeaths

**Identifier:** `insee_getFrenchBirthsAndDeaths`

**Provider:** [INSEE Statistics](https://kirha.com/providers/insee.md)

Get monthly births and deaths in France, a region or a department, with the natural balance and the change from the same month a year earlier.

## Run it with the CLI

```bash
kirha tools run insee_getFrenchBirthsAndDeaths \
  --input '{}'
```

`--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": "insee_getFrenchBirthsAndDeaths",
  "input": {}
}'
```

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": {
    "months": {
      "description": "Defaults to 12",
      "maximum": 36,
      "minimum": 1,
      "type": "integer"
    },
    "place": {
      "description": "France (default), a region or a department",
      "minLength": 2,
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "months": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "births": {
            "type": "number"
          },
          "birthsChangePct": {
            "type": "number"
          },
          "deaths": {
            "type": "number"
          },
          "deathsChangePct": {
            "type": "number"
          },
          "month": {
            "type": "string"
          },
          "naturalBalance": {
            "type": "number"
          },
          "provisional": {
            "type": "boolean"
          }
        },
        "required": [
          "month",
          "provisional"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "place": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "place",
    "months"
  ],
  "type": "object"
}
```

-----

[All INSEE Statistics tools](https://kirha.com/providers/insee.md) · [< Back to tools list](https://kirha.com/tools.md)