Errors
What can go wrong in a count, how it shows, and what to do next.
Cases
not a website | exit 2The argument is not a domain. Pass a bare domain, acme.com. |
the count did not finish | exit 1Wait a minute and run it once more. Twice in a row: count by hand, below. |
segment at 0 with a note | noteThe registry could not count it. Report it as not counted, never as zero companies. |
capped at 10,000 | noteThe French registry API stops at 10,000 results. Split by code, band or region and add the parts. |
Count a segment by hand
France, through the free public Sirene API. One call per segment, total_results is the count.
https://recherche-entreprises.api.gouv.fr/search?activite_principale=62.01Z&tranche_effectif_salarie=11,12&etat_administratif=A&per_page=1Elsewhere, a published official count, cited: US Census SUSB, UK ONS Business Counts, Eurostat SBS. Without a source you can open, there is no number.
Two runs differ
The segments are posed by a model reading the site; the counts come from the registry. Compare the segments of the two runs, not their totals.