npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-sirene

v0.1.0

Published

n8n community node for the French Sirene open data API (INSEE) - companies and establishments by SIREN / SIRET

Readme

n8n-nodes-sirene

This is an n8n community node. It lets you interact with the INSEE Sirene open data API in your n8n workflows.

Sirene is the French national business register, maintained by INSEE. It lists every French company and every one of its establishments, identified by a 9-digit SIREN (the company) and a 14-digit SIRET (one of its establishments), and carries their name, legal form, NAF activity code, address, headcount bracket and administrative status. The open data API exposes the register free of charge, updated daily.

n8n is a fair-code licensed workflow automation platform.

Installation Credentials Operations Query syntax Pagination and rate limits Error handling No trigger node Compatibility Known limitations Resources License

Installation

Follow the installation guide in the n8n community nodes documentation.

Alternatively, install it from npm:

npm install n8n-nodes-sirene

For local development:

npm install
npm run dev      # starts an n8n instance with the node hot-mounted

Credentials

  1. Create an account on portail-api.insee.fr.
  2. Subscribe to the Sirene API, then copy your application's integration key.
  3. In n8n: Credentials → New → Sirene API → paste the key → Save.

The key is static and does not expire. It travels in the X-INSEE-Api-Key-Integration header.

The credential's test button calls GET /informations, the lightest endpoint of the API.

Operations

This node supports the following operations:

  • Company (legal unit, SIREN)
    • Get — a company record by its SIREN
    • Search — by name, NAF code, legal category, company size category, headcount bracket, administrative status
  • Establishment (SIRET)
    • Get — an establishment record by its SIRET
    • Get Many by Company — every establishment of a SIREN
    • Search — by name, SIREN, postcode, town, NAF code, status, headquarters only
  • Succession Link
    • Search — predecessors and successors of establishments over a given period
  • Information
    • Get — API version and the register's last update dates

Query syntax

The node writes the Sirene query for you, including the historised-variable trap.

Some variables (administrative status, NAF code, company name on /siren, and so on) only exist inside a period of the record. Querying them at the top level makes the API answer 400 "Erreur de syntaxe dans le paramètre q". They have to be wrapped in periode(...), and which variables are concerned depends on the endpoint:

| Field | /siren | /siret | |---|---|---| | denominationUniteLegale | periode(...) | top level | | etatAdministratif* | periode(...) | periode(...) | | activitePrincipale* | periode(...) | periode(...) | | categorieJuridiqueUniteLegale | periode(...) | — | | siren, categorieEntreprise, trancheEffectifs*, codePostal*, libelleCommune*, etablissementSiege | top level | top level |

The node puts each filter on the right side and groups the historised criteria into a single periode(... AND ...), which means they have to hold true over the same period. The Raw Query field is there for everything else; it is combined with the filters using AND, but there you write the periode(...) wrappers yourself.

Phonetic search goes through the .phonetisation suffix (not .phonetique, which returns a 400). The node applies it when the phonetic option is enabled.

Pagination and rate limits

Return All walks the pages through curseur / curseurSuivant, up to 1 000 results per page. It stops on header.total: at the end of a listing the API returns a new curseurSuivant rather than repeating the last one, so stopping on "the cursor no longer moves" would cost one extra empty request.

Open data usage is capped at 30 requests per minute. The node waits 2.1 s between pages, so a Return All over a large search is slow but never gets throttled.

Requests longer than roughly 1.5 kB automatically switch to POST to avoid an HTTP 414.

Use the Fields option (under Options), a comma-separated list of fields, whenever you can: a full Sirene response carries several hundred fields per establishment.

Error handling

The API answers 404 for an unknown SIREN or SIRET. Turn on Settings → On Error → Continue on the node to get an { error: ... } item instead of a failed run.

No trigger node

The Sirene API exposes no webhook. To watch a portfolio of companies, use n8n's Schedule Trigger followed by this node, and compare against what you saw on the previous run.

Compatibility

Node.js 20+. Tested with n8n 2.x.

Known limitations

  • The tri (sort) parameter is not exposed: it is incompatible with the cursor pagination used by Return All.
  • Phonetic search only covers the company name, not the trade name or the town.
  • The guided filters do not yet cover trade name, creation date or geolocation. Use Raw Query in the meantime.
  • The data is the Sirene register's own, updated daily — see the Information → Get operation for the exact date.

Resources

License

MIT. Sirene data is published under the Open Licence 2.0. "Sirene" and "INSEE" are trademarks of the French State; this package is an unofficial client.