Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Google Events

Tài liệu API
https://api.sandbase.ai/v1/api/google/events

Search events listed on Google by keyword and place, with title, date, venue, address, ticket links and thumbnails.

Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 3 tùy chọn

Phòng thử nghiệm

Đầu vào
Parameter defines the query you want to search. To search for events in a specific location, just include the location inside your search query (e.g. `Events in Austin, TX`).
Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. The `location` and `uule` parameters can't be used together. It is recommended to specify `location` at the city level in order to simulate a real user’s search. If `location` is omitted, the search may take on the location of the proxy.
Parameter is the Google encoded location you want to use for the search. `uule` and `location` parameters can't be used together. Head to UULE Generator if you need to convert a location or GPS coordinates to `uule` parameter, and vice versa.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Google Events

Search events listed on Google by keyword and place, with title, date, venue, address, ticket links and thumbnails.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google/events" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "concerts in austin"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
qstringYesParameter defines the query you want to search. To search for events in a specific location, just include the location inside your search query (e.g. Events in Austin, TX).
locationstringNoParameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. The location and uule p
uulestringNoParameter is the Google encoded location you want to use for the search. uule and location parameters can't be used together. Head to UULE Generator if you need to convert a location or GPS coordinates to uule parameter, and vice vers
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Google$0.01 mỗi lần gọiJSON
Google$0.01 mỗi lần gọiJSON
Google$0.015 mỗi lần gọiJSON
GoogleTừ $0.002 mỗi lần gọiJSON
GoogleTừ $0.0015 mỗi lần gọiJSON
Google$0.01 mỗi lần gọiJSON

Hướng dẫn:Best Google API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Google Events?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/google/events với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Google Events có giá bao nhiêu?

$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Google Events chấp nhận những tham số nào?

Bắt buộc: q (string). Tùy chọn: location (string), uule (string) và json_restrictor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Google Events trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của Google không?

Không. Google Events chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Google.