# Virgin Australia Fares Scraper — Daily Prices & Velocity Points (`he_work/virgin-australia-fares-scraper`) Actor

Cheapest Virgin Australia fare for every day on any route: cash price, fare brand and seats left, or Velocity Reward Seat points availability. Also all current Virgin Australia sale fares.

- **URL**: https://apify.com/he_work/virgin-australia-fares-scraper.md
- **Developed by:** [HE Work](https://apify.com/he_work) (community)
- **Categories:** Travel, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 1,000 fare rows

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Virgin Australia Fares Scraper — Daily Prices & Velocity Points

> ✅ **Checked daily.** An automated test runs this Actor on the Apify cloud every day and checks that it still returns real data, so if the website changes and something breaks, it's caught the same day and fixed.

Track **Virgin Australia airfares** for every day on any route:

1. **Fare calendar (cash):** the cheapest Virgin Australia fare for **every day**, up to ~11 months ahead. Each day includes the total price, base fare, taxes, fare brand (Economy Lite / Choice / Flex, Business), booking class and seats remaining.
2. **Velocity points calendar:** **Reward Seat availability** (points + taxes, seats left, days with no reward seats), or the points price for any seat. Useful for award-seat alerts and points-value tracking.
3. **Sale fares:** every fare on Virgin Australia's Specials page, with the travel periods, prices and sale end dates.

Give it routes like `BNE-SYD`, or an airport like `BNE` to cover **every Virgin Australia destination from Brisbane**. Domestic, short-haul international (Bali, Fiji, New Zealand…) and long-haul partner routes are supported.

Prices come from the same pricing service that powers the date picker on virginaustralia.com.

### Use cases

- Fare alerts, "cheapest day to fly" tools and price-history charts.
- Velocity Reward Seat alerts: get notified when reward seats open up on a route.
- Competitor price monitoring for travel agents, OTAs and airlines.
- Travel deal sites and newsletters.

### Calendar output (one row per route per day)

| Field | Example |
|---|---|
| `origin`, `destination`, `date` | `BNE`, `SYD`, `2026-11-20` |
| `available`, `status` | `true`, `AVAILABLE` |
| `price`, `base_fare`, `taxes`, `currency` | `127.01`, `83.21`, `43.8`, `AUD` (cash pricing) |
| `points`, `taxes_aud`, `points_only_total` | `9900`, `46.48`, `17800` (Velocity pricing) |
| `fare_brand`, `booking_class`, `seats_remaining` | `Economy Lite`, `M`, `9` |
| `cabin`, `pricing`, `route_type` | `Economy`, `Cash (AUD)`, `Domestic` |
| `booking_url` | link to that day's search on virginaustralia.com |

### Sale fares output (one row per sale fare)

`origin`, `origin_name`, `destination`, `destination_name`, `deal_price`, `currency`, `trip_type`, `cabin`, `fare_brand`, `category`, `connection`, `sale_name`, `sale_start`, `sale_end`, `travel_from`, `travel_to`, `travel_periods` (each period's dates, price and fare brand), `promo_code`, `deal_url`.

### Input

| Field | Default | Description |
|---|---|---|
| `mode` | `calendar` | `calendar` or `deals` |
| `routes` | – | IATA pairs like `BNE-SYD`, `MEL-OOL`, `SYD-DPS` |
| `origins` | – | Every destination from these airports (e.g. `BNE`) |
| `routeTypes` | `DOM`, `SHI` | For `origins`: `DOM` domestic, `SHI` short-haul international, `LHI` long-haul partner routes |
| `includeReturn` | `false` | Also fetch the reverse direction |
| `pricing` | `cash` | `cash`, `reward_seat` (Velocity Reward Seats) or `points_any_seat` |
| `cabin` | `economy` | `economy` or `business` |
| `startDate`, `days` | tomorrow, `60` | Calendar window (up to 330 days) |
| `promoCode` | – | Price with a Virgin Australia promo code |
| `dealOrigins` | – | Deals mode: only these departure airports |
| `maxResults` | `2000` | Hard cap on rows (and cost) for the run |

#### Example: Velocity Reward Seats from Brisbane to every domestic destination for 3 months

```json
{
  "mode": "calendar",
  "origins": ["BNE"],
  "routeTypes": ["DOM"],
  "pricing": "reward_seat",
  "days": 90,
  "maxResults": 5000
}
```

A run report (per-route status and priced days) is saved to the key-value store record `OUTPUT`.

### Example output

One item from a real run (long texts shortened):

```json
{
  "airline": "Virgin Australia",
  "origin": "BME",
  "origin_name": "Broome",
  "destination": "PER",
  "destination_name": "Perth",
  "deal_price": 256,
  "currency": "AUD",
  "trip_type": "One Way",
  "cabin": "Economy",
  "fare_brand": "Economy Lite",
  "category": "Domestic",
  "connection": "DIRECT",
  "sale_name": "Book Early Fares",
  "sale_start": "2026-10-29T14:01:00+00:00",
  "sale_end": "2026-11-17T13:59:00+00:00",
  "travel_from": "2027-01-05",
  "travel_to": "2027-08-25",
  "travel_periods": [
    {
      "from": "2027-01-05",
      "to": "2027-08-25",
      "price": 256,
      "fare_brand": "Economy Lite"
    }
  ],
  "promo_code": "",
  "deal_url": "https://www.virginaustralia.com/au/en/specials/book-early-fares/",
  "scraped_at": "2026-11-05T12:20:11+00:00"
}
```

### How it compares

| | This Actor | Typical alternative |
|---|---|---|
| Fields per result | 28 (see *Example output*) | Varies by actor |
| Freshness | Read live from the source when the run starts | Varies |
| Reliability | Tested daily by an automated run on the Apify cloud (see the top of this page) | — |
| Price | $1.00 per 1,000 fare rows | $0.20–$2.50 per 1,000 results (comparable Actors on the Apify Store, 6 Nov 2026) |

### Pricing

Pay per result, no monthly fee:

- **$1.00 per 1,000 fare rows**: One route-day fare (cash or points) or sale fare delivered to your dataset.
- $0.0025 per run (start).

Bronze plans pay 5% less, Silver 10% less, Gold and above 15% less.

**Examples:** 1,000 fare rows = $1.00; 10,000 = $10.00.

### FAQ

**How do I run it on a schedule?** Create a task with your input and add a schedule in Apify Console (e.g. daily at 6 am). Each run writes a fresh dataset.

**How do I get the data?** Download the dataset as JSON, CSV, Excel, XML or HTML from the run page, or read it with the Apify API / Python and JavaScript clients. Integrations (Google Sheets, Make, Zapier, n8n, webhooks) work out of the box.

**Do I need proxies or an account on the site?** No. Proxies are handled inside the Actor and included in the price; no login is needed.

**What if a run returns fewer results than expected?** Check the run's key-value store `OUTPUT` record (when present) for a per-request report, then open an issue on the Issues tab with the run link and we'll look into it.

**Is it legal?** The Actor only collects publicly available data. You are responsible for using it in line with the website's terms, copyright and data-protection rules (GDPR, CCPA) — don't collect personal data you have no legal basis for.

### Notes

- Prices are one-way, per adult, for the cheapest fare that day, in AUD (cash) or Velocity points. Availability changes constantly and isn't held.
- Each route takes about 2 seconds per 180 days, so a full "all domestic destinations from BNE for 6 months" run finishes in a few minutes.
- Not affiliated with Virgin Australia or Velocity Frequent Flyer.

# Actor input Schema

## `mode` (type: `string`):

What to collect.

## `routes` (type: `array`):

Calendar mode: airport pairs like BNE-SYD (IATA codes).

## `origins` (type: `array`):

Calendar mode, optional: e.g. BNE collects every Virgin Australia destination from Brisbane (filtered by route type).

## `routeTypes` (type: `array`):

Which destinations to include when using 'All destinations from these airports'.

## `includeReturn` (type: `boolean`):

Also fetch SYD-BNE for BNE-SYD, etc.

## `pricing` (type: `string`):

Cash fares, or Velocity Frequent Flyer points prices.

## `cabin` (type: `string`):

Travel class.

## `startDate` (type: `string`):

Calendar mode, YYYY-MM-DD. Default: tomorrow.

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

Calendar mode: how many days from the start date (Virgin prices up to ~11 months ahead).

## `promoCode` (type: `string`):

Optional Virgin Australia promo code to price with.

## `dealOrigins` (type: `array`):

Deals mode: keep only sale fares departing these airports (empty = all).

## `maxResults` (type: `integer`):

Hard cap on rows (and cost) for the run.

## `proxyConfiguration` (type: `object`):

Not needed normally; used only to retry if Virgin Australia blocks the session. Left off, those retries go through Apify Proxy (the last one through an Australian residential IP).

## Actor input object example

```json
{
  "mode": "deals",
  "routes": [
    "BNE-SYD",
    "MEL-OOL"
  ],
  "routeTypes": [
    "DOM",
    "SHI"
  ],
  "includeReturn": false,
  "pricing": "cash",
  "cabin": "economy",
  "days": 60,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `fares` (type: `string`):

One row per route-day (calendar) or sale fare.

## `report` (type: `string`):

Per-route status.

# 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 = {
    "routes": [
        "BNE-SYD",
        "MEL-OOL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("he_work/virgin-australia-fares-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 = { "routes": [
        "BNE-SYD",
        "MEL-OOL",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("he_work/virgin-australia-fares-scraper").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 '{
  "routes": [
    "BNE-SYD",
    "MEL-OOL"
  ]
}' |
apify call he_work/virgin-australia-fares-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,he_work/virgin-australia-fares-scraper"
        }
    }
}
```

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/41XiqUHReR0ikvYcp/builds/yfHloinH9O7uvIrIH/openapi.json
