1,393 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Check Berlin City Tour ticket availability for a date
Reads the Berlin City Tour shop for one calendar date and returns the bookable timeslots, the per-guest-category prices, and the remaining capacity. The Hop-on Hop-off Classic tour is sold as a day ticket, so a bookable date has a single open timeslot covering the whole day rather than departure times. When the date is not on sale it returns available false with the reason the shop gave and the other dates on sale around it, so the caller can offer an alternative instead of guessing. The offer_hash it returns identifies the date, the slots and the prices it saw; pass it to add_to_cart, which refuses if the shop has changed since.
Remove a line from the Berlin City Tour basket
Takes one line out of a Berlin City Tour basket, using the cartId and cartPackageGroupId that add_to_cart returned, and reports what the basket holds afterwards. This is the counterpart to add_to_cart: because the shop merges repeated adds for one travel date into a single line, a run that was retried leaves more guests on that date than intended, and this is how that is undone. It refuses when the basket has no such line, and it checks the line is really gone before reporting success rather than trusting the request it sent.
Add a Berlin City Tour ticket to the basket for a date
Puts tickets for one travel date into the Berlin City Tour basket and returns the basket contents it created. Takes the guest counts per price category, as check_availability reports them, and the offer_hash from that same check. Before it writes anything it re-reads what the shop sells on that date and recomputes the hash: if the date, the timeslots or the prices have moved since the check, it adds nothing and refuses with what the shop shows now, so the caller can confirm the new offer and retry. It also refuses a date the shop does not sell, a guest category the product does not offer, and a request for more guests than the remaining capacity. The basket lives in the browser, so the cartPackageGroupId it returns is what the later booking steps work from.
Check Jewish Museum Berlin ticket availability
For one visit date on the official Jewish Museum Berlin ticket shop, list the entry time slots of one ticket type (adults by default) for one exhibition (the core exhibition by default), with the places left and the slot's total places, plus every ticket type sold for that exhibition that day with its price in euros and the most one order can hold. A day that is not on sale (in the past, too far ahead, or closed) returns no slots and a reason. Pass time (HH:MM) to get only that slot, with available and, when it cannot be booked, the reason (full, not on sale, or no entry at that time) instead of an error; the shop shows past, too-far-ahead and closed days the same way, so all three come back as not on sale.
Suggest Deutsche Bahn (bahn.de) stations and places
Look up stations, addresses and points of interest on Deutsche Bahn (bahn.de) by name, as its Start and Destination fields suggest them while you type, in bahn.de's own order (up to 10). Returns each place's id, name, type (station, address or point of interest), station number, coordinates and the kinds of transport that stop there. Pass a place's id to bahn.de/search_journeys as origin or destination. A city name in capitals, such as MUNICH (MÜNCHEN), stands for all the stations of that city. Names are in English where bahn.de has an English name, with the local name in brackets. bahn.de's matching is loose: a text it does not know still brings up places whose names start like it, so check the names before you search.
Fill Jewish Museum Berlin booking details
Give the booker's details to the official Jewish Museum Berlin ticket shop as a guest, so the basket filled with add_to_cart can be ordered with pay. The guest form asks for first name, last name, email, postcode, country and correspondence language, and the shop's terms and conditions must be accepted (acceptTerms). No password and no customer account are created; the tickets are sent to the email. Returns the fields the shop requires and whether each is filled. A browser already signed in, as a guest or with an account, returns already_identified and changes nothing. It stops before the order: run pay next.
Cancel a free Jewish Museum Berlin order
Cancel a free order placed on the official Jewish Museum Berlin ticket shop, from the order link in its booking confirmation email. Pass the order number too, to make sure the link opens that order. Returns the order number and cancelled when the shop confirms it, or no_cancel_option when the order page offers no cancellation (an order already cancelled, or a paid order, which the museum's terms do not let a visitor cancel). Cancelling cannot be undone, and the tickets go back on sale.
Add Jewish Museum Berlin tickets to the basket
Put tickets for one date and one entry slot in the basket of the official Jewish Museum Berlin ticket shop, with a quantity per ticket type (adults, under age of 18). Take the slot and the ticket types from check_availability: a slot is its time (HH:MM) or its startsAt value, a ticket type is its id or a part of its title. Returns the basket lines (ticket, slot, quantity, unit price, line total) and the total in euros. The basket lives in this browser: tickets already in it stay, unless emptyBasketFirst is true. Nothing is booked until pay places the order. A slot with too few places, an unknown slot or ticket type, or a quantity above the most one order can hold fails with an error that names the valid values.
