How to list a Facebook page's events by URL
Pull upcoming and past events from a public Facebook page URL into a normalized table for scheduling and venue review
On this page
You have five public Facebook venue page URLs and need to compare their event calendars before choosing a weekend outing. Call anyapi.facebook.profile_events once per page to list upcoming and past events, then use the schedule, venue and status fields to shortlist the pages that still run relevant events
The deliverable is a worksheet with one row per event and a final shortlist column. No run has been executed for this article, so the example table is a design. Values here are placeholders showing the shape. The columns mirror the output fields so you can sort rows by page and date
Build the event worksheet
Example page URL: https://www.facebook.com/harborlightgallery. Replace it with your own public page URL
The tool returns event rows under data.events. Use these columns in your worksheet: name, startTimestamp, dayTimeSentence, placeName, city, creatorName, isOnline, isPast, isCanceled, url and shortlist. A placeholder row:
| name | startTimestamp | dayTimeSentence | placeName | city | creatorName | isOnline | isPast | isCanceled | url | shortlist |
|---|---|---|---|---|---|---|---|---|---|---|
| Example event name | 1767225600 | Example day and time sentence | Example venue | Example city | Example host | false | false | false | https://www.facebook.com/events/example | review |
A row with isCanceled true can be set to skip. A row with isPast true is history, not a candidate for a weekend outing, so set it to skip as well. isOnline true means no physical venue to compare, so set shortlist to review and use placeName and city only when isOnline is false
Send the page URL and optional cursor
Input: url required. It accepts public page links such as a facebook.com page-name URL, a /p/name-id URL, a /pages/name/id URL, a /pg/name URL, a /people/name/id URL and a profile.php?id=id URL, on facebook.com or fb.com with or without www, m, mbasic, web, business or a language subdomain. Anything after the page, such as a tab, is fine because only the page is read. cursor is optional and comes from nextCursor in a previous response. The contract says event, group, share, reel, video, hashtag, search and login links are refused as invalid input with no charge. The tool cannot take an event URL as a page input. Keep the first request to one page URL so you can inspect the shape before adding four more
Read the fields that drive a shortlist
Top-level found says whether the source returned a result. When found is false, reason is not_found; the contract calls that a successful call, not an error. When data exists, read data.events, data.hasNextPage, data.nextCursor and data.totalCount
For each event, startTimestamp orders the schedule, and dayTimeSentence gives the human-readable date and time. placeName and city support venue review. creatorName records the host. isPast, isCanceled and isOnline are flags for the shortlist decision. name and url identify the event. Leave shortlist empty for canceled or past rows, and mark online rows for a separate review because there is no physical venue to compare
Continue through more events
If data.hasNextPage is true, pass data.nextCursor back as the cursor input to get the next page. Stop when hasNextPage is false or nextCursor is null. totalCount gives the count for the current lane. Keep the cursor with the page URL so you do not mix pages in the worksheet
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list Facebook page events for five Example page URLs. Check the current inputs and price of anyapi.facebook.profile_events before running anything. Call the tool once per page URL. If data.hasNextPage is true, pass data.nextCursor back as cursor until the page has no more events. Return one table with name, startTimestamp, dayTimeSentence, placeName, city, creatorName, isOnline, isPast, isCanceled, url and shortlist. Mark shortlist as review, skip or blank based on isPast, isCanceled and isOnline. Do not use event, group, share, reel, video, hashtag, search or login links.
Example page URLs, replace with your own:
https://www.facebook.com/harborlightgallery
https://www.facebook.com/riversidehall
https://www.facebook.com/oakandiron
https://www.facebook.com/meridianrooms
https://www.facebook.com/northpierstageEstimated tool cost
Price from the Purrkey catalog read November 13, 2026. Agents call it through POST /v1/runs with toolId anyapi.facebook.profile_events, unit max_call, up to $0.0036 per call (unitPriceMicros 3600). The unit means "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges. Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One page URL, first page | 1 call x max price | up to $0.0036 per call | 1 | $0.0036 |
| One page URL, three pages | 3 calls x max price | up to $0.0036 per call | 3 | $0.0108 |
Next action
Open Facebook tools to check the current inputs and price for anyapi.facebook.profile_events. Start with one page URL, inspect the returned event fields, then add the other four URLs
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 list a Facebook page's events by URL?
Call the events tool with the public page URL in the url field. It returns event rows with name, schedule, venue, host and flags, plus a cursor when more events are available.
What inputs does anyapi.facebook.profile_events take?
It takes a required url field for a supported public Facebook page link and an optional cursor field taken from a previous response's nextCursor.
Which Facebook links are rejected?
The input schema rejects event, group, share, reel, video, hashtag, search and login links as invalid input with no charge. Only public Facebook page URLs are accepted.
What do isPast, isCanceled and isOnline mean?
isPast is a schedule flag, isCanceled is a canceled flag and isOnline is an online flag. Use them with startTimestamp and the venue fields to set the shortlist column.
How do I get more events from a page?
Read nextCursor from the response and pass it back as cursor. hasNextPage says whether another page is available, and totalCount gives the count for the current lane.
How much does it cost to list events for one page?
The price is up to $0.0036 per call. One page with a first page of results is one call at up to $0.0036, and three pages are three calls at up to $0.0108. Successful runs settle at the actual AnyAPI charge.
What happens when a page has no events?
The response can have found false with reason not_found, which the contract calls a successful call, not an error.
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.