Skip to content
Docs

Facebook event details

One public event in full, by event_id or its Facebook link.

POST/v1/facebook/event
2 creditsTry it2 (a missing event and failed requests are free)

The listing row plus the about payload: end time and the event timezone abbreviation as Facebook prints it, the full description, the canceled flag, the ticket URL when the organizer gave one, and the hosts ("Event by …": name, id, profile link). The event's own exact going/interested counts are not in the signed-out payload, so the counts here are parsed from Facebook's own rounded sentence (carried verbatim in social_context). A deleted or private event is a 404 and is not billed.

Request

POSThttps://api.scrapercompany.com/v1/facebook/event

Authenticate with your API key in the x-api-key header (see Authentication).

Run this request on your own API key from this page, with the values you type. Signed out? Sign in or get an API key.

Body

JSON object. Unknown fields are rejected with 422.

  • event_idstring | nullpattern ^\d{5,25}$

    Facebook's numeric event id: event_id of a row from POST /v1/facebook/events.

  • urlstring | nullmin length 12, max length 2000

    A Facebook event link instead of event_id: facebook.com/events/<id> (with or without a venue/title slug before the id).

Example request

curl -X POST "https://api.scrapercompany.com/v1/facebook/event" \
  -H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event_id": "4045709448982422"
  }'

Response

200 — One public Facebook event: schedule, venue, hosts and description. Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).

200 response
{
  "search_parameters": {
    "engine": "facebook_event",
    "event_id": "4045709448982422"
  },
  "event": {
    "event_id": "4045709448982422",
    "name": "Kansas Comic Con 2026",
    "url": "https://www.facebook.com/events/4045709448982422/",
    "start_time": "2026-10-31T15:00:00+00:00",
    "start_timestamp": 1793458800,
    "day_time_sentence": "Oct 31 at 10:00 AM – Nov 1 at 5:00 PM CST",
    "place_name": "Century II Performing Arts & Convention Center",
    "latitude": 37.684752707018,
    "longitude": -97.340221063158,
    "is_online": false,
    "is_past": true,
    "going_count": 277,
    "interested_count": 2200,
    "social_context": "Event in Wichita, KS, United States by Kansas Comic Con on Saturday, October 31 2026 with 2.2K people interested and 277 people going. 104 posts in the discussion.",
    "cover_image": "https://scontent.fykz2-1.fna.fbcdn.net/v/t39.30808-6/570154625_122237652734251216_7108892451437434978_n.jpg",
    "event_kind": "PUBLIC_TYPE",
    "end_time": "2026-11-01T23:00:00+00:00",
    "end_timestamp": 1793574000,
    "timezone": "CDT",
    "description": "Kansas Comic Con is back! Join us Saturday, October 31st and Sunday, November 1st 2026 for two full days of celebs, creators & artists, vendors, fan groups, Q&As, fan panels, cosplay, and more!",
    "is_canceled": false,
    "hosts": [
      {
        "name": "Kansas Comic Con",
        "id": "61557536504734",
        "url": "https://www.facebook.com/kansascomiccon"
      }
    ]
  },
  "meta": {
    "source": "facebook"
  }
}

Errors

Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.

StatusMeaningRetry?
401Unauthorized

Missing or invalid API key.

{"detail":"missing or invalid API key"}
No, fix the request
402Payment Required

Not enough credits for this request: the account's credits mode is enforce (mode in GET /v1/billing) and the request costs more than the available credits. Nothing is run or charged.

{"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."}
No, fix the request
404Not Found

The property, stay, job or record was not found.

{"detail":"job not found"}
No, fix the request
422Unprocessable Content

Request validation failed. detail is a list of problems for schema errors, or a string for semantic checks performed by the endpoint.

{"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]}
No, fix the request
429Too Many Requests

Too many requests: the key's requests-per-minute limit was exceeded, or (in enforce credits mode) the plan's concurrent-request limit. No rate-limit or Retry-After headers are sent; back off and retry.

{"detail":"rate limit 60/min exceeded"}
Yes, with backoff
503Service Unavailable

Temporarily unavailable: a dependency of this endpoint is down, or the upstream source changed its contract. Retry later.

{"detail":"database unavailable: OperationalError"}
Yes, with backoff

Try it

Press Try it above to run this request on your own key, with the values you type (sign in first). For a no-code walkthrough, use the workspace’s guided Try it.

  1. Export your key: export SCRAPERCOMPANY_API_KEY=sk_... (no key yet? start a free trial).
  2. Copy the cURL example above and run it in a terminal.

Credits

2 credits per successful call (2 (a missing event and failed requests are free)). Failed, blocked and empty results are free.

Questions about this page?

Send the page link and your question, and the team will answer.

Email support