# LONG Events Electronic Music API

> LONG Events Electronic Music API is a paid API for AI agents from long.events, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-16).

Discovers and lists global electronic music events, artists, schedules, ticket links, and now-playing/spotlight data via a structured catalog API.

## Facts

- Endpoint: GET https://long.events/functions/v1/api-events?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/long-events-electronic-music-api-ffe2190f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RZVWOYRrJev8hVRAnEjqK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability long-events-electronic-music-api-ffe2190f
```

Example prompt: Show me upcoming electronic music events this weekend — list the artists playing, their verified Spotify IDs, and the closest ticket purchase link for each event.

## When to prefer this

Choose this endpoint when you need structured, cross-provider-verified electronic music event and artist data including Spotify IDs, MusicBrainz IDs, and resolved ticket URLs. It is purpose-built for the global electronic/rave/techno/club scene and supports a rich action vocabulary (now-playing, spotlight, schedule, catalog stats) that generic event APIs lack.

## Known failure modes

- Unknown or unsupported action method returns an error response
- Missing required query parameters (type or method) causes a 400-level error
- Artist not found in catalog returns empty or null result
- Payment not completed (x402 protocol) results in 402 Payment Required before data is returned
- Rate limiting or quota exceeded returns an error

## How this service works

LONG Events events API: global electronic-music event discovery with structured artists. Actions: discover, list, stats, catalog_stats, spotlight_candidates, get_sets, get_now_playing, get_schedule, search_artists, get_artist, get_artist_events, list_artists. Artist-action identity objects include nullable mbid and verified spotify_id; artist event payloads include the resolved closest-to-purchase ticket_url.

## Output

Returns structured JSON containing electronic music events (with dates, venues, lineups), artist objects (with nullable mbid and cross-provider-verified spotify_id), schedules, now-playing sets, ticket URLs resolved to the closest purchase point, and catalog/spotlight statistics depending on the action method invoked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/long-events-electronic-music-api-ffe2190f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from long.events](https://www.zero.xyz/host/long.events/llms.txt)
