Call it
curl https://api.peume.com/v1/call/search-google-events \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"mode": "events",
"q": "your q",
"include_details": false,
"max_pages": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-events", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"mode": "events",
"q": "your q",
"include_details": false,
"max_pages": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-events",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"mode": "events",
"q": "your q",
"include_details": False,
"max_pages": 1
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-google-events.
Parameters
modestringevents (default): event listings for a place, such as concerts, festivals, shows and conferences. sport_events: upcoming fixtures for the club, league or competition named in q, for example 'Chelsea', 'Premier League', 'Harlequins' or 'NBA'. Google removed sport from its event listings in November 2026, so sports-worded searches in events mode return nothing; Sport Event Mode reads Google's fixtures block instead and returns each game in the same event shape.
events · sport_events
Example: events
qRequiredstringSearch query for events. Examples: 'concerts in Austin', 'tech conferences in Chicago', 'festivals in Portland'. Tip: name the city plainly here and put the state or precise place in the Location field. Including a state abbreviation in the query itself (e.g. 'Festivals in Portland, OR') reliably returns nothing. In Sport Event Mode, give a club, league or competition name only ('Chelsea', 'Premier League', 'NBA'); city-shaped sport queries such as 'football in London' return nothing.
locationstringGeographic location to bias event results toward (e.g. 'Austin, Texas, United States', 'New York, NY', 'London, United Kingdom'). Optional — improves relevance when the search query itself isn't location-specific.
glstringCountry code for localization (ISO 3166-1 alpha-2, lowercase, e.g. 'us', 'gb', 'de', 'fr', 'jp'). Optional. Applies to Sport Event Mode and to the search-results fallback; the primary event listing surface returns English, US-formatted labels regardless of this value.
ad · ae · af · ag · ai · al · am · an · ao · aq · ar · as …
hlstringLanguage code for localization (ISO 639-1, lowercase, e.g. 'en', 'es', 'fr', 'de', 'ja'). Optional. Applies to Sport Event Mode and to the search-results fallback. A non-English value moves the localized search-results lookup ahead of the primary listing surface, which only answers in English.
en · es · fr · de · it · pt · ru · ja · ko · zh · zh-cn · zh-tw …
advancedstringOptional date filter. Supported tokens: date:today, date:tomorrow, date:week (this week), date:weekend (this weekend), date:next_week (Google's weeks run Sunday to Saturday), date:month (this month - note 'date:month', not 'date:thismonth'), date:next_month. The filter is applied by naming the window in the search query, the only date mechanism Google still honors for event listings; one date token takes effect per run (the first listed). event_type:Virtual-Event is rejected at the start of the run before any charge: Google's listings no longer distinguish virtual events, so it would return mi
include_detailsbooleanEvents mode only. Fetch the full description and venue details (type, description) for each event listing: one extra lookup per event, at most 10 per run, billed per detailed event. Off by default. Ticket links, prices and venue links come with every listing at no extra cost.
Example: false
max_pagesintegerRetained for backward compatibility. Event listings are returned as a single batch of up to 10 on one page, so any value above 1 is clamped to 1 and you are charged for one page.
Example: 1
output_filestringOptional filename to save results as JSON. If not provided, will auto-generate based on query and timestamp.
