Platforms · Facebook

Facebook Events Search Scraper API

Searches the public Facebook Events directory for events matching a keyword. Forward the returned cursor for additional pages.

GET /api/v1/data/facebook/events-search · 1 credit per page · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Inputs

  • query (required): Event name or keyword to search for.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].cover_photo (object): The event's cover photo.
  • items[].cover_photo.eventImage (object): The cover image.
  • items[].cover_photo.eventImage.uri (string): A link to the cover image.
  • items[].day_time_sentence (string): When the event is, in words, in the event's time zone.
  • items[].event_kind (string): Who can see the event, such as `PUBLIC_TYPE`.
  • items[].event_place (object): Where the event is held.
  • items[].event_place.__isNode (string)
  • items[].event_place.__typename (string): The kind of place, such as `FreeformPlace`.
  • items[].event_place.contextual_name (string): The place's name as shown with its surroundings.
  • items[].event_place.id (string): The place's id.
  • items[].event_place.name (string): The place's name.
  • items[].event_url (string)
  • items[].id (string): The event's id.
  • items[].is_online (boolean): Whether the event is online.
  • items[].is_past (boolean): Whether the event is over.
  • items[].name (string): The event's name.
  • items[].social_context (object): How people have responded to the event.
  • items[].social_context.going_count (integer): How many people are going.
  • items[].social_context.interested_count (integer): How many people are interested.
  • items[].social_context.text (string): How many people responded, in words.
  • items[].social_context.went_count (integer): How many people went. Null before the event happens.
  • items[].start_timestamp (number): When the event starts, as Unix seconds.
  • items[].ticketing_context_row (object): Ticketing information.
  • items[].ticketing_context_row.price_range_text (string): The ticket price range as text, or null when there is no ticketing.
  • items[].type (string): The kind of object, which is `Event`.
  • items[].url (string): The event's link.
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each page costs 1 credit. A call that finds nothing, or fails, is free.
  • Each call returns one page of about 5 rows. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Example call

GET /api/v1/data/facebook/events-search?query=dogs

Questions

How much does the Facebook Events Search API cost?

Each page costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send query. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page of about 5 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

How fresh is the data?

The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Do I need a Facebook account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Facebook endpoints

  • Event Details: Get details for a Facebook event. 1 credit a call
  • Events: List Facebook events for a city. 1 credit a page

More Facebook scraper APIs