# Google Events API - Structured Event Listings (`darkdev/google-events-api`) Actor

Scrape Google Events search results into structured JSON: event name, date/time, venue, address. No official Google Events API exists - this actor fills that gap.

- **URL**: https://apify.com/darkdev/google-events-api.md
- **Developed by:** [DarkDev](https://apify.com/darkdev) (community)
- **Categories:** Marketing, Developer tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🎭 Google Events API

**No official Google Events API exists — this Actor fills that gap.**

Scrape Google Events search results (`ibp=htl;events`) into clean, structured JSON. Works for concerts, conferences, festivals, sports, theater and online events across 200+ languages.

### 🚀 Quick Start

Run with minimal input:

```json
{
  "searchQuery": "concerts Istanbul",
  "maxResults": 20
}
```

Or with full options:

```json
{
  "searchQuery": "concerts new york",
  "location": "Manhattan",
  "maxResults": 50,
  "dateFrom": "2026-08-01",
  "dateTo": "2026-08-31",
  "language": "en",
  "useProxy": true
}
```

### 📥 Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQuery` | string | **required** | What to search, e.g. `concerts Istanbul` |
| `location` | string | `""` | Optional location to append to query |
| `maxResults` | integer | `20` | Max events to return (1–100) |
| `dateFrom` | string | `""` | Filter events from `YYYY-MM-DD` |
| `dateTo` | string | `""` | Filter events to `YYYY-MM-DD` |
| `language` | string | `"en"` | UI language (`en`, `tr`, `de`, `fr`, `es`, `it`) |
| `useProxy` | boolean | `true` | Route through Apify proxy to avoid IP blocks |

### 📤 Output

Each event is one dataset item:

```json
{
  "event_name": "Black Sherif",
  "event_date": "1 AUG",
  "event_date_time": "Today, 8:00 – 9:30 PM",
  "venue": "Hammerstein Ballroom at Manhattan Center",
  "address": "311 W 34th St.",
  "city": "New York, NY",
  "raw_text": "1\nAUG\nBlack Sherif\n...",
  "scraped_at": "2026-08-01T19:29:30Z"
}
```

### 💡 Use Cases

- **Event discovery apps** — power your "what's happening" feed
- **AI agents / MCP clients** — give Claude, ChatGPT or Cursor live event search
- **Travel & local apps** — concerts, festivals, theater near a destination
- **Calendar copilots** — pull real event dates for scheduling

### ⚙️ Technical Notes

- Uses **Playwright (Chromium)** headless to render Google's Events UI
- **Stealth mode** to avoid bot detection (webdriver spoofing)
- **3 retries** with backoff on page load failures
- **Scroll-based loading** to collect more events
- **Apify proxy** support for region-specific results (Google Events requires supported regions)
- Fallback selectors if Google changes DOM structure

### ⚠️ Notes

- Google Events is region-restricted — results depend on proxy location and language
- Date filters are applied post-scrape (best-effort, based on displayed date)

# Actor input Schema

## `searchQuery` (type: `string`):

e.g. 'concerts Istanbul', 'konser İstanbul 2026'

## `location` (type: `string`):

e.g. 'İstanbul', 'London'

## `maxResults` (type: `integer`):

How many events to return

## `dateFrom` (type: `string`):

Filter events starting from this date

## `dateTo` (type: `string`):

Filter events until this date

## `language` (type: `string`):

Search language

## `useProxy` (type: `boolean`):

Route through Apify proxy to avoid IP blocking

## Actor input object example

```json
{
  "maxResults": 20,
  "language": "en",
  "useProxy": true
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("darkdev/google-events-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("darkdev/google-events-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call darkdev/google-events-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=darkdev/google-events-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/giGg2DCLDH5arOhNB/builds/8UcycJDAhb1PiSuod/openapi.json
