Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIPriceline

    priceline.hotels_search

    The hotels Priceline lists for a destination and a stay, priced: name, stars, brand, address, guest score, amenities, the price a night and the total with taxes.

    Id
    priceline.hotels_search
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/priceline.hotels_search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of priceline.hotels_search
    FieldTypeDescription
    destinationrequiredstringWhere to stay, as typed into Priceline's search box: a town (Chicago, Paris, France), a landmark or an airport, whose town is searched; or Priceline's id of a town (3000005381).Limit: at least 2 characters, at most 100 characters.
    check_instringThe day of arrival, YYYY-MM-DD. Without dates: one night, 14 days from today.Limit: matches ^\d{4}-\d{2}-\d{2}$.
    check_outstringThe day of departure, YYYY-MM-DD, after check_in and at most 30 nights later.Limit: matches ^\d{4}-\d{2}-\d{2}$.
    roomsintegerThe number of rooms.Limit: 1 to 8. Default: 1.
    adultsintegerThe number of adults, in all the rooms together.Limit: 1 to 16. Default: 2.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of priceline.hotels_search
    FieldTypeNotes
    positionintegerThe hotel's place on the page, from 1, in Priceline's own order.
    hotel_idstring or nullPriceline's id of the hotel. Null for an Express Deal, whose hotel Priceline names only after booking.
    namestringThe hotel's name; for an Express Deal, the description Priceline gives instead, e.g. A 4-Star Hotel in the Magnificent Mile Area.
    express_dealbooleanTrue for an Express Deal: a discounted hotel whose name and address Priceline reveals only after booking.
    urlstring or nullThe hotel's page on priceline.com for the same stay. Null for an Express Deal.
    sponsoredbooleanTrue when Priceline marks the hotel as promoted (a paid placement).
    star_ratingnumber or nullThe hotel's class in stars, e.g. 3.5.
    brandstring or nullThe hotel's brand, e.g. Curio Collection, when it belongs to one.
    brand_ownerstring or nullThe company that owns the brand, e.g. Hilton Worldwide.
    addressstring or nullThe street address. Null for an Express Deal.
    neighborhoodstring or nullThe neighbourhood Priceline places the hotel in.
    citystring or nullThe town the hotel is in, as Priceline names it (it can be a town near the one searched).
    state_codestring or nullThe state or province code, in the countries that have one, e.g. IL.
    country_codestring or nullThe country, as Priceline's two-letter code: mostly the ISO one (US, FR), with a few of its own (UK for the United Kingdom, JA for Japan).
    latitudenumber or nullThe latitude in decimal degrees. Null for an Express Deal.
    longitudenumber or nullThe longitude in decimal degrees.
    review_scorenumber or nullThe guests' overall score, out of 10.
    review_scoresarray of objectEvery score Priceline shows for the hotel, the overall one among them.
    label (in review_scores[])stringWhat is scored, as Priceline names it: Overall, Location, Cleanliness, Staff, ...
    score (in review_scores[])numberThe guests' score, out of 10.
    review_countinteger or nullHow many guest reviews the score is from. Where Priceline writes a round figure with a plus (600+ Reviews), the figure.
    amenitiesarray of stringThe amenities the card lists, e.g. Free Internet Access, Free Parking.
    badgesarray of stringThe labels Priceline puts on the hotel, e.g. Family Friendly, Top Booked.
    imagesarray of stringThe first photos of the hotel, as the results show them.
    price_per_nightnumber or nullThe lowest price a night for the stay, before taxes and fees, in currency, as the results page is first sent. The page asks again once it has loaded, and the figure it then shows can differ by a few dollars. Null when the hotel has no room for the stay.
    price_per_night_before_discountnumber or nullThe price a night before a reduction, when the results page states one.
    stay_pricenumber or nullThe price of the whole stay before taxes, for all the rooms: the large figure on the card.
    taxesnumber or nullThe taxes on the stay: total_price less stay_price.
    total_pricenumber or nullThe total for the stay with taxes and fees, as the card's Total line states it.
    currencystring or nullThe currency of the prices, e.g. USD.
    cancellationstring or nullWhat the card says of cancelling, e.g. Fully Refundable Rates; null when it says nothing.
    pay_laterboolean or nullTrue when the card offers to pay later, at the hotel or before the stay.
    check_instring (date)The day of arrival the prices are for.
    check_outstring (date)The day of departure the prices are for.
    total_resultsinteger or nullHow many hotels Priceline says it has for the stay, the same on every record.
    fetched_atstring (date-time)When Priceline answered, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/priceline.hotels_search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"destination":"Chicago","check_in":"2027-06-14","check_out":"2027-06-16"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("priceline.hotels_search", {
        "destination": "Chicago",
        "check_in": "2027-06-14",
        "check_out": "2027-06-16",
    })
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    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 a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("priceline.hotels_search", {
      destination: "Chicago",
      check_in: "2027-06-14",
      check_out: "2027-06-16",
    });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    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(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "priceline.hotels_search", map[string]any{"destination": "Chicago", "check_in": "2027-06-14", "check_out": "2027-06-16"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.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.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("priceline.hotels_search", Map.of("destination", "Chicago", "check_in", "2027-06-14", "check_out", "2027-06-16"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

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

    enrichednow run priceline.hotels_search --input destination=Chicago --input check_in=2027-06-14 --input check_out=2027-06-16

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

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "destination": "Chicago",
        "check_in": "2027-06-14",
        "check_out": "2027-06-16"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "priceline.hotels_search",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "destination": "Chicago",
        "check_in": "2027-06-14",
        "check_out": "2027-06-16"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "position": 1,
          "hotel_id": "266386204",
          "name": "Riu Plaza Chicago",
          "express_deal": false,
          "url": "https://www.priceline.com/relax/at/266386204/from/20270614/to/20270616/rooms/1",
          "sponsored": true,
          "star_rating": 4,
          "brand": "Riu Hotels and Resorts",
          "brand_owner": "RIU Hotels",
          "address": "150 E Ontario St, Streeterville",
          "neighborhood": "Magnificent Mile -Gold Coast",
          "city": "Chicago",
          "state_code": "IL",
          "country_code": "US",
          "latitude": 41.8936778,
          "longitude": -87.62323522,
          "review_score": 9.1,
          "review_scores": [
            {
              "label": "Location",
              "score": 9.7
            },
            {
              "label": "Cleanliness",
              "score": 9.4
            },
            {
              "label": "Staff",
              "score": 9.3
            }
          ],
          "review_count": 4457,
          "amenities": [
            "Free Internet Access",
            "Fitness Center",
            "Accessible Rooms/Facilities"
          ],
          "badges": [
            "Family Friendly",
            "Luxury"
          ],
          "images": [
            "https://assets.pclncdn.com/bstatic/xdata/images/hotel/582510393.jpg?k=39878d4ce42f9e7b0bf703384b6a8a7c5511952c076e416872554ee6987beb22&o=&a=2325679",
            "https://assets.pclncdn.com/bstatic/xdata/images/hotel/589595217.jpg?k=55b03963ba57315d5ccf156a68891816b5a7b8e36091d71d49ddaf51d122b172&o=&a=2325679",
            "https://assets.pclncdn.com/bstatic/xdata/images/hotel/596614855.jpg?k=cddcdd233fd5c9a79a992c33b5850617cb2168a83eb6ab44da97cb4598b3ac8c&o=&a=2325679"
          ],
          "price_per_night": 387.37,
          "price_per_night_before_discount": 430,
          "stay_price": 822.74,
          "taxes": 155.52,
          "total_price": 978.26,
          "currency": "USD",
          "cancellation": "Fully Refundable Rates",
          "pay_later": null,
          "check_in": "2027-06-14",
          "check_out": "2027-06-16",
          "total_results": 326,
          "fetched_at": "2026-11-19T21:13:52.943759Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: review_scores: 4 items, the first 3 shown.
    • Shortened: amenities: 4 items, the first 3 shown.
    • Shortened: images: 5 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Priceline scrapers are in their own section there.