How to search public Facebook events by keyword
Search public Facebook events by keyword and get normalized records for schedules, venues, price ranges and attendance counts, then turn the results into a 25-event shortlist for a sponsorship calendar
On this page
You have one keyword phrase and a target of 25 public Facebook events to put on a sponsorship calendar. anyapi.facebook.events_search takes that keyword and returns normalized event records one page at a time, with the schedule, venue, price text and attendance counts you need to cut the list down
The worksheet below is the deliverable: one row per event, with the fields that drive a keep or drop decision. No run has been executed for this guide, so the table is a design, not a result
Example input and shortlist worksheet
Example keyword: jazz festival. It is invented for this walkthrough; replace it with your own phrase
The contract's own input example is {"query": "music festival"}, which shows the shape: one string, nothing else required
| name | dayTimeSentence | startTimestamp | placeName | priceRangeText | goingCount | interestedCount | isOnline | isPast | url | shortlist decision |
|---|---|---|---|---|---|---|---|---|---|---|
| (event name) | (as returned) | (epoch integer) | (venue) | (price text) | 0 | 0 | false | false | (link) | keep, watch or drop |
Values here are placeholders showing the shape. Fill one row per event and keep the raw url so the outreach note can cite the exact event page
Search input: query and cursor
query is required. It is the keyword phrase the search runs on, so a two or three word phrase such as jazz festival is the normal shape
cursor is optional. Copy nextCursor from a previous response and pass it back as cursor to fetch the next page. A null nextCursor means that lane has no more events
The contract documents those two fields. Do not read that as the full set of accepted input. Treat the catalog entry as the current source and check it before a large run
Paging through results, and the public events limit
Call the tool once for the first page. Then read data.nextCursor. If it is a string, call again with that value as cursor. Repeat until the shortlist reaches 25 rows or nextCursor is null
The limit sits on this step: the contract describes the search as public Facebook events. Private or invite-only listings sit outside that description, so plan the calendar around public listings
If a keyword produces nothing, the contract describes the answer as found: false with reason: "not_found". Treat that response as a successful call. The contract says the found: false answer is a successful call, not an error, and costUsd is what it actually cost. Widen the keyword or accept that it has no public match
Reading the fields that drive the shortlist decision
found tells you whether the search produced a result. reason is present only when found is false, and the only value the contract lists is not_found
Inside data.events, each record carries these fields:
isPast: true means the event has already happened. Drop the row from a forward-looking sponsorship calendarstartTimestamp: an integer you can sort on to order the shortlist by datedayTimeSentence: the human-readable schedule string. Use it in the outreach draftplaceName: the venue name, populated whenever the provider has data for the entityisOnline: true marks a virtual event, which changes what a sponsorship buyspriceRangeText: the price text Facebook reports. It is a text field, so do not sort on itgoingCountandinterestedCount: integers you can rank on. A highinterestedCountwith a lowgoingCountdescribes a different audience than the reverseurl: the event link, required in the output. Keep it for the outreach notecoverImage,id,eventKind,placeIdandtype: supporting fields.eventKindis the kind Facebook reports
A workable decision rule: drop isPast rows, sort the rest by startTimestamp, then rank by interestedCount and mark a row keep when the venue and price text fit the calendar. Mark it watch when the counts are strong but the date sits close to a clash. The decision column is yours; the fields above are what the contract gives you to fill it
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search public
Facebook events for the keyword "jazz festival" and build a shortlist of
25 events for a sponsorship calendar. Check the current inputs and price
of anyapi.facebook.events_search before running anything. Call it once
for the first page, then pass data.nextCursor back as cursor to fetch
further pages until the shortlist reaches 25 rows or nextCursor is null.
Return a table with name, dayTimeSentence, startTimestamp, placeName,
priceRangeText, goingCount, interestedCount, isOnline, isPast, url and
a shortlist decision of keep, watch or drop. If found is false, report
reason not_found and stop. Do not invent events.Replace the example keyword with your own phrase. Keep the first run to one page so you can see how many rows a page returns before you commit to the paging loop
Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. Agents call it through POST /v1/runs with toolId anyapi.facebook.events_search. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One search page | calls x max price | $0.0036 per call | 1 | $0.0036 |
| Three search pages | calls x max price | $0.0036 per call | 3 | $0.0108 |
Those totals are ceilings. Model fees for the agent are not counted. A single page is the cheapest way to test the keyword; three pages covers the paging loop when one page does not fill 25 rows
Run the first page
Start with one call and one keyword, then decide whether the paging loop is worth it. The tool page is Facebook events search
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 search public Facebook events by keyword?
Call anyapi.facebook.events_search with a query string, then pass data.nextCursor back as cursor to fetch further pages. The output is normalized JSON with schedule, venue, price text and attendance counts.
What inputs does anyapi.facebook.events_search take?
The contract documents a required query and an optional cursor. Do not treat that as the full set of accepted input; check the catalog entry before a large run.
What does nextCursor do?
It is an opaque cursor for the next page of events, or null when that lane has no more. Pass it back as cursor to continue.
What does a found false response mean?
reason is present only when found is false, and the only value the contract lists is not_found. The contract describes a found: false answer as a successful call, not an error.
Which events appear in the results?
The contract describes the search as public Facebook events. Private or invite-only listings sit outside that description, so plan the calendar around public listings.
How much does it cost to search three pages of Facebook events?
$0.0036 per call at the max_call ceiling, so three pages are at most $0.0108. Successful runs settle at the actual AnyAPI charge, and model fees for the agent are not counted.
How do I choose which events to shortlist?
Drop rows where isPast is true, sort by startTimestamp, then rank by goingCount and interestedCount and check placeName and priceRangeText against the calendar.
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.