{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Events Scraper - Dates, Venues & Tickets",
    "description": "Scrape public Facebook events by event link, Page, city or keyword: name, start and end time, venue address and coordinates, description, ticket link, hosts, performers, categories and responses. Upcoming and past events, date filters. No login, no browser.",
    "version": "0.1",
    "x-build-id": "qlLEzfcH702osYdk7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eiv~facebook-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eiv-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/eiv~facebook-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-eiv-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/eiv~facebook-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-eiv-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": {
          "targets": {
            "title": "Event, Page or city links",
            "type": "array",
            "description": "One per line. Events: facebook.com/events/<id> or share links. Pages and profiles: facebook.com/TheGarden, facebook.com/TheGarden/past_hosted_events, profile.php?id=<id>, or the username, for the events they host. Cities: facebook.com/events/explore/us-new-york/108424279189115 (copy it from facebook.com/events/explore). Search links: facebook.com/events/search/?q=jazz.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional. Keywords for Facebook's event search, one per line, e.g. \"comedy\" or \"jazz festival\". Put the place in \"Search location\", not in the keyword. Facebook gives visitors who are not logged in a few dozen events per keyword at most; for more, add city links or the Pages of venues and organisers.",
            "items": {
              "type": "string"
            }
          },
          "searchLocation": {
            "title": "Search location (city link)",
            "type": "string",
            "description": "Optional. Limits the keyword searches to one city: paste the city's link from facebook.com/events/explore (it ends in the city's number, e.g. facebook.com/events/explore/us-new-york/108424279189115) or the number alone. Every event row has its city's number in cityId."
          },
          "searchCategory": {
            "title": "Search category",
            "enum": [
              "Art",
              "Causes",
              "Comedy",
              "Crafts",
              "Dance",
              "Drinks",
              "Film",
              "Fitness",
              "Food",
              "Games",
              "Gardening",
              "Health",
              "Home",
              "Literature",
              "Music",
              "Networking",
              "Other",
              "Party",
              "Religion",
              "Shopping",
              "Sports",
              "Theater",
              "Wellness"
            ],
            "type": "string",
            "description": "Optional. Limits the keyword searches to one of Facebook's event categories."
          },
          "startDateFrom": {
            "title": "Events starting from",
            "type": "string",
            "description": "Optional. Keep only events that start on or after this date, e.g. 2026-12-01, \"today\", or \"7 days\" (7 days from now). Applies to Pages, cities and searches; event links are always returned. Events outside the dates are left out before their details are fetched and are never charged."
          },
          "startDateTo": {
            "title": "Events starting until",
            "type": "string",
            "description": "Optional. Keep only events that start on or before this date (the whole day counts), e.g. 2026-12-31 or \"30 days\" (30 days from now). For a city, a range of up to 31 days is read day by day, which also finds more events."
          },
          "pageEvents": {
            "title": "Page events",
            "enum": [
              "upcoming",
              "past",
              "upcomingAndPast"
            ],
            "type": "string",
            "description": "Which events of a Page or profile to collect: upcoming (soonest first), past (most recent first), or both. A Page link ending in /upcoming_hosted_events or /past_hosted_events overrides this for that Page.",
            "default": "upcoming"
          },
          "includeRecurringDates": {
            "title": "Include recurring dates",
            "type": "boolean",
            "description": "For events that repeat (weekly classes, tours), add every date of the series to recurringDates. One extra request per series; no extra charge. Every row already has recurringDateCount.",
            "default": false
          },
          "maxEventsPerTarget": {
            "title": "Events per link or keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Events to collect from each Page, city, search or keyword. Facebook lists 8-16 events per request and each event's details take about a second, so 100 events take about a minute per target; targets run in parallel.",
            "default": 20
          },
          "maxItems": {
            "title": "Max events in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many events across all targets. You pay per event, so this is also your cost cap for the run. An event found through two targets is delivered and charged once.",
            "default": 1000
          },
          "startUrls": {
            "title": "Start URLs (for chaining Actors)",
            "type": "array",
            "description": "The same event, Page, city or search links in the URL-list shape other Actors output (and that apify/facebook-events-scraper takes), so a previous Actor's results can be fed straight in. Use this or \"Event, Page or city links\".",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the default. Events are read without any proxy cost (Apify's own and datacenter addresses). This setting is used only to look up Pages given by username when Facebook's bulk lookup fails; Apify's datacenter proxy does that for free.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many links or keywords are processed at the same time. Within each, three events' details are fetched at once.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "How long to wait for one response before giving up on it (and moving to another address).",
            "default": 60
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries for failed connections on Apify's own address. Through the proxy, a refused or failed request moves to another address instead.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}