The Ticketmaster Discovery API client contains the implementation of all methods supported by Open Ticketmaster Discovery API. [1](https://developer.ticketmaster.com/products-and-docs/apis/discovery-api/v2/).
$ dotnet add package Ticketmaster.DiscoveryAll code and opinions expressed in this repository are solely my own and do not represent the views or opinions of my employer.
This project is not sponsored, endorsed, or financially supported by any organization. All work was done in my personal time to contribute to the open-source community.
The Ticketmaster Open API Wrapper for .NET provides a simple and intuitive interface for accessing the Ticketmaster Open API endpoints.
This SDK currently supports the Discovery API v2.
For detailed API documentation or to obtain an API key, visit the Ticketmaster Developer Portal.
Install the latest stable version from NuGet:
PM> Install-Package Ticketmaster.Discovery
Here’s a simple example using the EventsClient:
var api = new DiscoveryApi("YOUR_CLIENT_API_KEY");
var searchRequest = new SearchEventsRequest().AddQueryParameter("size", 1);
var searchResponse = await api.Events.Search(searchRequest);
var getResponse = await api.Events.GetDetails(new GetRequest("EventId"));
var getImagesResponse = await api.Events.GetImages(new GetRequest("EventId"));
The BaseQuery class and related request classes make it easy to work with query parameters supported by the Discovery API.
To add query parameters, create an instance of one of the provided request classes implementing IDiscoveryApiRequest or IDiscoveryApiGetRequest.
For example:
SearchEventsRequestSearchAttractionsRequestSearchClassificationsRequestSearchVenuesRequestUse the AddQueryParameter method to append parameters according to the API specification.
Example (based on the Search Events API):
var request = new SearchEventsRequest()
.AddQueryParameter("keyword", "rock")
.AddQueryParameter("city", "Los Angeles");
See the list of contributors who have participated in this project.
Before contributing, please review the Code of Conduct.
This project is licensed under the MIT License.
See the LICENSE.md file for details.