{
  "opencollection": "1.0.0",
  "info": {
    "name": "viagogo Catalog Events API",
    "version": "1.0.0.49"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Events",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.viagogo.net/catalog/events",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page of data to retrieve."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Set custom page sizes on response."
              },
              {
                "name": "updated_since",
                "value": "",
                "type": "query",
                "description": "Filters the response to only return items that have been updated since the given timestamp"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Determines the ordering of items. A comma-separated string containing `resource_version`."
              },
              {
                "name": "min_resource_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "country_code",
                "value": "",
                "type": "query"
              },
              {
                "name": "latitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "longitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "max_distance_in_meters",
                "value": "",
                "type": "query"
              },
              {
                "name": "genre_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude_parking_passes",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Lists all events on the viagogo platform. Use this endpoint to sync the entire viagogo event catalog with your application."
        },
        {
          "info": {
            "name": "List events by event ids.",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.viagogo.net/catalog/events",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page of data to retrieve."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Set custom page sizes on response."
              },
              {
                "name": "updated_since",
                "value": "",
                "type": "query",
                "description": "Filters the response to only return items that have been updated since the given timestamp"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Determines the ordering of items. A comma-separated string containing `resource_version`."
              },
              {
                "name": "min_resource_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "country_code",
                "value": "",
                "type": "query"
              },
              {
                "name": "latitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "longitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "max_distance_in_meters",
                "value": "",
                "type": "query"
              },
              {
                "name": "genre_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude_parking_passes",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List a specified set of events on the viagogo platform. Note that the eventID being passed can already be merged with another event. And in this case, details of the new event will be returned, if a different eventId is returned then it means that the event has been merged with the returned event. Also inside _embedded field of the response, a mapping between the original eventId and new eventId will be provided."
        },
        {
          "info": {
            "name": "List events by category id.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.viagogo.net/catalog/categories/:categoryId/events",
            "params": [
              {
                "name": "categoryId",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page of data to retrieve."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Set custom page sizes on response."
              },
              {
                "name": "updated_since",
                "value": "",
                "type": "query",
                "description": "Filters the response to only return items that have been updated since the given timestamp"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Determines the ordering of items. A comma-separated string containing `resource_version`."
              },
              {
                "name": "min_resource_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "country_code",
                "value": "",
                "type": "query"
              },
              {
                "name": "latitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "longitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "max_distance_in_meters",
                "value": "",
                "type": "query"
              },
              {
                "name": "genre_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude_parking_passes",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List set of events filtered by category id on the viagogo platform."
        },
        {
          "info": {
            "name": "Get an event on the viagogo platform using an identifier from an external platform.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.viagogo.net/catalog/events/external_mappings/:platform/:externalEventId",
            "params": [
              {
                "name": "platform",
                "value": "",
                "type": "path",
                "description": "The name of the external platform. Can be `legacy_stubhub`"
              },
              {
                "name": "externalEventId",
                "value": "",
                "type": "path",
                "description": "The event identifier from the external platform."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get an event on the viagogo platform using an identifier from an external platform."
        },
        {
          "info": {
            "name": "Get an event",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.viagogo.net/catalog/events/:eventId",
            "params": [
              {
                "name": "eventId",
                "value": "",
                "type": "path",
                "description": "The event identifier"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Note that the eventID being passed can already be merged with another event. And in this case, details of the new event will be returned, if a different eventId is returned then it means that the event has been merged with the returned event. Also inside _embedded field of the response, a mapping between the original eventId and new eventId will be provided."
        },
        {
          "info": {
            "name": "Search events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.viagogo.net/catalog/events/search",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "The query text to be used to match events."
              },
              {
                "name": "dateLocal",
                "value": "",
                "type": "query",
                "description": "The specific date of the event, this is optional"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page of data to retrieve."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Set custom page sizes on response."
              },
              {
                "name": "updated_since",
                "value": "",
                "type": "query",
                "description": "Filters the response to only return items that have been updated since the given timestamp"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Determines the ordering of items. A comma-separated string containing `resource_version`."
              },
              {
                "name": "min_resource_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "country_code",
                "value": "",
                "type": "query"
              },
              {
                "name": "latitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "longitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "max_distance_in_meters",
                "value": "",
                "type": "query"
              },
              {
                "name": "genre_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude_parking_passes",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Search for events on the viagogo platform. Use this endpoint to search the entire viagogo event catalog with your application."
        },
        {
          "info": {
            "name": "Get all events under a CategoryId",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.viagogo.net/catalog/categories/:categoryId/allevents",
            "params": [
              {
                "name": "categoryId",
                "value": "",
                "type": "path",
                "description": "CategoryId for which we want all events"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page of data to retrieve."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Set custom page sizes on response."
              },
              {
                "name": "updated_since",
                "value": "",
                "type": "query",
                "description": "Filters the response to only return items that have been updated since the given timestamp"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Determines the ordering of items. A comma-separated string containing `resource_version`."
              },
              {
                "name": "min_resource_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "country_code",
                "value": "",
                "type": "query"
              },
              {
                "name": "latitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "longitude",
                "value": "",
                "type": "query"
              },
              {
                "name": "max_distance_in_meters",
                "value": "",
                "type": "query"
              },
              {
                "name": "genre_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "exclude_parking_passes",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Finds all CategoryIds under the parents, and finds all events under all of them- de-duped by storing in a HashSet."
        },
        {
          "info": {
            "name": "Map request to StubHub Event, Venue and Category",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.viagogo.net/catalog/mapevent",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://account.viagogo.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Finds mapped Event, Venue and Category information, if available."
        }
      ]
    }
  ],
  "bundled": true
}