{
  "openapi": "3.0.1",
  "info": {
    "title": "Resident Advisor Scraper - Events, Clubs, DJs & Promoter Leads",
    "description": "Scrape Resident Advisor (ra.co): electronic music events, lineups, ticket prices, genres & attendance by city + date, plus club/venue leads (address, phone, capacity), DJ/artist profiles with booking emails & socials, and promoter leads. Monitor mode. Keyless, no browser.",
    "version": "1.0",
    "x-build-id": "3cA31dQr5K3cUKOLe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~resident-advisor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-resident-advisor-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~resident-advisor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-resident-advisor-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~resident-advisor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-resident-advisor-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "events",
              "venues",
              "artists",
              "promoters"
            ],
            "type": "string",
            "description": "Choose the entity type to scrape. <b>Events</b> = gigs/club nights/festivals by city + date (richest event data on the store). <b>Clubs/venues</b>, <b>Artists/DJs</b> and <b>Promoters</b> = lead records (contact, socials, booking emails). You can also paste any ra.co URL in <b>Start URLs</b> and it is auto-routed regardless of mode.",
            "default": "events"
          },
          "areas": {
            "title": "Cities / areas",
            "type": "array",
            "description": "Cities to scrape for <b>events</b>, <b>venues</b> and <b>promoters</b> modes. Accepts an RA city path from the URL (<code>uk/london</code>, <code>us/losangeles</code>, <code>de/berlin</code>), a plain city name (<code>Berlin</code>, <code>New York City</code>), or a numeric RA area id (<code>34</code>). Find the path in any RA events URL: <code>ra.co/events/<b>de/berlin</b></code>.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (artists/DJs)",
            "type": "array",
            "description": "Used in <b>artists</b> mode — names of DJs/artists to look up (<code>Boys Noize</code>, <code>Charlotte de Witte</code>). Each is resolved via RA search and the top match is scraped. Also works as a free-text resolver in other modes.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (any ra.co page)",
            "type": "array",
            "description": "Direct ra.co URLs, auto-routed by type: events (<code>/events/123456</code>), clubs/venues (<code>/clubs/5031</code>), artists/DJs (<code>/dj/boysnoize</code>), promoters (<code>/promoters/8711</code>), or a city events page (<code>/events/de/berlin</code>). Processed in addition to the cities/terms above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Events mode only — include events on or after this date (YYYY-MM-DD). Defaults to today."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Events mode only — include events on or before this date (YYYY-MM-DD). Defaults to 3 months after Date from."
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Events mode only — keep only events tagged with at least one of these genres (matched against RA genre names/slugs, case-insensitive). Examples: <code>techno</code>, <code>house</code>, <code>drum-and-bass</code>, <code>minimal-deep-tech</code>, <code>disco</code>, <code>trance</code>. Leave empty for all genres.",
            "items": {
              "type": "string"
            }
          },
          "festivalsOnly": {
            "title": "Festivals only",
            "type": "boolean",
            "description": "Events mode only — keep only multi-day / festival events.",
            "default": false
          },
          "includeEventDetail": {
            "title": "Include extended event detail (set times + player links)",
            "type": "boolean",
            "description": "Events mode only — fetch one extra call per event to add DJ <b>set times</b>, embedded <b>SoundCloud/Mixcloud player links</b>, and multi-day child events. Core fields (lineup, genres, ticket cost, description, full venue, attendance) come from the listing and do not need this.",
            "default": false
          },
          "enrichArtists": {
            "title": "Enrich event lineups with artist/DJ detail",
            "type": "boolean",
            "description": "Events mode only — for every unique artist in the lineups, fetch their RA profile to attach booking emails, website, socials and follower count, and emit a deduplicated artist lead record (type = \"artist\").",
            "default": false
          },
          "crawlWebsiteContacts": {
            "title": "Crawl websites for contact emails & phones",
            "type": "boolean",
            "description": "For venues, promoters and artists that publish a website, crawl it (home + contact/about, up to 3 pages) to extract contact <b>emails</b>, <b>phone numbers</b> and extra social links — the lead-gen wedge. RA itself rarely exposes promoter emails, so this is the way to get them. Adds page fetches only for records that actually have a website.",
            "default": false
          },
          "venueOrderBy": {
            "title": "Order venues / promoters by",
            "enum": [
              "POPULAR",
              "LATEST",
              "ALPHABETICAL"
            ],
            "type": "string",
            "description": "Venues & promoters modes — ordering of the per-city list.",
            "default": "POPULAR"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of primary records (events / venues / artists / promoters) to scrape across all inputs.",
            "default": 200
          },
          "deduplicateResults": {
            "title": "Deduplicate results",
            "type": "boolean",
            "description": "Skip duplicate records within a run (by id).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new records)",
            "type": "boolean",
            "description": "Remember ids across runs in a named key-value store and output <b>only records not seen before</b>. Combine with Apify Schedules to watch a city for newly announced events, new venues or new promoters. Does not conflict with the platform scheduler — the scheduler triggers the run; monitor mode decides what is new.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store used to remember seen ids for monitor mode. Use a different name per saved task to track them independently.",
            "default": "resident-advisor-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of parallel requests.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The RA GraphQL API works fine on Apify datacenter proxy (the default). Switch to residential only if you hit occasional blocks at high volume.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}