PulseEmetrics

Facebook Events

3 endpoints. All requests need an x-api-key header.

GET/v1/facebook/event/details

Event Details

Get a specific event by its URL or id

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
idstringThe ID of the event Example: 2255360061870188
urlstringThe URL of the event Example: https://www.facebook.com/events/2255360061870188/
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/facebook/event/details?id=2255360061870188&url=https%3A%2F%2Fwww.facebook.com%2Fevents%2F2255360061870188%2F" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/facebook/event/details?id=2255360061870188&url=https%3A%2F%2Fwww.facebook.com%2Fevents%2F2255360061870188%2F", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/facebook/event/details",
    params={"id": "2255360061870188", "url": "https://www.facebook.com/events/2255360061870188/"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/facebook/events

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.

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
urlrequiredstringThe URL of the city's Facebook Events page Example: https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547
timestringThe time frame to search for. Defaults to all time One of: todaythis_weeknext_week
cursorstringThe cursor to paginate to the next page Example: eyJzdGFydF...
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/facebook/events?url=https%3A%2F%2Fwww.facebook.com%2Fevents%2Fexplore%2Fsaint-petersburg-florida%2F111326725552547" \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/facebook/events?url=https%3A%2F%2Fwww.facebook.com%2Fevents%2Fexplore%2Fsaint-petersburg-florida%2F111326725552547", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/facebook/events",
    params={"url": "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())
GET/v1/facebook/events/search

Search Events

Search for events by name. You can take a look at the page from Facebook we are getting the data from [here](https://www.facebook.com/events/search/?q=dogs)

Cost: 5 credits live · 1 credit when served from cache

Query parameters

NameTypeDescription
queryrequiredstringThe query to search for Example: Event name or description
cursorstringThe cursor to paginate to the next page Example: Abr1gHMU6H....
freshbooleanSet to true to skip the cache and fetch live data at the live price.

Example

curl "https://api.pulseemetrics.com/v1/facebook/events/search?query=Event%20name%20or%20description&cursor=Abr1gHMU6H...." \
  -H "x-api-key: $PULSE_KEY"
Try it in the playground →
JavaScript and Python
const res = await fetch("https://api.pulseemetrics.com/v1/facebook/events/search?query=Event%20name%20or%20description&cursor=Abr1gHMU6H....", {
  headers: { "x-api-key": process.env.PULSE_KEY },
});
const { data, meta } = await res.json();
import os, requests

r = requests.get(
    "https://api.pulseemetrics.com/v1/facebook/events/search",
    params={"query": "Event name or description", "cursor": "Abr1gHMU6H...."},
    headers={"x-api-key": os.environ["PULSE_KEY"]},
)
print(r.json())