Facebook Events Scraper

  • apify/facebook-events-scraper
  • Modified
  • Users 6
  • Runs 27
  • Created by Author's avatarApify

Facebook Events Scraper extracts data such as event name, location, description or number of users who are interested. You can use URLs of specific events or come up with search queries and explore pretty much unlimited number of events. Search queries can be combined with various search filters.

Free trial for 7 days

Then $35.00/month

No credit card required now

Facebook Events Scraper

Free trial for 7 days

Then $35.00/month

What is Facebook Events Scraper and how does it work?

Meet our Facebook Events Scraper! This tool is designed to extract data for events organized and promoted on Facebook. It enables you to scrape Facebook in three ways:

๐Ÿ”— By event URL. Give the scraper URLs of specific events: one or multiple. It will scrape all the available information for each of the chosen events.

๐Ÿ”Ž By search query. Search and scrape Facebook events by providing a text query, let's say comedy. This way you can come up with search queries and explore pretty much unlimited number of events.

๐ŸŽฏ By search query + filters. Combine search queries with various other search filters. You can filter out paid-only events, online events or events taking place in a specific city, or on a specific date. All you need to do is to set up the filters on Facebook's event search page, copy the URLs and paste them to startUrls input field. Our scraper will recognize the filters since Facebook includes them in search URLs.

What Facebook Events data can I extract?

With this Facebook Scraper API, you will be able to extract the following Facebook data:

๐Ÿ’ƒ Event name ๐Ÿ‘จโ€๐Ÿ’ผ Organizers
๐Ÿ“ƒ Description ๐Ÿ’ฐ Price
๐Ÿ—บ Location ๐ŸŽซ Tickets info
๐Ÿƒโ€โ™€๏ธ Users interested & going ๐Ÿ’ป Online event
๐Ÿ“† Start date & time โŒš Past event
โณ Duration ๐Ÿ“ท Image

How do I use Facebook Events Scraper?

Facebook Events Scraper was designed to be easy to start with even if you've never extracted data from the web before. Here's how you can scrape Facebook data with this tool:

  1. Create a free Apify account using your email.
  2. Open Facebook Events Scraper.
  3. Add one or more Facebook event URLs to scrape its data.
  4. Click "Start" and wait for the data to be extracted.
  5. Download your data in JSON, XML, CSV, Excel, or HTML.

Do I need to be logged in to Facebook to scrape events?

You don't need to fill in any credentials since anyone can browse public events listed on Facebook without being logged into their account. Facebook's recommendations on events depend on user's location and other criteria.

Do I need proxies to scrape Facebook Events?

Our Facebook Events Scraper is set up to utilize smart proxy rotation. Thanks to that, your search queries will go through many different IP addresses and you may discover events you would never come across if you were using your device exclusively. The easiest way to enable proxy rotation is to use Apify proxies in Console but you can also provide a proxy pool of your own.

How much will it cost to scrape Facebook Events?

Apify gives you $5 free usage credits every month on the Apify Free plan. You can get data for up to 5K events within your free $5 credits. You'll also have access to Apify proxies - make sure to use them as they can help you discover much more events.

If you need to scale your Facebook Events data extraction, you should grab an Apify subscription. We recommend our $49/month Personal plan - you can get up to 50K results monthly. Or scrape 500K results for $499 with the Team plan, if that fits your needs.

Input

The input for Facebook Events Scraper should be URLs of Facebook events you want to scrape data from. Click on the input tab for a full input explanation in JSON.

[
{
  "debugMode": false,
  "maxEvents": 150,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "startUrls": [
    "https://www.facebook.com/events/search?q=Comedy&sde=AbrQ9KopLfqYT7heXVVCxznkZYxRr9hU1JA4cdLbJhjgs56yyeHW3e833A9dGP1WlEHOyagjWyFL9Y79gw-Ko1iVuJCILVkpVsHkmSbBFb3SEA&filters=eyJmaWx0ZXJfZXZlbnRzX2NhdGVnb3J5OjAiOiJ7XCJuYW1lXCI6XCJmaWx0ZXJfZXZlbnRzX2NhdGVnb3J5XCIsXCJhcmdzXCI6XCIyMTA0MTIxMTM5ODUwMTAwXCJ9IiwicnBfZXZlbnRzX2xvY2F0aW9uOjAiOiJ7XCJuYW1lXCI6XCJmaWx0ZXJfZXZlbnRzX2xvY2F0aW9uXCIsXCJhcmdzXCI6XCIxMDg0MjQyNzkxODkxMTVcIn0iLCJmaWx0ZXJfZXZlbnRzX2RhdGVfcmFuZ2U6MCI6IntcIm5hbWVcIjpcImZpbHRlcl9ldmVudHNfZGF0ZVwiLFwiYXJnc1wiOlwiMjAyMy0wMi0yNX4yMDIzLTAyLTI2XCJ9In0%3D"
  ],
  "searchQueries": []
}
]

Output sample

Once the scraper collects data for the first event, you'll see an output visualization on Apify platform. The output will look similar to the following example generated for Comedy search query:

Facebook Events Scraper - output

You can of course export all extracted events to the format of your choice for easy postprocessing. We support JSON, CSV, XML, RSS, HTML Table, JSONL and Excel. Here's an excerpt from the JSON dataset you'd get:

{
  "url": "https://www.facebook.com/events/1330679037525139/",
  "id": "1330679037525139",
  "name": "Stand Up Comedy",
  "dateTimeSentence": "SAT, FEB 25",
  "utcStartDate": "2023-02-26T01:00:00.000Z",
  "imageUrl": "https://scontent-frt3-2.xx.fbcdn.net/v/t39.30808-6/333102347_1229452008008092_7759957056661117666_n.jpg?stp=c0.62.168.112a_dst-jpg_p168x128&_nc_cat=110&ccb=1-7&_nc_sid=340051&_nc_ohc=drED8P15iu8AX_whbVz&_nc_ht=scontent-frt3-2.xx&oh=00_AfAJIcm32ZrwUI-eJMr_VxecAjurSa3SySjL079b9ql6jw&oe=64040E22",
  "imageCaption": "May be an image of 4 people and text that says 'Stand up COMEDY SAT 2/25-8pm HEADLINING MARY DIMINO Ladies of Laughter CHRIS RICH USO Tour FEATURING DINO BARDIS STEVE BARBERESI SPECIAL GUEST JULIAN SAUL M TICKET PRICE: S10 No Drink Minimum HUB17 WAVE STREET STATEN ISLAND NY 10304'",
  "duration": null,
  "description": "Headlining Mary Dimino \n$10\nhttp://www.onwavestreet.com/events/2023/2/25/stand-up-comedy-in-the-gallery",
  "usersGoing": 1,
  "usersInterested": 0,
  "usersResponded": 1,
  "location": {
    "url": "https://facebook.com/hub17nyc",
    "id": "1577514862497917",
    "name": "Hub 17 NYC",
    "contextualName": "New York, NY, United States",
    "placeType": "PLACE",
    "latitude": 40.629799557735,
    "longitude": -74.077178835869,
    "countryCode": "US",
    "streetAddress": "73 Wave St",
    "city": "New York, NY, United States"
  },
  "ticketsInfo": null,
  "organizedBy": "Event by Hub 17 NYC",
  "organizators": [
    {
      "id": "100064406033772",
      "url": "https://www.facebook.com/hub17nyc",
      "name": "Hub 17 NYC",
      "isVerified": false
    }
  ],
  "eventType": "PUBLIC",
  "privacyInfo": "Public ยท Hosted by Hub 17 NYC",
  "isPast": true,
  "isOnline": false,
  "paidContent": false,
  "isClassEvent": false,
  "isLiveAudioRoom": false,
  "isRemoteLearningClass": false,
  "isRemoteLearningCourse": false,
  "groupEventPinnedToFeatured": false,
  "hasRecordingAvailable": false,
  "discoveryCategories": [
    {
      "url": "https://www.facebook.com/events/discovery/?suggestion_token=%7B%22event_categories%22%3A%5B660032617536373%5D%7D",
      "label": "Comedy"
    }
  ],
  "externalLinks": [
    "http://www.onwavestreet.com/events/2023/2/25/stand-up-comedy-in-the-gallery"
  ]
},
{
  "url": "https://www.facebook.com/events/343447954420125/",
  "id": "343447954420125",
  "name": "Hi Hello Comedy Show",
  "dateTimeSentence": "FRI, MAR 10 AT 7:30 PM EST",
  "utcStartDate": "2022-04-08T23:30:00.000Z",
  "imageUrl": "https://scontent-frt3-2.xx.fbcdn.net/v/t39.30808-6/278053533_3116259105290534_3428247187624626142_n.jpg?stp=c250.0.1500.1000a_dst-jpg_s168x128&_nc_cat=111&ccb=1-7&_nc_sid=340051&_nc_ohc=6hX5qI0v65YAX85Otj5&_nc_ht=scontent-frt3-2.xx&oh=00_AfDDT6IGAl7Ni38pZ1Z5w8NUMuv5n0GuFbhWu_0lJd_lLQ&oe=640526CE",
  "imageCaption": "No photo description available.",
  "duration": "337 days",
  "description": "Hi, Hello is a standup comedy show at Fiction Bar/Cafe in Williamsburg. Comics as seen on The Tonight Show, Colbert, Netflix, Comedy Central\n\nHi Hello Comedy Show is a line up of comedians you've seen on Netflix, HBO, Comedy Central, and Late Night, bringing their stand up comedy to an intimate hidden gem venue in Brooklyn.\nWe're located at Fiction Bar/Cafe in Williamsburg (308 Hooper St, Brooklyn), every other Friday. In addition to the show, there's also a $10 beer - shot drink special!\nDoors at 7:00, comedy show at 7:30\nQuestions? DM us on instagram at @hihellocomedyshow or shoot us an email hihellocomedy@gmail.com",
  "usersGoing": 0,
  "usersInterested": 15,
  "usersResponded": 15,
  "location": {
    "url": null,
    "id": "960353104680520",
    "name": "308 Hooper Street,Brooklyn,11211,US",
    "contextualName": null,
    "placeType": "TEXT",
    "latitude": 40.70723,
    "longitude": -73.95374,
    "countryCode": "US",
    "streetAddress": null,
    "city": null
  },
  "ticketsInfo": {
    "buyUrl": "https://www.eventbrite.com/e/hi-hello-comedy-show-tickets-222708124997?aff=efbevent",
    "price": null,
    "title": "Tickets ยท $5",
    "subtitle": "via Eventbrite",
    "ticketProvider": "Eventbrite"
  },
  "organizedBy": "Event by Hi Hello Comedy Show",
  "organizators": [
    {
      "id": "100083312802587",
      "url": "https://www.facebook.com/people/Hi-Hello-Comedy-Show/100083312802587/",
      "name": "Hi Hello Comedy Show",
      "isVerified": false
    }
  ],
  "eventType": "PUBLIC",
  "privacyInfo": "Public ยท Hosted by Hi Hello Comedy Show",
  "isPast": false,
  "isOnline": false,
  "paidContent": false,
  "isClassEvent": false,
  "isLiveAudioRoom": false,
  "isRemoteLearningClass": false,
  "isRemoteLearningCourse": false,
  "groupEventPinnedToFeatured": false,
  "hasRecordingAvailable": false,
  "discoveryCategories": [
    {
      "url": "https://www.facebook.com/events/discovery/?suggestion_token=%7B%22event_categories%22%3A%5B660032617536373%5D%7D",
      "label": "Comedy"
    }
  ],
  "externalLinks": []
},
]
...

Want to scrape Facebook reviews or groups?

You can use the dedicated scrapers below if you want to scrape specific Facebook data. Each of them is built particularly for the relevant Facebook scraping case be it a group, reviews, comments or photos. Feel free to browse them:

Integrations and Facebook Events Scraper

Last but not least, Facebook Events Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Facebook Events Scraper successfully finishes a run.

Using Facebook Events Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

Our Facebook scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. However, you should be aware that your results could contain personal data. You should not scrape personal data unless you have a legitimate reason to do so.

If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the legality of web scraping and ethical scraping.

Need other social media scrapers?

We have many more social media related scrapers for you to try, such as Facebook Pages Scraper, Instagram Scraper, Twitter Scraper, TikTok Scraper or Reddit Scraper. If you're interested in those, browse the Social media Category in Apify Store.

Industries

See how Facebook Events Scraper is used in industries around the world