israel-companies · חיפוש חברות ברשם החברות
Look up an Israeli company by number (ח.פ.) or by name, straight from the open database of the Registrar of Companies (רשם החברות) on data.gov.il, for Python. No API key, no sign-up. The package checks the check digit before it asks the database, and explains every company status in plain Hebrew.
This is the Python edition of the israel-companies package on npm. The tests compare the number check, the record cleanup, the name query and the ranking of search results with the answers of the JavaScript version.
- Know your customer and supplier checks. Is the company active, struck off, in liquidation, marked as a violator of the Companies Law?
- Forms and invoices. Catch a mistyped ח.פ. before it reaches the database.
- CRM and onboarding. Fill in the company name, type and address from the number.
Install
pip install israel-companies
No dependencies. Python 3.10 or newer. Type hints included.
Use
from israel_companies import check_company_number, get_company, search_companies
check_company_number("52-002563-6")
# {'valid': True, 'number': '520025636'}
check_company_number("520025637")["message"]
# 'ספרת הביקורת לא מתאימה למספר, כנראה יש בו טעות הקלדה.'
check_company_number("580000008")["message"]
# 'לפי הקידומת 58, זה מספר של עמותה, ולא של חברה.'
company = get_company("520025636")
company["name"], company["english_name"], company["type_label"], company["status"], company["tone"], company["founded"]
# ('בנק ירושלים בע״מ', 'BANK OF JERUSALEM LTD.', 'חברה ציבורית', 'פעילה', 'active', '1963-12-12')
[(item["number"], item["name"]) for item in search_companies("טבע", limit=2)]
# [('520013954', 'טבע תעשיות פרמצבטיות בע״מ'),
# ('512850900', 'טבע עוף 2000 חברה לשיווק עופות ומוצרי בשר (1999) בע״מ')]
search_companies() searches Hebrew names, or English names when the query has only Latin letters, puts names that start with the first word first and active companies before closed ones. get_data_date() returns the time data.gov.il last updated the database.
Errors
CompanyLookupError with code set to invalid-number (the number failed the check, no request was sent), network, timeout, blocked, server or format.
API
| Function | What it does |
|---|---|
get_company(number) |
The company by ח.פ., or None when the registrar has no such number |
search_companies(name, *, limit=20) |
Companies by name, best matches first |
check_company_number(value) |
Check the length, the check digit and the prefix, with a Hebrew message |
is_valid_israeli_id(value) |
The check digit of a ת״ז, ח.פ. or עמותה number |
entity_of(number) |
The kind of corporation by prefix: company, partnership, amuta |
status_info(status) |
A plain Hebrew explanation of a registrar status |
get_data_date() |
When the registrar data was last updated |
to_company(record) |
Turn a raw data.gov.il record into a clean dict |
Every function that goes to the network takes timeout= in seconds (15 by default).
Source of the data
The Registrar of Companies database of the Israeli Ministry of Justice on data.gov.il, used under the data.gov.il terms of use. The database is updated daily. This is a community library with no official connection to the Registrar of Companies; for a legal decision, order an official extract from the registrar.
בעברית
חיפוש חברה ישראלית לפי מספר ח.פ. או לפי שם, ישר מהמאגר הפתוח של רשם החברות ב-data.gov.il, לפייתון. אין צורך במפתח API, בהרשמה או בתשלום. הספרייה בודקת את ספרת הביקורת לפני הפנייה למאגר ומסבירה כל סטטוס בעברית פשוטה: פעילה, מחוקה, בפירוק, מפרת חוק.
לנסות בלי קוד: בדיקת חברה לפי ח.פ. או שם באתר של Aiterra.
Licence
MIT for the code. The data belongs to the State of Israel and is used under the data.gov.il terms of use. Built by Aiterra, a software studio in Israel that builds AI agents, voice agents and websites.
Metadata
Release files for israel-companies 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| israel_companies-1.0.0.tar.gz | 13.4 kB | With provenance | Details for israel_companies-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| israel_companies-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for israel_companies-1.0.0-py3-none-any.whl |
Total release size: 25.1 kB
Release files / israel_companies-1.0.0.tar.gz
| Download URL | israel_companies-1.0.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1034c22922d41234578f0b174de1a3e651a3319fe20a4afd912d0e37c0ddaf9f
|
|
BLAKE2b-256 checksum How to use checksums |
28dc1b6ac684b66732e37679a54bc3e10179bf196c812f47ce367c46fd35662f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / israel_companies-1.0.0-py3-none-any.whl
| Download URL | israel_companies-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d630fd75e5aeffa9015c1cd0ab41fd5782570a6cb81b389a22d306dd623a6d0
|
|
BLAKE2b-256 checksum How to use checksums |
3ef53d526f6107fda04bf36d3716bac9e8b5e237888e838ac5ccdb4f6cd6f46a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for israel-companies 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for israel_companies-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.