# Resident Advisor Events Scraper (`whatsup/ra-events-scraper`) Actor

Scrapes events from Resident Advisor by areas, returning event details, lineup, venue, tickets, and genres.

- **URL**: https://apify.com/whatsup/ra-events-scraper.md
- **Developed by:** [José Victor S.](https://apify.com/whatsup) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 40 total users, 8 monthly users, 99.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $10.00 / 1,000 valid events

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## Resident Advisor Events Scraper

Apify Actor that scrapes upcoming events from [Resident Advisor](https://ra.co) by area. Returns full event details including lineup, venue, tickets, genres, and images.

> ⚠️ **Maximum Query Range:** The maximum allowed interval between `dateFrom` and `dateTo` is **30 days**. Specifying a range larger than 30 days will cause the Actor to fail validation and abort.

### Features

- Scrape events from **any RA area** using just the country code and area name from the URL
- Configurable **date range** and **event count** per area
- Rich event data: lineup, venue with GPS coordinates, tickets, genres, images
- **Pay-per-event** pricing — you only pay for valid results

### How to find the area parameters

The `countryCode` and `areaUrlName` can be obtained directly from any Resident Advisor events URL:

```
https://ra.co/events/{countryCode}/{areaUrlName}
```

For example:

| URL | `countryCode` | `areaUrlName` |
|-----|---------------|---------------|
| `https://ra.co/events/pt/algarve` | `pt` | `algarve` |
| `https://ra.co/events/uk/london` | `uk` | `london` |
| `https://ra.co/events/de/berlin` | `de` | `berlin` |

Simply navigate to <https://ra.co/events>, select your desired city/region from the location dropdown, and extract the two path segments from the resulting URL.

### Input

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `areas` | `string[]` | ✅ Yes | — | List of areas in `countryCode/areaUrlName` format (e.g. `pt/algarve`) |
| `count` | `integer` | No | `50` | Max events to return per area (1–100) |
| `dateFrom` | `string` | No | Today | Start date (`YYYY-MM-DD`). Requires `dateTo` |
| `dateTo` | `string` | No | Today + 30 days | End date (`YYYY-MM-DD`). Requires `dateFrom` |

#### Date range rules

- If **neither** `dateFrom` nor `dateTo` is provided, the Actor defaults to **today → today + 30 days**
- If **one** is provided, the **other is also required** (both or neither)
- The maximum interval between `dateFrom` and `dateTo` is **30 days**

#### Input example

```json
{
    "areas": ["pt/algarve", "pt/faro", "uk/london"],
    "count": 20,
    "dateFrom": "2026-04-01",
    "dateTo": "2026-04-30"
}
```

### Output

Each event is pushed to the default dataset as a JSON object:

```json
{
    "id": "2399610",
    "title": "Example Event",
    "description": "Event description text...",
    "minAge": "18",
    "price": "€15",
    "url": "https://ra.co/events/2399610",
    "timezone": "Europe/Lisbon",
    "startTime": "2026-04-05T23:00:00.000+01:00",
    "endTime": "2026-04-06T06:00:00.000+01:00",
    "lineup": ["Artist 1", "Artist 2", "Artist 3"],
    "isFestival": false,
    "hasSecretVenue": false,
    "isLive": true,
    "images": [
        {
            "id": "123",
            "url": "https://ra.co/images/events/flyer/...",
            "alt": "Event flyer",
            "type": "FLYERFRONT",
            "crop": null
        }
    ],
    "venue": {
        "id": "456",
        "name": "Club Name",
        "address": "123 Street, City",
        "url": "https://ra.co/clubs/456",
        "isLive": true,
        "lat": 37.0194,
        "lng": -7.9304
    },
    "promoters": [
        { "id": "789", "name": "Promoter Name" }
    ],
    "tickets": [
        {
            "id": "101",
            "title": "Early Bird",
            "type": "FULL_EVENT",
            "saleStart": "2026-03-01T00:00:00.000",
            "price": 15.0,
            "isAddOn": false,
            "currency": "EUR"
        }
    ],
    "genres": [
        { "id": "1", "name": "Techno", "slug": "techno" },
        { "id": "2", "name": "House", "slug": "house" }
    ]
}
```

### Pricing

This Actor uses Apify's **Pay-Per-Event** model. You are charged **$0.01 per valid event** scraped.

An event is considered valid when it contains: `id`, `title`, `startTime`, `venue.name`, and `url`. Invalid or incomplete events are not pushed to the dataset and are not charged.

### Disclaimer

> **⚠️ Use at your own risk.**

This Actor is provided for **educational and personal use only**. By using this software, you acknowledge and agree to the following:

- **You are solely responsible** for ensuring that your use of this Actor complies with [Resident Advisor's Terms of Service](https://ra.co/terms), their `robots.txt` rules, and any other applicable policies or laws.
- **The author(s) are not responsible** for any misuse, including but not limited to: intensive scraping that overloads RA's servers, commercial use of scraped data without permission, or any violation of RA's terms and conditions.
- **Respect rate limits.** Excessive requests may result in your IP or account being blocked by Resident Advisor.
- **This software is provided "as is"**, without warranty of any kind, express or implied. The author(s) shall not be held liable for any damages, legal claims, or consequences arising from the use of this Actor.

# Actor input Schema

## `areas` (type: `array`):

Areas to scrape, in the format countryCode/areaUrlName (e.g. pt/algarve, uk/london). Found in the RA URL: https://ra.co/events/{countryCode}/{areaUrlName}

## `count` (type: `integer`):

Maximum number of events to return per area.

## `dateFrom` (type: `string`):

Start date for events (YYYY-MM-DD). If set, Date To is also required. Max 30-day interval. Defaults to today.

## `dateTo` (type: `string`):

End date for events (YYYY-MM-DD). If set, Date From is also required. Max 30-day interval. Defaults to today + 30 days.

## Actor input object example

```json
{
  "areas": [
    "pt/algarve"
  ],
  "count": 50
}
```

# Actor output Schema

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

No description

# 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 = {
    "areas": [
        "pt/algarve"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("whatsup/ra-events-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 = { "areas": ["pt/algarve"] }

# Run the Actor and wait for it to finish
run = client.actor("whatsup/ra-events-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 '{
  "areas": [
    "pt/algarve"
  ]
}' |
apify call whatsup/ra-events-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/YhDMSMauck8kaJhOy/builds/09bTBvWMYLRhFQt4o/openapi.json
