Back to APIs
GET
Google Events API
Scrape local events, concerts, conferences from Google.
Endpoint
GET https://api.serpii.com/v1/google/eventsParameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Required | Event search query |
location | string | Optional | Event location |
date_range | string | Optional | Date range filter |
Code Examples
cURL
curl -X GET "https://api.serpii.com/v1/google/events?q=YOUR_VALUE" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Node.js
import { Serpii } from 'serpii';
const serpii = new Serpii('YOUR_API_KEY');
const response = await serpii.google_events({
q: 'YOUR_VALUE',
});
console.log(response);Python
from serpii import Serpii
client = Serpii('YOUR_API_KEY')
response = client.google_events(
q='YOUR_VALUE',
)
print(response)Example Response
{
"success": true,
"query": "example query",
"intent": "informational",
"sentiment": "neutral",
"clusters": ["topic1", "topic2"],
"entities": [
{"name": "Entity Name", "type": "EntityType"}
],
"organic_results": [
{
"position": 1,
"title": "Result Title",
"url": "https://example.com",
"snippet": "Result snippet text...",
"domain": "example.com"
}
],
"related_searches": ["related query 1", "related query 2"],
"credits_used": 1,
"credits_remaining": 4999
}