How to fetch a Facebook event's details by ID or URL
Get a single Facebook event's name, schedule, venue, hosts, and attendance as normalized JSON, then use the fields to decide which events go into a roundup
On this page
You have six Facebook event links from a community calendar and need to check each one before publishing a roundup. The job is to turn each link into a row with the event name, schedule, venue, hosts and attendance counts, then use those fields to decide which events belong in the roundup
The worksheet below is the deliverable for that decision. No lookup has been run for this guide, so the table is a design and the values are placeholders showing the shape
Build the roundup worksheet
Example input, invented for this guide and to be replaced: id 4045709448982422. For each of the six calendar links, supply the numeric identifier from the event page or the event URL from the page or share link. The output fills one row per event
| name | startTimeFormatted | endTime | locationName | city | hostNames | goingCount | interestedCount | isCanceled | url |
|---|---|---|---|---|---|---|---|---|---|
| (event name) | (formatted start) | (end time) | (venue) | (city) | (host names) | (count) | (count) | true or false | (event URL) |
Repeat the row shape for the six links. A row with a found: false result has no event data, so mark it not found and leave it out of the roundup
Input the event id or URL
Call anyapi.facebook.event_details, which is called through POST /v1/runs with toolId anyapi.facebook.event_details, once per event. The contract lists id as the event's numeric identifier and url as the event's Facebook URL; both are optional, so supply either one. Copy the numeric identifier from the event page, or paste the event URL from the event page or share link
The tool description says it returns a single event's name, schedule, venue, hosts and attendance as normalized JSON. This is a single-event lookup. A missing event returns found: false with reason: not_found, which the contract calls a successful call rather than an error
Read the fields that drive inclusion
The response begins with found and data. When found is true, data is the event object. When found is false, data is null and reason is not_found
Use isCanceled as the first gate: a true value marks a canceled event, and the row can leave the roundup. For schedule, read startTimeFormatted, a human-readable start time Facebook shows, and endTime. The duration field gives a human-readable event duration, and startTimestamp gives a UTC epoch timestamp in seconds. For venue, read locationName, city, address, latitude and longitude. For host, read hostNames for the worksheet and open hosts when you need the host page or profile details: id, name, type, url, image and verified. For attendance, read goingCount and interestedCount; the contract also has attendanceCount, described as the number of people Facebook reports as attending. The url field carries the event URL, and isOnline marks an online event. The coverPhotoUrl field is marked as populated whenever the provider has data for the entity, privacy gives the event's privacy setting, and eventKind gives the kind Facebook reports
The agent prompt
The prompt below tells an agent to check the current inputs and price before running, call the tool once per event, and return the worksheet. Replace the example reference with your six calendar references
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch
Facebook event details for each of the six event references from the
community calendar. Check the current inputs and price of
anyapi.facebook.event_details before running anything. Call the tool
once per event, using either the numeric id or the event URL for each
row. Return a table with name, startTimeFormatted, endTime,
locationName, city, hostNames, goingCount, interestedCount, isCanceled
and url. If a row returns found false with reason not_found, keep the
row and mark it not found. Do not invent event data.
Example input to replace with the six calendar references: 4045709448982422Estimated tool cost
Prices from the Purrkey catalog, read on November 13, 2026. The tool is listed as max_call, up to $0.0012 per call (unitPriceMicros 1200). The catalog defines max_call as "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges, and agent model fees are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Look up one event | calls x max price | $0.0012 per call | 1 | $0.0012 |
| Verify 10 event links | calls x max price | $0.0012 per call | 10 | $0.0120 |
The one-call row is the smallest check. The ten-call row covers the six calendar links with four repeat lookups
Fetch the first event
Open https://purrkey.app/tools/facebook?q=event_details and run the first of your six references. Keep the call to one event, then paste name, startTimeFormatted, endTime, locationName, city, hostNames, goingCount, interestedCount, isCanceled and url into the worksheet
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.FAQ
How do I fetch a Facebook event's details by ID or URL?
Call anyapi.facebook.event_details with either the event's numeric id or its Facebook url. The response returns found and data, with the event name, schedule, venue, hosts and attendance fields when a result is present.
Can I use an event URL instead of the numeric ID?
Yes. The contract lists id and url as optional properties, so you can supply either one. Copy the numeric identifier from the event page or paste the event URL from the page or share link.
What fields should I read to decide whether to include an event in a roundup?
Read isCanceled, startTimeFormatted, endTime, locationName, city, hostNames, goingCount, interestedCount and url. Extra checks can use duration, startTimestamp, address, latitude, longitude, hosts, attendanceCount, coverPhotoUrl, privacy and eventKind.
What does found false with reason not_found mean?
It means the lookup returned no event data for that reference. The contract calls a found: false answer a successful call rather than an error, and data is null with reason set to not_found.
Does a missing Facebook event count as an error?
No. A missing event returns found: false with reason: not_found, which the contract calls a successful call rather than an error. Mark the row not found and leave it out of the roundup.
How much does it cost to look up 10 Facebook events?
At the listed max_call price of up to $0.0012 per call, 10 calls have a ceiling of $0.0120. The catalog says successful runs settle at the actual AnyAPI charge, so that total is a ceiling, not a settled charge.
Can one call fetch details for six Facebook events?
No. anyapi.facebook.event_details is a single-event lookup, so call it once per event. The ten-call cost row covers six calendar links with four repeat lookups.
Next step
Try this with Facebook
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.