# Sleeper Bus Booking

**Use case:** 

Review Sleeper Bus Booking options from Bengaluru to Chennai in the India redBus market. This task searches 14 days from now for AC Sleeper buses that depart from 18:00 to 23:59. Review operators, schedules, fares, seats, boarding and dropping locations, ratings, and source details. It does not book tickets.

## Input

```json
{
  "market": "in",
  "origin": "Bengaluru",
  "destination": "Chennai",
  "travelDate": "14 days from now",
  "busTypes": [
    "AC Sleeper"
  ],
  "departureWindow": {
    "from": "18:00",
    "to": "23:59"
  },
  "onlyAvailableSeats": false
}
```

## Output

```json
{
  "route": {
    "label": "Route",
    "format": "object"
  },
  "service": {
    "label": "Service",
    "format": "object"
  },
  "travelDate": {
    "label": "Travel date",
    "format": "string"
  },
  "schedule": {
    "label": "Schedule",
    "format": "object"
  },
  "durationMinutes": {
    "label": "Duration in minutes",
    "format": "integer"
  },
  "fare": {
    "label": "Fare",
    "format": "object"
  },
  "seatAvailability": {
    "label": "Seat availability",
    "format": "object"
  },
  "boardingLocations": {
    "label": "Boarding locations",
    "format": "array"
  },
  "droppingLocations": {
    "label": "Dropping locations",
    "format": "array"
  },
  "ratings": {
    "label": "Ratings",
    "format": "object"
  },
  "amenities": {
    "label": "Amenities",
    "format": "array"
  },
  "cancellationStatus": {
    "label": "Cancellation status",
    "format": "string"
  },
  "reschedulingStatus": {
    "label": "Rescheduling status",
    "format": "string"
  },
  "liveTrackingAvailable": {
    "label": "Live tracking available",
    "format": "boolean"
  },
  "mTicketAvailable": {
    "label": "M-ticket available",
    "format": "boolean"
  },
  "offers": {
    "label": "Offers",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [redBus Scraper](https://apify.com/maximedupre/redbus.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/redbus.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/maximedupre/redbus.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
