# Priceline Hotel Scraper (`jupri/priceline-hotel-scraper`) Actor

Scrape Priceline.com Hotels

- **URL**: https://apify.com/jupri/priceline-hotel-scraper.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Travel, Real estate
- **Stats:** 19 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### Welcome To Priceline.com Hotel Scraper

<img src="https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png" width="200" height="250"/>

#### About Priceline.com

<img src="https://s1.pclncdn.com/design-assets/gns/priceline.svg" height="120">

**Priceline.com** is an [online travel agency](https://en.wikipedia.org/wiki/Online_travel_agency "Online travel agency") for finding [discount](https://en.wikipedia.org/wiki/Discounts_and_allowances "Discounts and allowances") rates for [travel](https://en.wikipedia.org/wiki/Travel "Travel")-related purchases such as [airline](https://en.wikipedia.org/wiki/Airline "Airline") tickets and [hotel](https://en.wikipedia.org/wiki/Hotel "Hotel") stays. The company facilitates the provision of travel services from its suppliers to its clients. Priceline.com is headquartered in [Norwalk, Connecticut](https://en.wikipedia.org/wiki/Norwalk,_Connecticut "Norwalk, Connecticut"), [United States](https://en.wikipedia.org/wiki/United_States "United States") and is wholly owned by [Booking Holdings](https://en.wikipedia.org/wiki/Booking_Holdings "Booking Holdings"), which also owns [Kayak.com](https://en.wikipedia.org/wiki/Kayak.com "Kayak.com"), [Booking.com](https://en.wikipedia.org/wiki/Booking.com "Booking.com") and other sites. The company was founded in 1997. It operates in more than 200 countries and territories around the world and has partnerships with over 400 airlines and 300,000 hotels. Users can search for travel deals and discounts on the website, and they can also use the "Name Your Own Price" feature to bid on hotel rooms and flights.

#### About This Actor

Search, filters and Scrape hotels data on specific date and location from Priceline.com.

#### Tutorial

*`... almost there ...`*

# Actor input Schema

## `query` (type: `string`):

💡 Location

## `limit` (type: `integer`):

💡 Number of Results

## `sort` (type: `string`):

No description

## `hotel` (type: `string`):

Hotel Name

## `express_deal` (type: `boolean`):

No description

## `adults` (type: `integer`):

Number of Adults

## `children` (type: `integer`):

Number of Children

## `infants` (type: `integer`):

Number of Infants

## `rooms` (type: `integer`):

Number of Rooms

## `checkin` (type: `string`):

YYYY-MM-DD

## `checkout` (type: `string`):

YYYY-MM-DD

## `currency` (type: `string`):

No description

## `minprice` (type: `integer`):

No description

## `maxprice` (type: `integer`):

No description

## `freecancel` (type: `boolean`):

No description

## `paylater` (type: `boolean`):

No description

## `include.description` (type: `boolean`):

Hotel Description

## `include.images` (type: `integer`):

Number of Images

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## Actor input object example

```json
{
  "query": "New York, NY"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "New York, NY"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/priceline-hotel-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "query": "New York, NY" }

# Run the Actor and wait for it to finish
run = client.actor("jupri/priceline-hotel-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "New York, NY"
}' |
apify call jupri/priceline-hotel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jupri/priceline-hotel-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/a8Spk7lTPcHXHbtwa/builds/5vUBl5TU8uZ404D9O/openapi.json
