# Accor Hotel Availabilities (`scratchyscraper/accor-availabilities`) Actor

Scrape Accor hotel room availability and prices by date, including room types, inventory, and minimum rates.

- **URL**: https://apify.com/scratchyscraper/accor-availabilities.md
- **Developed by:** [Scratchy Scraper](https://apify.com/scratchyscraper) (community)
- **Categories:**
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 days

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## 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

## Accor Availabilities

Returns hotel and room-type availability with the minimum price for each room type.

The Actor checks each consecutive date independently for a one-night stay. Guest counts are sent
with each request, and every child is treated as 8 years old.

### Input

```json
{
  "hotel_id": "1295"
}
```

This checks seven days of availability starting today for one adult and no children.

#### Finding the hotel ID

1. Go to [Accor's worldwide hotel search](https://all.accor.com/a/en/destination/world/hotels.html).
2. Search for the hotel using any check-in and check-out dates.
3. Open the hotel from the search results and inspect the resulting URL. It should look like:

   ```text
   https://all.accor.com/booking/en/accor/hotel/1295?dateIn=2026-09-08&nights=1&compositions=1&stayplus=false&snu=false&accessibleRooms=false&hideWDR=false&productCode=null&hideHotelDetails=false
   ```

The hotel ID is the four-character value after `/hotel/` and before `?`. In this example, the
`hotel_id` is `1295`.

### Output

The Actor writes one item per date to the default dataset:

```json
[
  {
    "date": "2026-09-08",
    "rooms_available": 3,
    "by_room_type": [
      {
        "room_type": "Standard Room with 1 double bed",
        "rooms_available": 3,
        "min_price": {
          "currency": "EUR",
          "amount": 117.73
        }
      }
    ]
  },
  {
    "date": "2026-09-09",
    "rooms_available": 10,
    "by_room_type": [
      {
        "room_type": "Standard Room with 1 double bed",
        "rooms_available": 8,
        "min_price": {
          "currency": "EUR",
          "amount": 99.72
        }
      },
      {
        "room_type": "Standard Room with two single beds",
        "rooms_available": 2,
        "min_price": {
          "currency": "EUR",
          "amount": 99.72
        }
      }
    ]
  }
]
```

`rooms_available` is Accor's left to sale inventory at the hotel or room-type level. `min_price` is
the lowest available after-tax offer price for that room type.

### More examples

#### Get the next 30 days

Set `days` to `30`. Each date is checked independently for a one-night stay.

```json
{
  "hotel_id": "1295",
  "days": 30
}
```

#### Start from a specific date

Set `from_date` to the first check-in date to check:

```json
{
  "hotel_id": "1295",
  "from_date": "2027-06-15"
}
```

#### Change the number of guests

```json
{
  "hotel_id": "1295",
  "adults": 2,
  "children": 1
}
```

Every child is treated as 8 years old.

#### Combine options

Get availability from January 1 through January 7, 2027, for two adults and one child:

```json
{
  "hotel_id": "1295",
  "from_date": "2027-01-01",
  "days": 7,
  "adults": 2,
  "children": 1
}
```

### Input reference

- `hotel_id` **required** four-character Accor hotel ID, including leading zeroes.
- `from_date` ***(optional)*** defaults to today and is the first check-in date.
- `days` ***(optional)*** defaults to `7` and is the number of consecutive check-in dates to check.
- `adults` ***(optional)*** defaults to `1`.
- `children` ***(optional)*** defaults to `0`. Each child is submitted to Accor as 8 years old.

# Actor input Schema

## `hotel_id` (type: `string`):

Four-character Accor hotel ID, including leading zeroes (for example, 1295).

## `from_date` (type: `string`):

First date to check. Defaults to today.

## `days` (type: `integer`):

Number of consecutive check-in dates to check.

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

Number of adults staying in the room.

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

Number of children. Each child is treated as 8 years old.

## Actor input object example

```json
{
  "hotel_id": "1295",
  "from_date": null,
  "days": 7,
  "adults": 1,
  "children": 0
}
```

# Actor output Schema

## `results` (type: `string`):

Daily hotel and room-type availability with minimum prices.

## `chart` (type: `string`):

Daily room-type availability and minimum prices visualized as charts.

# 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 = {
    "hotel_id": "1295"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scratchyscraper/accor-availabilities").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 = { "hotel_id": "1295" }

# Run the Actor and wait for it to finish
run = client.actor("scratchyscraper/accor-availabilities").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "hotel_id": "1295"
}' |
apify call scratchyscraper/accor-availabilities --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scratchyscraper/accor-availabilities"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zCPleiANr8DTdp8hv/builds/ynAVqE4q5mP7FgtmE/openapi.json
