{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Events Scraper: Pages, Cities, Search",
    "description": "Public Facebook events with no login: every upcoming or past event of a page, a city's own event feed, keyword search by city, groups and event links. Each event: start and end with time zone, place, address, coordinates, hosts, description, ticket link, categories. JSON, CSV, API. Pay per event.",
    "version": "0.1",
    "x-build-id": "9iVt0wC2rnK5fwHKA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-events-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-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/automation_craft~facebook-events-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-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/automation_craft~facebook-events-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-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": {
          "pages": {
            "title": "Facebook pages (their events)",
            "type": "array",
            "description": "Pages whose events you want: a link (facebook.com/930club, facebook.com/930club/upcoming_hosted_events), a username (930club) or a numeric page id. Reads the page's upcoming events by default (see Which events), every one to the end of Facebook's list, not only the first 8. A page Facebook shows only to logged in adults (bars, breweries, clubs) or a name that does not exist gets a free not_found row. Also read under the keys pageUrls, organizerUrls, organizers, pageIds, pageNames, profileUrls.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword searches",
            "type": "array",
            "description": "Keywords searched in Facebook's events search (jazz, food festival, yoga). With a search city set below, Facebook's own city filter is sent (on by default). Facebook answers some visitors with a short list: a short first page is asked again on other exits and the longest answer is read. Search results carry only the event's name and link; each event's record fills the rest. A link is not a keyword: put links in startUrls. Also read under queries, query, search.",
            "items": {
              "type": "string"
            }
          },
          "searchLocation": {
            "title": "Search city",
            "type": "string",
            "description": "One city for the keyword searches: its name exactly as Facebook writes it (New York, New York; Austin, Texas; London, United Kingdom), its Facebook city id (108424279189115) or its events page link (facebook.com/events/explore/us-new-york/108424279189115/). A name that is not exactly one city gets a free row listing the cities Facebook offers. Also read under location, locationUid, location_uid, searchLocationId."
          },
          "searchCityFilter": {
            "title": "Send Facebook's city filter with keyword searches",
            "type": "boolean",
            "description": "On (the default when a search city is given): every keyword search is sent with Facebook's own city filter, which keeps the results in that city and makes the search answer fuller. Off: the keywords are searched worldwide even with a search city set."
          },
          "cities": {
            "title": "Cities (Facebook's event feed)",
            "type": "array",
            "description": "Cities whose events feed you want: the city's name exactly as Facebook writes it (Austin, Texas), its Facebook city id, or its events page link (facebook.com/events/explore/us-austin/106224666074625/). Facebook's own ranked feed of the city's events in the next 90 days, 12 a call, read to the end or your cap. Rows carry Facebook's interested and going labels for free. Also read under cityUrls, locations, exploreUrls.",
            "items": {
              "type": "string"
            }
          },
          "events": {
            "title": "Single events",
            "type": "array",
            "description": "Event links (facebook.com/events/1354978613126822/, the long form with a slug, or one date of a recurring event with event_time_id) or numeric event ids. Each is read whole; an event Facebook no longer shows to a visitor gets a free not_found row. Also read under eventUrls, eventIds.",
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "title": "Facebook groups (their events)",
            "type": "array",
            "description": "Public groups whose events you want: a group link (facebook.com/groups/selftaughtprogrammers or /groups/<id>/events), a group's name from its link, or its numeric id. Facebook lists a group's events 3 at a time; each is read whole. A private or missing group gets a free not_found row. Also read under groupUrls, groupIds.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Facebook links of any kind",
            "type": "array",
            "description": "Links of any kind this Actor reads, mixed: pages, page events tabs, events, groups, city events pages, Facebook events search links (their keyword and their city, date and category filters are read; a search link with any other filter is refused, free) and share links (facebook.com/share/..., fb.me/e/...). API callers may also send { \"url\": \"...\" } objects. Also read under inputs and urls.",
            "items": {
              "type": "string"
            }
          },
          "eventTime": {
            "title": "Which events of pages and groups",
            "enum": [
              "upcoming",
              "past",
              "all"
            ],
            "type": "string",
            "description": "For pages, hosts and groups: their upcoming events (the default), their past events newest first back to the first one, or both. A link to a page's past_hosted_events tab reads its past events whatever this says. Also read under eventsTimeRange (upcoming, past, both)."
          },
          "cityFeedWindow": {
            "title": "City feed window",
            "enum": [
              "any",
              "today",
              "tomorrow"
            ],
            "type": "string",
            "description": "Which part of a city's feed to read: Facebook's whole feed of the next 90 days (the default), or only today's or tomorrow's events (Facebook's own feed windows)."
          },
          "startDate": {
            "title": "Events starting from",
            "type": "string",
            "description": "Keep only events that start on or after this moment: YYYY-MM-DD (from 00:00 UTC that day), an ISO time with its offset (2026-11-01T18:00:00-05:00), today, tomorrow, yesterday, \"in 7 days\" or \"30 days ago\". Past walks end once a page holds only older events. Also read under start_date, dateFrom, startsAfter; eventDate names one day."
          },
          "endDate": {
            "title": "Events starting until",
            "type": "string",
            "description": "Keep only events that start on or before this moment: YYYY-MM-DD (until 23:59:59 UTC that day), an ISO time with its offset, today, tomorrow, \"in 30 days\". Upcoming walks end once a page holds only later events. With both dates, keyword searches also send Facebook's own date filter. Also read under end_date, dateTo, startsBefore."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep only events in one of these Facebook categories (music, comedy, food, sports and the others Facebook lists). Judged on each event's own categories; about half of Facebook's events name no category and are then left out, free. With one category, keyword searches also send Facebook's own category filter. Also read under category.",
            "items": {
              "type": "string",
              "enum": [
                "art",
                "causes",
                "comedy",
                "crafts",
                "dance",
                "drinks",
                "film",
                "fitness",
                "food",
                "games",
                "gardening",
                "health",
                "home",
                "literature",
                "music",
                "networking",
                "other",
                "party",
                "religion",
                "shopping",
                "sports",
                "theater",
                "wellness"
              ]
            }
          },
          "eventFormat": {
            "title": "In person or online",
            "enum": [
              "any",
              "in_person",
              "online"
            ],
            "type": "string",
            "description": "Keep in person events, online events, or both (the default). Judged on each event's online flag. Also read: onlineOnly true means online."
          },
          "maxEventsPerInput": {
            "title": "Most events per value",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most events delivered for one value (a page, a group, a city, a search; a recurring event's dates count too). 50 when not set. Also read under maxEvents, maxEventsPerOrganizer, maxEventsPerPage, resultsLimit."
          },
          "maxItems": {
            "title": "Most events in all",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most events the whole run delivers (no limit when not set). Checked before each event is read, so you never pay for events past it. Also read under maxTotalEvents, maxResults, max_results."
          },
          "includeDetails": {
            "title": "Read each event's full record",
            "type": "boolean",
            "description": "On (the default): each event's record is read (two small calls): end time, place with address and coordinates, description, hosts, responded count, ticket link, categories, cover image, recurring dates. Off: only what the list shows (name, link, date text, start, place name), same price, faster. Filters, organizers, hosts' events and recurring rows need it on. Also read: eventDetail full or list."
          },
          "includeGoingInterested": {
            "title": "Add-on: going and interested counts",
            "type": "boolean",
            "description": "Reads the exact number of people going and interested for each delivered event (one small call each). Charged per event only when Facebook gave the counts (Going and interested count event). Off by default. City feed rows carry Facebook's own rounded labels (1K interested) for free either way."
          },
          "includeOrganizers": {
            "title": "Add-on: organizer rows",
            "type": "boolean",
            "description": "Adds one row per Facebook Page that hosts a delivered event: name, link, followers, category, address, phone, email, websites, hours, rating and its upcoming and past events counts. Charged once per organizer, only when its About section was read (Organizer event); otherwise delivered free with what was read. Off by default."
          },
          "maxOrganizers": {
            "title": "Most organizer rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most organizer rows the run delivers (100 when not set). Also read under maxTotalOrganizers."
          },
          "hostDepth": {
            "title": "Follow hosts to their own events",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 (the default): read what you give. 1: also read the upcoming events of every Page that hosts an event found. 2 and 3: follow the hosts of those events too, one more hop each. Each followed page gets its own coverage row and the same per value cap. Also read under cascadeDepth. With host following on, the values are read one at a time."
          },
          "expandRecurring": {
            "title": "Each date of a recurring event as its own row",
            "type": "boolean",
            "description": "Off (the default): a recurring event is one row listing its dates. On: each date also gets a row of its own (its own id, link, start and end), charged as an event."
          },
          "includePersonalData": {
            "title": "Include personal data",
            "type": "boolean",
            "description": "Off (the default): a host that is a person (not a Facebook Page) keeps its name and loses its id, link and picture, and an event that only persons host at a place with no Facebook Page loses its street, full address and coordinates (its city stays). On: those fields are delivered. Texts (name, description, host line) are always delivered as Facebook shows them. You are responsible for a lawful use of personal data, GDPR included."
          },
          "maxConcurrency": {
            "title": "Values read at once",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many values are read at the same time (1 to 3; 1 when not set). Each event's record is read 3 at a time either way."
          },
          "requestDelayMs": {
            "title": "Pause between calls (ms)",
            "minimum": 200,
            "maximum": 10000,
            "type": "integer",
            "description": "The pause between two calls of one lane, in milliseconds (300 when not set)."
          },
          "maxRunSeconds": {
            "title": "Stop after (seconds)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop reading after this many seconds from the run's start and deliver what was read (free coverage rows say what was cut)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy by default: every door through Apify's datacenter pool, and a keyword search's re-asks after a short answer through Apify residential exits (US unless you name a country). When the datacenter pool keeps refusing event records, those calls are asked from the run's own address instead. Naming RESIDENTIAL changes nothing else. You may give your own proxy links instead (they are never left). Also read under proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}