FACEBOOK EVENTS API

Events

Retrieve events from Facebook Events with a single API request.

GET/api/data/v1/facebook/events
1credit base cost

Request parameters

Up to 1 credit

The URL of the city's Facebook Events page

The time frame to search for. Defaults to all time

The cursor to paginate to the next page

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/facebook/events?url=https%3A%2F%2Fwww.facebook.com%2Fevents%2Fexplore%2Fsaint-petersburg-florida%2F111326725552547' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "events": [
    {
      "id": "2255360061870188",
      "schema_context": null,
      "cover_photo": {
        "photo": {
          "accessibility_caption": "May be an image of crowd",
          "image": {
            "uri": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-6/651106377_950305721046361_5055393414866459656_n.jpg?stp=c0.128.2048.977a_dst-jpg_s640x640_tt6&_nc_cat=102&ccb=1-7&_nc_sid=7e0d18&_nc_ohc=uoUS18WdA8AQ7kNvwFst0pe&_nc_oc=AdrKSULesf0R7do30SFyq0RoMV3ZxJYTz5leueITbRx88Cbg1yRFOKo-d1-yMT01j68&_nc_zt=23&_nc_ht=scontent-bos5-1.xx&_nc_gid=qD91MpaVYDRFp7bLWxiBHg&_nc_ss=7e289&oh=00_Af5VIYxAG3h_o7zT5ilskEWnNSJsEIbKRSi0j0G8xTorjA&oe=69FC8B8B"
          },
          "id": "950305717713028"
        }
      },
      "cover_video": null,
      "gif_cover_photo": null,
      "online_event_setup": null,
      "is_happening_now": false,
      "day_time_sentence": "Sun, May 3 at 12:00 PM EDT",
      "name": "May St. Pete Flea ",
      "is_online": false,
      "ticketing_context_row": {
        "price_range_text": null
      },
      "event_place": {
        "__typename": "Page",
        "contextual_name": "Mirror Lake Park, Downtown St Pete",
        "__isNode": "Page",
        "id": "521768081246129"
      },
      "eventUrl": "https://www.facebook.com/events/2255360061870188/",
      "can_page_viewer_invite_as_user": false,
      "can_viewer_invite": false,
      "can_viewer_rsvp": false,
      "can_viewer_share": false,
      "event_kind": "PUBLIC_TYPE",
      "if_viewer_can_duplicate_event": null,
      "is_online_or_detected_online": false,
      "is_past": false,
      "is_viewer_host": false,
      "start_timestamp": 1777824000,
      "rsvp_button_renderer": {
        "__typename": "PublicRsvpStyleRenderer",
        "event": {
          "id": "2255360061870188",
          "connection_style": "INTERESTED",
          "can_viewer_join": false,
          "can_viewer_watch": false,
          "can_viewer_unwatch": false,
          "viewer_watch_status": "UNWATCHED",
          "if_viewer_can_see_going_button": null,
          "event_connection_data_privacy_scope": null,
          "privacy_scope_for_toast": null,
          "can_join_group_chat": false,
          "created_for_group": null,
          "chat": null
        },
        "__module_operation_EventCometUniversalRSVPButton_event": {
          "__dr": "PublicEventCometRSVPButtonRenderer_rsvpStyleRenderer$normalization.graphql"
        },
        "__module_component_EventCometUniversalRSVPButton_event": {
          "__dr": "PublicEventCometRSVPButtonRenderer.react"
        }
      },
      "parent_if_exists_or_self": {
        "online_event_setup": null,
        "id": "2255360061870188"
      },
      "live_virtual_event_info": null,
      "__typename": "Event",
      "social_context": {
        "text": "7.3K interested · 195 going",
        "ranges": [],
        "interested_count": 7300,
        "going_count": 195,
        "went_count": null
      }
    }
  ],
  "cursor": "eyJzdGFydF....",
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "schema_context": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "cover_photo": {
            "type": "object",
            "properties": {
              "photo": {
                "type": "object",
                "properties": {
                  "accessibility_caption": {
                    "type": "string"
                  },
                  "image": {
                    "type": "object",
                    "properties": {
                      "uri": {
                        "type": "string"
                      }
                    }
                  },
                  "id": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "cover_video": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "gif_cover_photo": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "online_event_setup": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "is_happening_now": {
            "type": "boolean"
          },
          "day_time_sentence": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "is_online": {
            "type": "boolean"
          },
          "ticketing_context_row": {
            "type": "object",
            "properties": {
              "price_range_text": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              }
            }
          },
          "event_place": {
            "type": "object",
            "properties": {
              "__typename": {
                "type": "string"
              },
              "contextual_name": {
                "type": "string"
              },
              "__isNode": {
                "type": "string"
              },
              "id": {
                "type": "string"
              }
            }
          },
          "eventUrl": {
            "type": "string"
          },
          "can_page_viewer_invite_as_user": {
            "type": "boolean"
          },
          "can_viewer_invite": {
            "type": "boolean"
          },
          "can_viewer_rsvp": {
            "type": "boolean"
          },
          "can_viewer_share": {
            "type": "boolean"
          },
          "event_kind": {
            "type": "string"
          },
          "if_viewer_can_duplicate_event": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "is_online_or_detected_online": {
            "type": "boolean"
          },
          "is_past": {
            "type": "boolean"
          },
          "is_viewer_host": {
            "type": "boolean"
          },
          "start_timestamp": {
            "type": "integer"
          },
          "rsvp_button_renderer": {
            "type": "object",
            "properties": {
              "__typename": {
                "type": "string"
              },
              "event": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "connection_style": {
                    "type": "string"
                  },
                  "can_viewer_join": {
                    "type": "boolean"
                  },
                  "can_viewer_watch": {
                    "type": "boolean"
                  },
                  "can_viewer_unwatch": {
                    "type": "boolean"
                  },
                  "viewer_watch_status": {
                    "type": "string"
                  },
                  "if_viewer_can_see_going_button": {
                    "type": [
                      "string",
                      "object",
                      "array",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "event_connection_data_privacy_scope": {
                    "type": [
                      "string",
                      "object",
                      "array",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "privacy_scope_for_toast": {
                    "type": [
                      "string",
                      "object",
                      "array",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "can_join_group_chat": {
                    "type": "boolean"
                  },
                  "created_for_group": {
                    "type": [
                      "string",
                      "object",
                      "array",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "chat": {
                    "type": [
                      "string",
                      "object",
                      "array",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                }
              },
              "__module_operation_EventCometUniversalRSVPButton_event": {
                "type": "object",
                "properties": {
                  "__dr": {
                    "type": "string"
                  }
                }
              },
              "__module_component_EventCometUniversalRSVPButton_event": {
                "type": "object",
                "properties": {
                  "__dr": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "parent_if_exists_or_self": {
            "type": "object",
            "properties": {
              "online_event_setup": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              }
            }
          },
          "live_virtual_event_info": {
            "type": [
              "string",
              "object",
              "array",
              "number",
              "boolean",
              "null"
            ]
          },
          "__typename": {
            "type": "string"
          },
          "social_context": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              },
              "ranges": {
                "type": "array"
              },
              "interested_count": {
                "type": "integer"
              },
              "going_count": {
                "type": "integer"
              },
              "went_count": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "cursor": {
      "type": "string"
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}