# searchBodaccAnnouncements

**Identifier:** `bodacc_searchBodaccAnnouncements`

**Provider:** [BODACC](https://kirha.com/providers/bodacc.md)

Search the French official bulletin BODACC for the legal announcements of a company, by SIREN or name: insolvency proceedings, sales of business, capital or director changes, strike-off, filed accounts, newest first. Use it for the legal event history of a French company or to check whether it is in receivership or liquidation.

## Run it with the CLI

```bash
kirha tools run bodacc_searchBodaccAnnouncements \
  --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": "bodacc_searchBodaccAnnouncements",
  "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": {
    "companyName": {
      "minLength": 2,
      "type": "string"
    },
    "families": {
      "description": "Kinds of announcement; all when omitted",
      "items": {
        "enum": [
          "insolvency",
          "saleOrTransfer",
          "creation",
          "registration",
          "modification",
          "strikeOff",
          "accountsFiling",
          "conciliation"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "limit": {
      "default": 15,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "publishedAfter": {
      "description": "YYYY-MM-DD",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "publishedBefore": {
      "description": "YYYY-MM-DD",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "siren": {
      "pattern": "^\\d{9}$",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "announcements": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "city": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "court": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "judgmentDate": {
            "type": "string"
          },
          "nature": {
            "type": "string"
          },
          "noticeType": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "publishedOn": {
            "type": "string"
          },
          "siren": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "sirens": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "total",
    "announcements",
    "sirens"
  ],
  "type": "object"
}
```

-----

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