Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    PlaybooksOther

    Hotel Rate Shop

    What your competing hotels charge a night for the same stays, from Google Hotels, Booking.com and MakeMyTrip, with each change.

    Id
    hotel-rate-shop
    Version
    1.0.0
    Category
    Other
    Status
    Beta: it works, and may still change in a minor version
    Saved, it runs
    daily, weekdays, weekly
    Unit cap
    400 by default, 1 to 3000

    Reads the nightly rate of each hotel in your comp set for stays a set number of days ahead (7, 14 and 30 by default), on Google Hotels by the hotel's name and on Booking.com and MakeMyTrip from the hotel's page there. Each row is one hotel, stay and site: the lowest price a night before taxes, the currency, whether the hotel has a room at all, and on Booking.com the room, cancellation terms and meals of the cheapest offer that fits your party, beside its cheapest free-cancellation rate. A saved playbook asks the same distance ahead each run and reports only the rates that changed, with the price before, and sold-out hotels first.

    Use when a hotel wants to know what its competitors charge for the same nights and be told when their rates change.

    Run it with POST /v1/formulas/hotel-rate-shop/runs. How runs work is in Running a playbook; what a run costs is below.

    Parameters

    The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type HotelRateShopParams.

    Parameters of Hotel Rate Shop
    ParameterTypeRequired or defaultWhat it is
    hotelsBasicslist of stringsrequiredHotels. Each hotel's name as Google Hotels shows it. Its rate there is read when the first hotel Google Hotels finds has that name.1 or more, up to 20, each up to 120 characters.
    cityBasicsstring""Town. The town the hotels are in, added to each name when it is searched, such as London. Leave empty when the names say it.up to 80 characters.
    days_aheadBasicslist of integers[7,14,30]Stays starting in (days). How many days after each run the stays begin. A saved playbook asks the same distances every time it runs.1 or more, up to 6.
    booking_pagesBasicslist of strings[]Booking.com pages. The hotels' pages on Booking.com, such as https://www.booking.com/hotel/gb/strandpalace.html, to read their room prices there too.up to 20, each up to 500 characters.
    makemytrip_hotelsFilterslist of strings[]MakeMyTrip hotels. The hotels' pages on MakeMyTrip, or their hotel ids there, to read their rates in rupees too.up to 20, each up to 800 characters.
    nightsFiltersinteger1Nights. How long each stay is. Prices are shown a night.at least 1, at most 14.
    adultsFiltersinteger2Guests. Adults in one room. On Booking.com only the offers for at least this many guests count.at least 1, at most 8.
    currencyFiltersstring"USD"Currency. The currency of the Google Hotels and Booking.com prices. MakeMyTrip prices are in rupees.One of USD, EUR, GBP, AED, INR, AUD, CAD, JPY, CHF, SGD.
    max_resultsOutputinteger500Most rows. The run stops at this many rates, changes and sold-out hotels first.at least 1, at most 2000.

    Presets

    Ready-made answers to start from: give them as params, with any of your own beside them.

    Four hotels around Covent Garden (London) covent-garden

    JSON
    {
      "hotels": [
        "Strand Palace",
        "Hotel AMANO Covent Garden",
        "Page8",
        "The Royal Horseguards Hotel"
      ],
      "city": "London",
      "booking_pages": [
        "https://www.booking.com/hotel/gb/strandpalace.html",
        "https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html",
        "https://www.booking.com/hotel/gb/page-8.html",
        "https://www.booking.com/hotel/gb/royalhorseguards.html"
      ]
    }

    The next four weeks, weekly next-weekends

    JSON
    {
      "days_ahead": [
        7,
        14,
        21,
        28
      ]
    }

    Two-night stays, a week, a month and a quarter out two-night-stays

    JSON
    {
      "days_ahead": [
        7,
        30,
        90
      ],
      "nights": 2
    }

    Last minute (tonight to three days out) last-minute

    JSON
    {
      "days_ahead": [
        0,
        1,
        2,
        3
      ]
    }

    Columns

    The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.

    Columns of Hotel Rate Shop
    ColumnLabelTypeShown by default
    hotelHotelstringyes
    siteSitestringyes
    days_aheadDays aheadintegeryes
    check_inCheck-indateyes
    check_outCheck-outdateyes
    nightly_pricePrice a nightnumberyes
    currencyCurrencystringyes
    availableHas a roombooleanyes
    changeChangestringyes
    previous_pricePrice beforenumberyes
    refundable_priceFree-cancellation price a nightnumberyes
    roomRoomstringyes
    cancellationCancellationstringyes
    mealsMealsstringyes
    stay_total_with_taxesStay with taxesnumberno
    dealDealstringno
    offersOffers on the pageintegerno
    starsStarsnumberno
    ratingGuest ratingnumberno
    asked_forAsked forstringno
    linkLinkurlyes
    scoreScorenumberno

    Example request

    # Start the run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/formulas/hotel-rate-shop/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"params":{"hotels":["Strand Palace","Hotel AMANO Covent Garden","Page8","The Royal Horseguards Hotel"],"city":"London","booking_pages":["https://www.booking.com/hotel/gb/strandpalace.html","https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html","https://www.booking.com/hotel/gb/page-8.html","https://www.booking.com/hotel/gb/royalhorseguards.html"],"days_ahead":[7,14,30],"makemytrip_hotels":[],"nights":1,"adults":2,"currency":"USD","max_results":500},"unit_cap":400}'
    
    # Follow it until it ends, then read its rows, with the id the first call answered
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start the run, wait for it to end, and get its rows
    params = {
        "hotels": [
            "Strand Palace",
            "Hotel AMANO Covent Garden",
            "Page8",
            "The Royal Horseguards Hotel",
        ],
        "city": "London",
        "booking_pages": [
            "https://www.booking.com/hotel/gb/strandpalace.html",
            "https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html",
            "https://www.booking.com/hotel/gb/page-8.html",
            "https://www.booking.com/hotel/gb/royalhorseguards.html",
        ],
        "days_ahead": [7, 14, 30],
        "makemytrip_hotels": [],
        "nights": 1,
        "adults": 2,
        "currency": "USD",
        "max_results": 500,
    }
    result = client.run_formula("hotel-rate-shop", params, unit_cap=400)
    print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
    
    # Read its rows, best first: pages are fetched as you go
    for row in result:
        print(row.data)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start the run, wait for it to end, and get its rows
    const params = {
      hotels: [
        "Strand Palace",
        "Hotel AMANO Covent Garden",
        "Page8",
        "The Royal Horseguards Hotel",
      ],
      city: "London",
      booking_pages: [
        "https://www.booking.com/hotel/gb/strandpalace.html",
        "https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html",
        "https://www.booking.com/hotel/gb/page-8.html",
        "https://www.booking.com/hotel/gb/royalhorseguards.html",
      ],
      days_ahead: [7, 14, 30],
      makemytrip_hotels: [],
      nights: 1,
      adults: 2,
      currency: "USD",
      max_results: 500,
    };
    const { run, rows } = await client.runFormula("hotel-rate-shop", params, { unitCap: 400 });
    console.log(run.id, run.status, run.rows_total, run.units_spent);
    
    // Read its rows, best first: pages are fetched as you go
    for await (const row of rows) console.log(row.data);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
    	defer cancel()
    
    	// Start the run, wait for it to end, and get its rows
    	params := map[string]any{"hotels": []any{"Strand Palace", "Hotel AMANO Covent Garden", "Page8", "The Royal Horseguards Hotel"}, "city": "London", "booking_pages": []any{"https://www.booking.com/hotel/gb/strandpalace.html", "https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html", "https://www.booking.com/hotel/gb/page-8.html", "https://www.booking.com/hotel/gb/royalhorseguards.html"}, "days_ahead": []any{7, 14, 30}, "makemytrip_hotels": []any{}, "nights": 1, "adults": 2, "currency": "USD", "max_results": 500}
    	run, rows, err := client.RunFormula(ctx, "hotel-rate-shop", params, &enrichednow.RunFormulaParams{UnitCap: 400})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
    
    	// Read its rows, best first: pages are fetched as you go
    	for rows.Next() {
    		fmt.Println(string(rows.Current().Data))
    	}
    	if err := rows.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.FormulaResult;
    import com.enrichednow.FormulaRunOptions;
    import com.enrichednow.models.FormulaRow;
    import java.util.List;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start the run, wait for it to end, and get its rows
            FormulaResult result = client.runFormula("hotel-rate-shop", Map.of("hotels", List.of("Strand Palace", "Hotel AMANO Covent Garden", "Page8", "The Royal Horseguards Hotel"), "city", "London", "booking_pages", List.of("https://www.booking.com/hotel/gb/strandpalace.html", "https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html", "https://www.booking.com/hotel/gb/page-8.html", "https://www.booking.com/hotel/gb/royalhorseguards.html"), "days_ahead", List.of(7, 14, 30), "makemytrip_hotels", List.of(), "nights", 1, "adults", 2, "currency", "USD", "max_results", 500), FormulaRunOptions.builder().unitCap(400).build());
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
    
            // Read its rows, best first: pages are fetched as you go
            for (FormulaRow row : result.rows()) {
                System.out.println(row.data());
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow formulas run hotel-rate-shop --params-json '{"hotels":["Strand Palace","Hotel AMANO Covent Garden","Page8","The Royal Horseguards Hotel"],"city":"London","booking_pages":["https://www.booking.com/hotel/gb/strandpalace.html","https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html","https://www.booking.com/hotel/gb/page-8.html","https://www.booking.com/hotel/gb/royalhorseguards.html"],"days_ahead":[7,14,30],"makemytrip_hotels":[],"nights":1,"adults":2,"currency":"USD","max_results":500}' --unit-cap 400

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    {
      "name": "run_formula",
      "arguments": {
        "formula_id": "hotel-rate-shop",
        "params": {
          "hotels": [
            "Strand Palace",
            "Hotel AMANO Covent Garden",
            "Page8",
            "The Royal Horseguards Hotel"
          ],
          "city": "London",
          "booking_pages": [
            "https://www.booking.com/hotel/gb/strandpalace.html",
            "https://www.booking.com/hotel/gb/amano-covent-garden-greater-london1.html",
            "https://www.booking.com/hotel/gb/page-8.html",
            "https://www.booking.com/hotel/gb/royalhorseguards.html"
          ],
          "days_ahead": [
            7,
            14,
            30
          ],
          "makemytrip_hotels": [],
          "nights": 1,
          "adults": 2,
          "currency": "USD",
          "max_results": 500
        }
      }
    }

    It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.

    Example response

    The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended ok with 24 rows, after 24 scraper calls charged 24 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.

    JSON
    [
      {
        "hotel": "The Royal Horseguards Hotel & One Whitehall Place, London",
        "site": "Google Hotels",
        "days_ahead": 7,
        "check_in": "2026-12-01",
        "check_out": "2026-12-02",
        "nightly_price": 412,
        "currency": "USD",
        "available": true,
        "change": "New",
        "previous_price": null,
        "refundable_price": null,
        "room": null,
        "cancellation": null,
        "meals": null,
        "stay_total_with_taxes": 495,
        "deal": "GREAT PRICE: for a 5-star hotel",
        "offers": null,
        "stars": 5,
        "rating": 4.4,
        "asked_for": "The Royal Horseguards Hotel",
        "link": "https://www.google.com/travel/hotels/entity/ChcItsP8i43p0JaZARoKL20vMDR5ZHhxMhAB",
        "score": 20
      },
      {
        "hotel": "Hotel AMANO Covent Garden",
        "site": "Google Hotels",
        "days_ahead": 7,
        "check_in": "2026-12-01",
        "check_out": "2026-12-02",
        "nightly_price": 498,
        "currency": "USD",
        "available": true,
        "change": "New",
        "previous_price": null,
        "refundable_price": null,
        "room": null,
        "cancellation": null,
        "meals": null,
        "stay_total_with_taxes": 598,
        "deal": null,
        "offers": null,
        "stars": 4,
        "rating": 4.2,
        "asked_for": "Hotel AMANO Covent Garden",
        "link": "https://www.google.com/travel/hotels/entity/ChkIkPSnjOyb-dNjGg0vZy8xMXJuNWd4Y2Z6EAE",
        "score": 10
      },
      {
        "hotel": "Page8 - Page Hotels",
        "site": "Google Hotels",
        "days_ahead": 7,
        "check_in": "2026-12-01",
        "check_out": "2026-12-02",
        "nightly_price": 415,
        "currency": "USD",
        "available": true,
        "change": "New",
        "previous_price": null,
        "refundable_price": null,
        "room": null,
        "cancellation": null,
        "meals": null,
        "stay_total_with_taxes": 498,
        "deal": null,
        "offers": null,
        "stars": null,
        "rating": 4.6,
        "asked_for": "Page8",
        "link": "https://www.google.com/travel/hotels/entity/ChoIyNfJuaLn68mwARoNL2cvMTFwY3BrY3ExNBAB",
        "score": 10
      }
    ]

    Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.

    Pricing

    A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 400 units unless you give another (at least 1, at most 3000).

    With the answers above, a run is estimated at about 24 units for about 24 rows, and at most 24: 24 lookups across 2 sources, about 24 rows. An estimate for no history; POST /v1/formulas/hotel-rate-shop/estimate gives yours, free.

    A preview, mode: preview, is the first 10 rows, charged at what they cost: about 24 units with the answers above. POST /v1/formulas/hotel-rate-shop/estimate with mode: preview gives yours, free.

    How a playbook is charged has the rule for every playbook.