{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Events Scraper — City, Page & Keyword, No Login",
    "description": "Scrape Facebook events by keyword and city, organizer Page, or URL—no login or user cookies. Go past the 8-event Page limit. Get upcoming, past and recurring events with dates, venues, coordinates, hosts, tickets and attendance. Monitor changes. Export CSV, Excel or JSON from $3.50/1K.",
    "version": "1.0",
    "x-build-id": "UyfCVXPTMwH3v0WK7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/valev-lab~facebook-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-valev-lab-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/valev-lab~facebook-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-valev-lab-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/valev-lab~facebook-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-valev-lab-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "organizers",
              "eventUrls"
            ],
            "type": "string",
            "description": "Search by keyword and city, paginate organizer calendars, or read event URLs.",
            "default": "eventUrls"
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "One keyword or phrase per line. All keyword/location combinations are searched; Facebook ranking is not a complete calendar.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Cities or Facebook city IDs",
            "type": "array",
            "description": "City names such as Sofia, Bulgaria or Berlin, Germany. Names are resolved from public event venues and cached; Facebook blocks anonymous city autocomplete. Unresolved names return a free error. Numeric Facebook city IDs are also accepted.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Inclusive start date (YYYY-MM-DD in UTC) or ISO timestamp with timezone. Checked against detailed event start time."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Inclusive end date (YYYY-MM-DD, through 23:59:59.999 UTC) or ISO timestamp with timezone."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Exact public category label, case insensitive, for example Music & audio or Professional Networking. Events without a matching category are skipped free."
          },
          "onlineOnly": {
            "title": "Only online events",
            "type": "boolean",
            "description": "Require Facebook’s structured is_online flag to be true. An online-sounding title does not prove this.",
            "default": false
          },
          "inPersonOnly": {
            "title": "Only in-person events",
            "type": "boolean",
            "description": "Require Facebook’s structured is_online flag to be false. Cannot be combined with onlineOnly.",
            "default": false
          },
          "maxEvents": {
            "title": "Max search events in the run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum delivered events across all keyword/location searches. Monitoring skips do not consume this cap. Organizer mode uses its separate cap; URL mode reads the supplied events.",
            "default": 50
          },
          "organizers": {
            "title": "Organizer Pages",
            "type": "array",
            "description": "Public Page URLs, usernames or numeric Page IDs. The upcoming and past tabs are paginated directly beyond the eight events in HTML.",
            "items": {
              "type": "string"
            }
          },
          "includePast": {
            "title": "Include past events",
            "type": "boolean",
            "description": "Read both upcoming and past organizer tabs. The combined maximum applies; raise it above the upcoming event count to leave room for past events.",
            "default": false
          },
          "maxEventsPerOrganizer": {
            "title": "Max events per organizer",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Combined cap across upcoming and past events per Page. Errors, duplicates and unchanged monitored events do not consume it.",
            "default": 50
          },
          "eventUrls": {
            "title": "Event URLs or IDs",
            "type": "array",
            "description": "Public event URLs, numeric IDs, and recurring links with event_time_id. A series URL follows public neighboring occurrences. A specific occurrence URL reads that occurrence.",
            "items": {
              "type": "string"
            }
          },
          "includeOrganizerInfo": {
            "title": "Include organizer Page info",
            "type": "boolean",
            "description": "Include public host Page category, followers text, intro, verification and website when exposed. Cached once per host per run and included in event price. A missing optional profile is marked in organizerInfo.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the public event description in each row.",
            "default": true
          },
          "monitorMode": {
            "title": "Only new or changed events",
            "type": "boolean",
            "description": "Return new events and changes to dates, timezone, ticket links or going/interested/combined response counts. Unchanged events are free. State updates only after successful delivery.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "pattern": "^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
            "type": "string",
            "description": "Named KeyValueStore remembering event IDs and last-delivered fields. Use one store per schedule; avoid concurrent runs writing the same store. Most recent 50,000 delivered events retained.",
            "default": "facebook-events-scraper-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Direct anonymous HTTP first. After a block or rate limit use your custom proxy URLs, otherwise Apify Residential. No Facebook account or user cookies. Apify external proxy access must be enabled for local fallback.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}