360 Secure SkillHub
360 安全技能中心

Upcoming Concerts

调用 Ticketmaster Discovery API 检索即将举行的演唱会与现场音乐活动,支持按城市、国家代码、艺人关键词、流派和日期范围过滤,脚本以 JSON 数组输出事件信息,并建议以按日期排序的表格呈现给用户。

patfitzner
patfitzner
热度 81.84
最近更新 2026-05-11 17:29:37
分类:搜索依赖:代码执行 / 第三方 API应用场景:推荐 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add upcoming-concerts
Metadata
name
upcoming-concerts
description
Search for upcoming concerts and live music events by city, country, artist, or genre using the Ticketmaster Discovery API. Use when the user asks about upcoming shows, concerts, gigs, or events in a city or for an artist.
metadata
{"openclaw":{"emoji":"🎸","requires":{"bins":["python3"],"env":["TICKETMASTER_API_KEY"]},"primaryEnv":"TICKETMASTER_API_KEY"}}

Upcoming Events

Search for upcoming concerts and live music events worldwide via the Ticketmaster Discovery API.

Usage

python3 {baseDir}/events.py --city "Valencia" --country ES

Command Options

  • --city (optional): City name (e.g. "Valencia", "Berlin", "New York")
  • --country (optional): ISO 3166-1 alpha-2 country code (e.g. ES, DE, US, GB)
  • --artist (optional): Filter by artist/keyword in event name
  • --genre (optional): Genre filter (e.g. "Metal", "Rock", "Jazz", "Pop")
  • --from (optional): Start date in YYYY-MM-DD format (default: today)
  • --to (optional): End date in YYYY-MM-DD format (default: 1 year from today)
  • --size (optional): Max number of results (default: 50, max: 200)

Examples

# All upcoming concerts in Valencia, Spain
python3 {baseDir}/events.py --city "Valencia" --country ES

# Metal shows in Germany
python3 {baseDir}/events.py --country DE --genre "Metal"

# Specific artist events worldwide
python3 {baseDir}/events.py --artist "Metallica"

# Rock concerts in London this summer
python3 {baseDir}/events.py --city "London" --country GB --genre "Rock" --from 2026-06-01 --to 2026-08-31

Output

The script prints a JSON array to stdout. Each entry contains:

  • date: Event date (YYYY-MM-DD)
  • name: Event name
  • artists: List of performing artist names
  • venue: Venue name
  • city: City name
  • country: Country code
  • genre: Genre/subgenre if available
  • url: Ticketmaster event URL

Present the results to the user as a readable table sorted by date.

Setup

The user needs a free Ticketmaster API key:

  1. Sign up at https://developer.ticketmaster.com/
  2. Copy the Consumer Key from the dashboard
  3. Set it: export TICKETMASTER_API_KEY="your_key_here"