israeli-prices
Typed Python client for Israel's retail price-transparency data.
Israeli law requires large retailers — supermarkets and drugstore chains alike — to publish their full price, promotion and store lists several times a day. The data is public, but it is scattered across ~30 chain portals with different auth schemes, file listings and XML dialects.
israeli-prices turns all of that into one clean API:
import israeli_prices as ilp
ilp.list_chains() # every chain covered by the law
stores = ilp.get_stores("super-pharm") # -> StoresFile (typed)
prices = ilp.get_prices("shufersal", store_id="001") # -> PriceFile
promos = ilp.get_promos("super-pharm", store_id="209") # -> PromoFile
prices.items[0].price # Decimal("10.00")
prices.to_df() # optional pandas export
- Fetch + parse, end to end — one
pip install, portal quirks handled per chain, gzip + XML dialects normalized into pydantic models. No raw file juggling. - Prices, promotions AND stores — including grouped promotion structures (groups, reward types, club restrictions), not just price rows.
- Pharmacy coverage first-class — Super-Pharm today, Good Pharm and the Be Pharm sub-chain on the roadmap, alongside every supermarket chain.
- MIT licensed — free for any use, commercial included.
Status
31 of the 32 chains on the government roster are implemented, every one verified live end to end (the last one's portal is down — it is registered and will be enabled when it comes back):
- Self-hosted portals: Shufersal (incl. the Be Pharm sub-chain), Super-Pharm, Wolt Market, Carrefour, Hatzi Hinam.
- Cerberus shared portal (one adapter, 13 chains): Rami Levy, Tiv Taam, Yochananof, Osher Ad, Dor Alon, Keshet Teamim, Super Cofix, Politzer, Stop Market, Fresh Market, Salach Dabach, Super Yuda, Yellow.
- Bina portals (one adapter, 10 chains): Good Pharm, Super Bareket, King Store, Maayan 2000, Meshnat Yosef, Shefa Birkat Hashem, Shuk Hayir, Super Sapir, Zol VeBegadol, City Market.
- Laib catalog (one adapter, 3 chains): Victory, Mahsanei HaShuk, Het Cohen.
See docs/chains.md for the full coverage matrix and per-portal quirks.
Install
pip install israeli-prices
Requires Python ≥ 3.10. Optional extra: israeli-prices[pandas] for
.to_df().
Compare across chains
Barcoded products carry the same identifier everywhere — the GTIN in
item_code — so it is the join key for lining the same SKU up across
chains. group_by_gtin does the join, canonicalizing UPC-12 / EAN-13 to
GTIN-14 so encoding differences don't split one product into two:
sp = ilp.get_prices("super-pharm", store_id="142")
sh = ilp.get_prices("shufersal", store_id="001")
for gtin, by_chain in ilp.group_by_gtin(
{"super-pharm": sp, "shufersal": sh}, min_sources=2
).items():
print(gtin, {chain: it.price for chain, it in by_chain.items()})
Each row also exposes item.gtin (canonical GTIN-14, or None) and
item.is_barcoded. Loose/weighted goods — fresh produce, deli — use
per-chain internal codes with no shared key, so they can't be joined this
way; gtin is None for them by design.
Prices with promotions
A store's promotions come in a separate file from its prices.
by_item_code() indexes a promotions file so each price row can look up
the promotions it takes part in, together with the promotion's row for
that item, which carries the reward (discounted_price, discount_rate,
min_qty):
prices = ilp.get_prices("victory", store_id="001")
promos = ilp.get_promos("victory", store_id="001").by_item_code()
for item in prices.items:
for promo, row in promos.get(item.item_code, []):
print(item.name, item.price, "->", row.discounted_price, promo.club_id)
The key is the raw item_code, so weighted and internal codes join too
(their gtin is None). An item can sit in several promotions, e.g. one
for all customers and a cheaper one for club members (club_id).
Lower-level API
from israeli_prices import FileType, list_files, download, parse
refs = list_files("shufersal", file_type=FileType.PROMO_FULL, limit=5)
payload = download(refs[0]) # raw gzipped XML, as published
promo_file = parse(payload) # auto-detects the file kind
Some portals sign their download URLs with a short expiry (Shufersal) —
download right after listing. Some portals are geo-restricted to Israeli
IPs; pass a proxy via HttpClient(proxy=...) if you fetch from abroad.
Data notes
- Timestamps are naive local Israel time, as published.
- Prices are
Decimal, in ILS (ItemPricefrom the source files). item_codeis usually a GTIN/barcode but chains also publish internal codes (item_typeis the retailer's own flag). Useitem.gtinfor a canonical GTIN-14 (orNone) andgroup_by_gtinto join across chains — see Compare across chains.- Hebrew text is preserved as published; encodings (UTF-8 BOM, UTF-16) are handled transparently.
- Freshness: chains publish incremental
Price/Promofiles throughout the day and dailyPriceFull/PromoFullsnapshots per store. - Scope: the law covers each retailer's own sales only — e.g. Wolt's feed contains Wolt Market (its dark stores), not the partner retailers on the Wolt platform. Per-chain caveats live in docs/chains.md.
License
MIT © RxRadar Inc. — the data itself is published by the chains under Israel's price-transparency regulation and remains theirs; this library just fetches and parses it. Be a good citizen: cache locally and keep request rates reasonable.
Metadata
Release files for israeli-prices 0.3.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 |
|---|---|---|---|---|
| israeli_prices-0.3.0.tar.gz | 42.8 kB | With provenance | Details for israeli_prices-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| israeli_prices-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for israeli_prices-0.3.0-py3-none-any.whl |
Total release size: 76.2 kB
Release files / israeli_prices-0.3.0.tar.gz
| Download URL | israeli_prices-0.3.0.tar.gz |
|---|---|
| Size | 42.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83655c92774e68f8fcad56abaa9cf98197912fff8eeb050e83b0d234fd2549c2
|
|
BLAKE2b-256 checksum How to use checksums |
6cbd63f9021fa2ba07bf83462b225ee99f027307462976da291be4943234cdac
|
| 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 Dec 1, 2026.
Transparency logRelease files / israeli_prices-0.3.0-py3-none-any.whl
| Download URL | israeli_prices-0.3.0-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20277f5385e7990d02c3b97bf1c67bbaa1f122f4988b8e6216966cb2e79ce8bb
|
|
BLAKE2b-256 checksum How to use checksums |
ad91655980d3432b87ce68a6239b8e58150d0dca37cb00b14564ff2494ac8302
|
| 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 Dec 1, 2026.
Transparency logSecurity for israeli-prices 0.3.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 israeli_prices-0.3.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 Dec 1, 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.