Markets¶
What is a market?¶
Eventim operates separate regional platforms for each country it serves. Each platform has its own:
- Domain (e.g.
eventim.de,eventim.se,lippu.fi) - Event catalogue — most events are listed only in the country where they take place
- Currency and pricing
- Language (the metadata returned in API responses reflects the local language)
pyventim calls these platforms markets.
The EventimMarket enum¶
Every EventimClient is initialised with an EventimMarket enum member that identifies the market:
from pyventim import EventimClient, EventimMarket
de_client = EventimClient(EventimMarket.GERMANY) # Germany
se_client = EventimClient(EventimMarket.SWEDEN) # Sweden
Each EventimMarket member carries two attributes:
web_id— the internal Eventim identifier used by the public APIbase_url— the root domain of the market's website, used by the private API
You rarely need to access these directly; they are passed automatically to the underlying fetchers when the client is constructed.
Markets¶
| Enum member | web_id |
Domain |
|---|---|---|
EventimMarket.GERMANY |
web__eventim-de |
eventim.de |
EventimMarket.SWEDEN |
web__eventim-se |
eventim.se |
EventimMarket.FINLAND |
web__lippu-fi |
lippu.fi |
EventimMarket.NORWAY |
web__eventim-no |
eventim.no |
EventimMarket.DENMARK |
web__billetlugen-dk |
billetlugen.dk |
EventimMarket.BRAZIL |
web__eventim-com-br |
eventim.com.br |
EventimMarket.BULGARIA |
web__eventim-bgr |
eventim.bg |
EventimMarket.FRANCE |
web__eventim-fr |
eventim.fr |
EventimMarket.UK |
web__eventim-co-uk |
eventim.co.uk |
EventimMarket.ITALY |
web__ticketone-it |
ticketone.it |
EventimMarket.ISRAEL |
web__eventim-co-il |
eventim.co.il |
EventimMarket.CROATIA |
web__eventim-hrv |
eventim.hr |
EventimMarket.SWITZERLAND |
web__ticketcorner-ch |
ticketcorner.ch |
EventimMarket.POLAND |
web__eventim-pl |
eventim.pl |
EventimMarket.ROMANIA |
web__eventim-rou |
eventim.ro |
EventimMarket.SLOVENIA |
web__eventim-svn |
eventim.si |
EventimMarket.SPAIN |
web__entradas-com |
entradas.com |
EventimMarket.HUNGARY |
web__eventim-hun |
eventim.hu |
EventimMarket.BELGIUM |
web__eventim-nl |
eventim.be |
EventimMarket.NETHERLANDS |
web__eventim-nl |
eventim.nl |
EventimMarket.AUSTRIA |
web__oeticket-at |
oeticket.com |
EventimMarket.SLOVAKIA |
web__oeticket-at |
eventim.sk |
Shared web_ids
Two pairs of markets share the same web_id:
EventimMarket.BELGIUMandEventimMarket.NETHERLANDSboth useweb__eventim-nlEventimMarket.AUSTRIAandEventimMarket.SLOVAKIAboth useweb__oeticket-at
The web_id is used to query the public catalogue, which is shared between the paired markets. The base_url differs between them, pointing to each country's own domain for the private API.
One client per market¶
There is no single "global" client. To query multiple markets you create one EventimClient instance for each:
from pyventim import EventimClient, EventimMarket, EventimCategory
clients = {
"de": EventimClient(EventimMarket.GERMANY),
"se": EventimClient(EventimMarket.SWEDEN),
}
for market, client in clients.items():
for pg in client.product_groups(categories=[EventimCategory.CONCERTS], page_limit=1):
print(market, pg.name)