{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Events Scraper - By Keyword, City or Page",
    "description": "Facebook events by keyword and city, page or URL: local times, venue, address, map pin, organizer, tickets and interest. No login. Export CSV, Excel, JSON, XML.",
    "version": "0.1",
    "x-build-id": "vKx0ZbEJx86xJeWOE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~facebook-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-facebook-events-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/parseforge~facebook-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-facebook-events-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/parseforge~facebook-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-facebook-events-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": {
          "searchQueries": {
            "title": "🔎 Search events by keyword",
            "type": "array",
            "description": "What to look for, as you would type it in Facebook's event search: comedy, jazz, yoga, food festival. Each keyword is one search. A facebook.com/events/search link works too.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "📍 City",
            "type": "string",
            "description": "Where the events happen, for example Seattle or Paris, France. It is added to every keyword. For an exact city match, paste a Facebook city link (facebook.com/events/explore/...) or its numeric city id; every result row carries the cityId you can reuse here."
          },
          "eventUrls": {
            "title": "🎟️ Event URLs",
            "type": "array",
            "description": "Links to Facebook events, one per line: facebook.com/events/123..., a single date of a recurring event, m.facebook.com links, fb.me/e/ share links, or bare event ids. Each one returns one row.",
            "items": {
              "type": "string"
            }
          },
          "pageUrls": {
            "title": "🏛️ Pages that host events",
            "type": "array",
            "description": "Facebook pages of venues, promoters, clubs, artists or brands, for example facebook.com/theshowboxseattle. The run reads every event on the page's Events tab. Groups need a login and are not supported.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
          },
          "maxEventsPerSource": {
            "title": "Max events per keyword or page",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Stops each keyword or page at this many events, so one busy source cannot use up Max Items. Leave empty for no per-source limit."
          },
          "startDateFrom": {
            "title": "Starts on or after",
            "type": "string",
            "description": "Keep only events that start on this day or later, in the event's own local time. A date (2026-10-01) or a relative value (+7 days)."
          },
          "startDateTo": {
            "title": "Starts on or before",
            "type": "string",
            "description": "Keep only events that start on this day or earlier, in the event's own local time. A date (2026-10-31) or a relative value (+30 days)."
          },
          "category": {
            "title": "Category (keyword search)",
            "enum": [
              "classics",
              "comedy",
              "crafts",
              "dance",
              "drinks",
              "fitness",
              "foods",
              "games",
              "gardening",
              "health",
              "healthyLiving",
              "homeAndGarden",
              "music",
              "parties",
              "networking",
              "religions",
              "shopping",
              "socialIssues",
              "sports",
              "tvAndMovies",
              "theater",
              "visualArts"
            ],
            "type": "string",
            "description": "Facebook's own event category, applied to keyword searches."
          },
          "eventFormat": {
            "title": "In person or online",
            "enum": [
              "any",
              "inPerson",
              "online"
            ],
            "type": "string",
            "description": "Keep every event, only events at a physical place, or only online events.",
            "default": "any"
          },
          "skipCanceledEvents": {
            "title": "Skip canceled events",
            "type": "boolean",
            "description": "Facebook keeps canceled events online and marks them. Turn this on to leave them out.",
            "default": false
          },
          "includePastEvents": {
            "title": "Also read past events of pages",
            "type": "boolean",
            "description": "For Pages that host events: read the Past events tab too, not only upcoming events.",
            "default": false
          },
          "includeOrganizerDetails": {
            "title": "Add organizer contact details",
            "type": "boolean",
            "description": "Adds the organizer page's category, followers, verified badge, public email, phone, website, address, rating and intro to each event.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Facebook limits how many events one address can open, so every event goes out on a fresh Apify Proxy address. The default works; residential is not needed.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}