{
  "openapi": "3.0.1",
  "info": {
    "title": "Event Scraper: Eventbrite, Luma & Meetup Events and Organizers",
    "description": "Events from Eventbrite, Luma and Meetup in one search and one item shape: dates, venue, ticket prices, sales status, description and organizer with its website, socials, followers or members. Organizer leads, a row per organizer, and new event alerts.",
    "version": "0.1",
    "x-build-id": "IHz5ZOKffdwaTJ8kU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~event-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-event-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/pikoulas~event-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-event-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/pikoulas~event-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-event-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "What the events are about: AI, networking, python, yoga, jazz. Each one is searched in every place below; leave it empty for every event there. On Luma, a term that is one of its categories (AI, tech, crypto, climate, fitness, food, arts, books, games, running, wellness, family) reads that category; any other is matched against event and calendar names. On Meetup, a term is one of its topic searches (python, networking, hiking, data science); one it has no page for is skipped there.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities: San Francisco, New York, London, Berlin; Austin, TX or Paris, FR where a name is in several places. Eventbrite takes any place; Luma has a page for about 80 cities (luma.com/discover), and Meetup for about 6,000 (English or local names as its pages give them: München, not Munich). A source without the place leaves it to the others. Online for Eventbrite's online events.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Eventbrite, Luma and Meetup URLs",
            "type": "array",
            "description": "Pages to read as they are: an Eventbrite event, organizer (eventbrite.com/o/…) or search (eventbrite.com/d/…); a Luma event, calendar (luma.com/openrouter) or city page; or a Meetup event, group (meetup.com/sf-code-coffee) or search (meetup.com/find/…).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which sites the searches run on.",
            "items": {
              "type": "string",
              "enum": [
                "eventbrite",
                "luma",
                "meetup"
              ],
              "enumTitles": [
                "Eventbrite",
                "Luma",
                "Meetup"
              ]
            },
            "default": [
              "eventbrite",
              "luma",
              "meetup"
            ]
          },
          "startDate": {
            "title": "From",
            "type": "string",
            "description": "Only events starting on or after this day."
          },
          "endDate": {
            "title": "Until",
            "type": "string",
            "description": "Only events starting on or before this day."
          },
          "output": {
            "title": "Output",
            "enum": [
              "events",
              "organizers"
            ],
            "type": "string",
            "description": "Events: a row per event. Organizers: a row per organizer behind the events found, the most active first, with its website, followers (a Meetup group's members, and its rating), Luma calendars' X, LinkedIn, Instagram, YouTube and TikTok, how many events it has run, and the names, links and cities of those found: sponsorship, partnership and sales leads. Each event read is charged either way; Luma's personal calendars are left out, uncharged.",
            "default": "events"
          },
          "maxEventsPerSearch": {
            "title": "Max events per search and source",
            "minimum": 0,
            "type": "integer",
            "description": "Events taken from each source for each search term and place (or each URL), 0 for all of them, and so what a run can cost. With only new events, it counts the new ones.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Each event's description, ticket prices, sales status and organizer, from its own page: one more request an event, at the same price. Without it, Eventbrite's events come without prices or organizer names, and Meetup's without their end or their group's members. Always on for URLs, and for Eventbrite and Meetup in organizers.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new events",
            "type": "boolean",
            "description": "Give, and charge for, only the events no earlier run with the same memory gave. Schedule it daily or weekly for new event alerts.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "One per alert, so two schedules don't share a memory. Kept in your account's key-value store event-scraper-memory; an event is remembered until it has started, and 60 days at least.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}