-
Notifications
You must be signed in to change notification settings - Fork 52
/
openapi.json
302 lines (302 loc) · 9.06 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
{
"swagger": "2.0",
"schemes": [
"https"
],
"host": "rest.bandsintown.com",
"info": {
"contact": {
"name": "Bandsintown",
"url": "https://bandsintown.com/",
"x-twitter": "Bandsintown"
},
"description": "# What is the Bandsintown API?\nThe Bandsintown API is designed for artists and enterprises representing artists.\n\nIt offers read-only access to artist info and artist events:\n- artist info: returns the link to the Bandsintown artist page, the link to the artist photo, the current number of trackers and more\n- artist events: returns the list of events including their date and time, venue name and location, ticket links, lineup, description and the link to the Bandsintown event page\n\nNote you can specify if you only want to return upcoming events, past events, all events, or events within a given date range.\n\n# Getting Started\n- In order to use the Bandsintown API, you must read and accept our Terms and Conditions below and you must have written consent from Bandsintown Inc. Any other use of the Bandsintown API is prohibited. [Contact Bandsintown](http://help.bandsintown.com/) to tell us what you plan to do and request your personal application ID.\n- Find out about the API methods available and the format of the API responses below. Select the method you wish to use and try it out online with the app ID provided to you.\n- Call our Bandsintown API with the app ID provided straight from your website or back-end platform and choose which element of the API response you wish to display. Scroll to the bottom of this page to find out about the Models used.\n",
"license": {
"name": "Terms and Conditions",
"url": "https://corp.bandsintown.com/data-applications-terms"
},
"title": "Bandsintown API",
"version": "3.0.0",
"x-apisguru-categories": [
"social"
],
"x-logo": {
"url": "https://api.apis.guru/v2/cache/logo/https_twitter.com_Bandsintown_profile_image.png"
},
"x-origin": [
{
"format": "swagger",
"url": "https://api.swaggerhub.com/apis/Bandsintown/PublicAPI/3.0.0/swagger.yaml",
"version": "2.0"
}
],
"x-preferred": true,
"x-providerName": "bandsintown.com",
"x-datafire": {
"name": "bandsintown",
"type": "openapi"
}
},
"paths": {
"/artists/{artistname}": {
"get": {
"description": "Get artist information\n",
"operationId": "artist",
"parameters": [
{
"description": "The name of the artist. If it contains one of the special characters below, please be sure to replace it by the corresponding code: for / use %252F, for ? use %253F, for * use %252A, and for \" use %27C",
"in": "path",
"name": "artistname",
"required": true,
"type": "string"
},
{
"description": "The application ID assigned to you by Bandsintown",
"in": "query",
"name": "app_id",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "200 response",
"schema": {
"$ref": "#/definitions/ArtistData"
}
}
},
"summary": "Get artist information",
"tags": [
"artist information"
]
}
},
"/artists/{artistname}/events": {
"get": {
"description": "artist events\n",
"operationId": "artistEvents",
"parameters": [
{
"description": "The name of the artist. If it contains one of the special characters below, please be sure to replace it by the corresponding code: for / use %252F, for ? use %253F, for * use %252A, and for \" use %27C",
"in": "path",
"name": "artistname",
"required": true,
"type": "string"
},
{
"description": "The application ID assigned to you by Bandsintown",
"in": "query",
"name": "app_id",
"required": true,
"type": "string"
},
{
"description": "Can be one of the following values: \"upcoming\", \"past\", \"all\", or a date range e.g. \"2015-05-05,2017-05-05\". If not specified, only upcoming shows are returned",
"in": "query",
"name": "date",
"required": false,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Shows within a date range for the selected artist",
"schema": {
"items": {
"$ref": "#/definitions/EventData"
},
"type": "array"
}
}
},
"summary": "Get upcoming, past, or all artist events, or events within a date range",
"tags": [
"artist events"
]
}
}
},
"definitions": {
"ArtistData": {
"properties": {
"facebook_page_url": {
"example": "https://www.facebook.com/maroon5",
"format": "url",
"type": "string"
},
"id": {
"example": 510,
"type": "integer"
},
"image_url": {
"example": "https://s3.amazonaws.com/bit-photos/large/7481529.jpeg",
"format": "url",
"type": "string"
},
"mbid": {
"example": "0ab49580-c84f-44d4-875f-d83760ea2cfe",
"type": "string"
},
"name": {
"example": "Maroon 5",
"type": "string"
},
"thumb_url": {
"example": "https://s3.amazonaws.com/bit-photos/thumb/7481529.jpeg",
"format": "url",
"type": "string"
},
"tracker_count": {
"type": "integer"
},
"upcoming_event_count": {
"type": "integer"
},
"url": {
"example": "http://www.bandsintown.com/Maroon5?came_from=67",
"format": "url",
"type": "string"
}
},
"required": [
"name",
"url",
"image_url",
"thumb_url",
"facebook_page_url",
"mbid",
"tracker_count",
"upcoming_event_count"
],
"type": "object"
},
"EventData": {
"properties": {
"artist_id": {
"example": "438314",
"format": "integer",
"type": "string"
},
"datetime": {
"example": "2017-03-19T11:00:00",
"format": "datetime",
"type": "string"
},
"description": {
"example": "This is a description",
"type": "string"
},
"id": {
"example": "13722599",
"format": "integer",
"type": "string"
},
"lineup": {
"items": {
"type": "string"
},
"type": "array"
},
"offers": {
"items": {
"$ref": "#/definitions/OfferData"
},
"type": "array"
},
"on_sale_datetime": {
"example": "2017-03-01T18:00:00",
"format": "datetime",
"type": "string"
},
"url": {
"example": "http://www.bandsintown.com/event/13722599?app_id=foo&artist=Skrillex&came_from=67",
"format": "url",
"type": "string"
},
"venue": {
"$ref": "#/definitions/VenueData"
}
},
"required": [
"id",
"artist_id",
"url",
"on_sale_datetime",
"datetime",
"venue",
"offers",
"lineup"
],
"type": "object"
},
"OfferData": {
"properties": {
"status": {
"example": "available",
"type": "string"
},
"type": {
"example": "Tickets",
"type": "string"
},
"url": {
"example": "http://www.bandsintown.com/event/13722599/buy_tickets?app_id=foo&artist=Skrillex&came_from=67",
"format": "url",
"type": "string"
}
},
"required": [
"type",
"url",
"status"
],
"type": "object"
},
"VenueData": {
"properties": {
"city": {
"example": "Las Vegas",
"type": "string"
},
"country": {
"example": "United States",
"type": "string"
},
"latitude": {
"example": "36.12714",
"format": "double",
"type": "string"
},
"longitude": {
"example": "-115.1629562",
"format": "double",
"type": "string"
},
"name": {
"example": "Encore Beach Club",
"type": "string"
},
"region": {
"example": "NV",
"type": "string"
}
},
"required": [
"name",
"latitude",
"longitude",
"city",
"region",
"country"
],
"type": "object"
}
}
}