{
  "openapi": "3.0.1",
  "info": {
    "title": "Resident Advisor Scraper - RA Events & New Event Monitor",
    "description": "Get Resident Advisor (ra.co) events by city, club, artist or promoter, or schedule it to get only new events, changed times, lineups, ticket prices and sold-out tickets, and events taken down. Many cities and clubs in one run. No login. JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "umyMKkfaRXsbUadKZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~resident-advisor-events-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-resident-advisor-events-monitor",
        "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/neverempty~resident-advisor-events-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-resident-advisor-events-monitor",
        "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/neverempty~resident-advisor-events-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-resident-advisor-events-monitor",
        "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": {
          "areas": {
            "title": "Cities",
            "type": "array",
            "description": "Cities as country/city the way ra.co writes them, such as uk/london, de/berlin, us/newyorkcity or nl/amsterdam, or a ra.co/events/... address. Leave every target field empty to run the example: London.",
            "items": {
              "type": "string"
            }
          },
          "venues": {
            "title": "Clubs and venues",
            "type": "array",
            "description": "Optional. A club's number or its ra.co/clubs/... address, for example 5031 or https://ra.co/clubs/5031.",
            "items": {
              "type": "string"
            }
          },
          "artists": {
            "title": "Artists",
            "type": "array",
            "description": "Optional. The name in an artist's ra.co/dj/... address, for example surgeon, or the whole address.",
            "items": {
              "type": "string"
            }
          },
          "promoters": {
            "title": "Promoters",
            "type": "array",
            "description": "Optional. A promoter's number or its ra.co/promoters/... address.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Resident Advisor URLs",
            "type": "array",
            "description": "Optional. Paste any mix of ra.co city, club, artist, promoter or single event addresses. A single event is checked on its own (useful to watch one event's tickets).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "startDate": {
            "title": "From date",
            "type": "string",
            "description": "Optional. First day to include, YYYY-MM-DD. Empty = today (the list then rolls forward by itself each day)."
          },
          "endDate": {
            "title": "Up to date",
            "type": "string",
            "description": "Optional. Last day to include, YYYY-MM-DD. Use this or Days ahead, not both."
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 1,
            "maximum": 730,
            "type": "integer",
            "description": "Optional. Only events from today up to this many days ahead, for example 30. Empty = every upcoming event."
          },
          "maxResultsPerSearch": {
            "title": "Max events per target",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many events to return for each target. Empty = 100. In Monitor mode this is the most new events returned per target in one run; the rest come in the next run."
          },
          "monitorMode": {
            "title": "Monitor mode (only new, changed and removed events)",
            "type": "boolean",
            "description": "Schedule this hourly or daily. The first run remembers the current events and returns one free row per target. Later runs return only events that are new, changed or taken off the list."
          },
          "includeChanges": {
            "title": "Return changed events",
            "type": "boolean",
            "description": "Monitor mode. Return a row when an event you have seen changes its title, date, times, venue, lineup, door price, ticket status or lowest ticket price, with the previous values. Empty = on."
          },
          "changeFields": {
            "title": "Changes to watch",
            "type": "array",
            "description": "Monitor mode. Only count changes to these. Empty = all of them.",
            "items": {
              "type": "string",
              "enum": [
                "title",
                "date",
                "startTime",
                "endTime",
                "venue",
                "lineup",
                "cost",
                "ticketStatus",
                "lowestTicketPrice"
              ],
              "enumTitles": [
                "Title",
                "Date",
                "Start time",
                "End time",
                "Venue",
                "Lineup",
                "Door price",
                "Ticket status (sold out)",
                "Lowest ticket price"
              ]
            }
          },
          "includeRemoved": {
            "title": "Return removed events",
            "type": "boolean",
            "description": "Monitor mode. Return a row when an upcoming event leaves the list (cancelled, moved or taken down). Empty = on."
          },
          "includeUnchanged": {
            "title": "Also return unchanged events",
            "type": "boolean",
            "description": "Monitor mode. Also return events that are still listed with no change. Off = only changes."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each separate watch its own name (letters, digits, dot, dash, underscore) so that their memories stay apart. Empty = one shared default watch."
          },
          "resetMonitoringState": {
            "title": "Start this watch over",
            "type": "boolean",
            "description": "Forget what this watch remembers. The next run is treated as a first check again and returns one free row per target."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}