{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Events Scraper",
    "description": "Extract event data available in public Facebook HTML without cookies or authentication. The Actor fails closed at access controls and emits diagnostics for unavailable pages.",
    "version": "1.3",
    "x-build-id": "VFLgdNcPGMdfkhVHb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~facebook-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-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/w3crawler~facebook-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-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/w3crawler~facebook-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-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",
        "required": [
          "eventUrls"
        ],
        "properties": {
          "eventUrls": {
            "title": "Public Facebook URLs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Credential-free HTTPS Facebook event detail URLs or public event listing/search URLs. Bare numeric event IDs are also accepted. Search URLs must be supplied by the user; the Actor does not infer a private search endpoint.",
            "items": {
              "type": "string",
              "maxLength": 2000
            }
          },
          "maxEvents": {
            "title": "Maximum events",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of unique event records to discover across the supplied pages.",
            "default": 50
          },
          "maxPages": {
            "title": "Maximum pages per URL",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of pages per listing/search URL, including the supplied page. Pagination URLs are followed only when the public HTML exposes a next link.",
            "default": 1
          },
          "followPagination": {
            "title": "Follow public pagination",
            "type": "boolean",
            "description": "Follow rel=next or visible next links found in public HTML, subject to maxPages.",
            "default": true
          },
          "includeDetails": {
            "title": "Fetch event details",
            "type": "boolean",
            "description": "Fetch discovered public event detail pages for descriptions, locations, hosts, offers, status, and related links.",
            "default": true
          },
          "includeMedia": {
            "title": "Include media",
            "type": "boolean",
            "description": "Include public image URLs found in JSON-LD, metadata, or embedded structured data.",
            "default": true
          },
          "includeRatings": {
            "title": "Include ratings and reviews",
            "type": "boolean",
            "description": "Include aggregate ratings and review summaries only when exposed in public structured data.",
            "default": true
          },
          "includeStructuredData": {
            "title": "Include bounded JSON-LD",
            "type": "boolean",
            "description": "Include a bounded copy of public JSON-LD objects for auditability. Embedded event-like data is normalized into regular fields.",
            "default": false
          },
          "filters": {
            "title": "Event filters",
            "required": [],
            "type": "object",
            "description": "Optional local filters applied after public fields are extracted.",
            "properties": {
              "text": {
                "title": "Text contains",
                "type": "string",
                "description": "Case-insensitive match against event name, description, location name, and categories.",
                "maxLength": 200,
                "editor": "textfield"
              },
              "category": {
                "title": "Category contains",
                "type": "string",
                "description": "Case-insensitive match against extracted event categories.",
                "maxLength": 100,
                "editor": "textfield"
              },
              "dateFrom": {
                "title": "Start date from",
                "type": "string",
                "description": "Optional ISO date/time lower bound for extracted startDate values.",
                "maxLength": 50,
                "editor": "textfield"
              },
              "dateTo": {
                "title": "Start date to",
                "type": "string",
                "description": "Optional ISO date/time upper bound for extracted startDate values.",
                "maxLength": 50,
                "editor": "textfield"
              }
            },
            "additionalProperties": false
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of public page requests in flight at once.",
            "default": 2
          },
          "minDelayMs": {
            "title": "Minimum request delay (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum delay between public request starts. The Actor clamps this value to 0–10000 ms.",
            "default": 500
          },
          "maxRetries": {
            "title": "Transient retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries only bounded transient HTTP statuses (408, 425, 500, 502, and 504). CAPTCHA, login, rate-limit, WAF, and access-denied responses are not retried.",
            "default": 2
          },
          "timeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout for each public page request, clamped to 5000–120000 ms.",
            "default": 45000
          },
          "maxBytes": {
            "title": "Maximum response size (bytes)",
            "minimum": 100000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Maximum HTML response size accepted for one public page.",
            "default": 5000000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional standard Apify Proxy routing. Start without a proxy and use datacenter or residential routing only when public access evidence justifies it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}