
Google Calendar Create Event (Tool)
Pricing
Pay per event

Google Calendar Create Event (Tool)
Create Google Calendar events using your own API credentials. Perfect for AI agents via MCP integration. Schedule meetings, appointments & events automatically. Secure, fast, and works with Claude & custom AI tools. Integrate with your agent using: "Actors MCP server"- Apify.
0.0 (0)
Pricing
Pay per event
0
1
1
Last modified
14 hours ago
You can access the Google Calendar Create Event (Tool) programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, youโll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "businessId": "my_business_name",12 "googleCredentials": {13 "access_token": "๐ Paste your 'Access token' here (starts with ya29.)",14 "refresh_token": "๐ Paste your 'Refresh token' here (starts with 1//)",15 "client_id": "๐ Paste your Client ID here (ends with .googleusercontent.com)",16 "client_secret": "๐ Paste your Client Secret here"17 },18 "eventData": {19 "summary": "Appointment - Customer Name",20 "description": "Customer phone: 555-1234\nNotes: First visit, needs consultation",21 "start": {22 "dateTime": "2025-08-15T14:00:00-07:00",23 "timeZone": "America/Los_Angeles"24 },25 "end": {26 "dateTime": "2025-08-15T15:00:00-07:00",27 "timeZone": "America/Los_Angeles"28 },29 "attendees": [30 {31 "email": "customer@example.com",32 "displayName": "Customer Name"33 }34 ],35 "location": "123 Main St, Your City, State",36 "reminders": {37 "useDefault": false,38 "overrides": [39 {40 "method": "email",41 "minutes": 144042 },43 {44 "method": "popup",45 "minutes": 6046 }47 ]48 }49 }50};51
52// Run the Actor and wait for it to finish53const run = await client.actor("sambehnke/google-calendar-create-event").call(input);54
55// Fetch and print Actor results from the run's dataset (if any)56console.log('Results from dataset');57console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);58const { items } = await client.dataset(run.defaultDatasetId).listItems();59items.forEach((item) => {60 console.dir(item);61});62
63// ๐ Want to learn more ๐? Go to โ https://docs.apify.com/api/client/js/docs
Google Calendar Create Event (Tool) API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Google Calendar Create Event (Tool) API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-client
Other API clients include: