PI Event Master’s Developer license can expose imported event posts as a focused REST API for mobile apps, JavaScript frontends, automation platforms, and client dashboards. WordPress remains the editorial and import system; external applications receive structured event data without scraping rendered pages.
What the API exposes
With a valid Developer license, PI Event Master registers three routes:
GET /wp-json/pi-event-master/v1/events
GET /wp-json/pi-event-master/v1/events/{id}
GET /wp-json/pi-event-master/v1/ical/{id}
The list endpoint supports per_page, page, city, postalcode, category, tag, keyword, and after in YYYY-MM-DD format. The single endpoint returns full imported-event data, including content, stored metadata, image data, and the affiliate-aware ticket URL. The iCal route returns a downloadable calendar file.
Import first, then serve
The REST API works with events imported into WordPress. Live Ticketmaster search results are not automatically a permanent headless database. Build the content pipeline with manual imports, Auto-import on First View, or Business-tier scheduled search rules. That gives client apps stable WordPress post IDs and lets editors correct or enrich event content before distribution.
Require an API key
Open Developer Settings → REST API, enable Require API Key, and generate a secret. Clients can send it as a Bearer token:
Authorization: Bearer YOUR_API_KEY
The plugin also accepts ?api_key=YOUR_API_KEY, but query-string secrets can appear in logs, analytics, browser history, and shared URLs. Prefer the Authorization header for production clients. Store the secret in a server-side environment or secure mobile configuration, never in a public repository.
Query a city feed
GET https://example.com/wp-json/pi-event-master/v1/events?city=Chicago&after=2026-08-01&per_page=20&page=1
The response includes total results, page count, current page, page size, cache status, and an events array. Use server-provided pagination instead of downloading the full catalogue into every client session.
Enable response caching
Developer API caching stores each unique list or single-event response as a WordPress transient. TTL choices range from one minute to 24 hours. Five or ten minutes is a sensible starting point for most apps; extend the TTL for high-volume dashboards that tolerate slower editorial propagation.
Responses include X-Cache: HIT or MISS. Saving or deleting an imported event invalidates relevant API caches, and the settings screen provides Flush All API Response Cache. Administrators can use the documented no-cache bypass during diagnostics.
Turn on rate limiting
PI Event Master can track request limits by IP address, or by API key when authentication is enabled. The default starting point is 60 requests per 60-second window. Choose a limit based on actual client behavior, including pagination, retry logic, and background refreshes.
Every response can include:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-ResetX-Cache
A client that exceeds the window receives HTTP 429 and a Retry-After header. Respect it with exponential backoff rather than immediately retrying.
Use webhooks for event-driven workflows
Developer settings can send an import webhook after a session completes. The JSON payload includes the event name, session ID, created post IDs, Ticketmaster IDs, count, time, and site URL. Connect it to an automation endpoint to refresh a search index, notify an editorial channel, rebuild a static frontend, or start downstream enrichment.
Webhook delivery should trigger work, not carry the entire catalogue. Let the receiver use the REST API to fetch current event records.
Architecture patterns
- Mobile app: fetch paginated city or category feeds and open affiliate-aware ticket links externally.
- React or static frontend: rebuild on the import webhook and use cached API responses for incremental updates.
- Client dashboard: filter events by city, date, category, or keyword without granting WordPress administrator access.
- Automation: react to completed import sessions, then request the affected posts by ID.
Production checklist
- Use HTTPS everywhere.
- Require and periodically rotate the API key.
- Enable response caching and rate limiting.
- Test 401/403, 404, 429, empty-list, and pagination behavior.
- Monitor webhook failures and client retries.
- Keep imported-event expiry rules aligned with what apps should display.
This architecture keeps Ticketmaster ingestion and WordPress editing in one place while giving each frontend a controlled, cacheable interface built specifically for event delivery.







