Python helper to query the Sirene API on api.insee.fr. Current version is 1.6, providing access to the Sirene database (companies and establishments) and links of succession. Release cadence is irregular, with recent updates in 2023.
pip install api-inseeVerified import paths — ran on the pinned version, not inferred.
Initialize the API with credentials and perform a basic unit search.
Use key and secret parameters as shown in the quickstart or set environment variables accordingly.
Call response.json() after each request to get a Python dict.
Use the Criteria.Field helper or write queries like 'siren:398607333'.