> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Events

> Get the events of a city. Check out this [link](https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547) for an example of where we are getting the data from.

### Query Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `url` | `string` | Yes | The URL of the city's Facebook Events page |
| `time` | `string` | No | The time frame to search for. Defaults to all time |
| `cursor` | `string` | No | The cursor to paginate to the next page |

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
  "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...."
}
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.