-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiary.apib
258 lines (235 loc) · 4.94 KB
/
apiary.apib
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
FORMAT: 1A
HOST: http://findgamesfor.me/api
# GamesObservatory
The Games Observatory API uses a RESTful interface to retrieve data about video
games, including game information, company information, and a timeline.
## All Games [/games]
### Get All Games [GET]
+ Response 200 (application/json)
[
{
" Game": "Thief II: The Metal Age",
"Companies": [
"Eidos Interactive",
"Square Enix",
"Looking Glass Studios"
],
"Genres": [
"Shooter"
],
"Platforms": [
"Microsoft Windows"
],
"Rating": 9.13,
"Year": 2000,
"game_id": 1
},
{
" Game": "Thief: The Dark Project",
"Companies": [
"Looking Glass Studios",
"Eidos Interactive",
"Square Enix"
],
"Genres": [
"Shooter"
],
"Platforms": [
"Microsoft Windows"
],
"Rating": 8.39,
"Year": 1998,
"game_id": 2
},
{
" Game": "Thief: Deadly Shadows",
"Companies": [
"Ion Storm",
"Eidos Interactive",
"Square Enix"
],
"Genres": [
"Shooter"
],
"Platforms": [
"Microsoft Windows",
"Xbox"
],
"Rating": 8.04,
"Year": 2004,
"game_id": 3
}
]
## Single Game [/games/{id}]
### Get A Specific Game [GET]
+ Parameters
+ id (required, int) ... ID of the game
+ Response 200 (application/json)
[
{
"companies_to_url": [
{
"name": "Eidos Interactive",
"url": "/companies/4"
},
{
"name": "Square Enix",
"url": "/companies/26"
},
{
"name": "Looking Glass Studios",
"url": "/companies/3"
}
],
"game_id": 1,
"genres": [
"Shooter"
],
"image_url": "https://res.cloudinary.com/igdb/image/upload/t_cover_small/qagoforxr6tofvpmgy9g.png",
"name": "Thief II: The Metal Age",
"platforms": [
"Microsoft Windows"
],
"rating": 9.13,
"year": 2000
}
]
## All Companies [/companies]
### Get All Companies [GET]
+ Response 200 (application/json)
[
{
" Company": "Electronic Arts",
"Average Rating": 7.79,
"Number of Games Developed": 0,
"Number of Games Published": 11,
"Year Founded": 1982,
"company_id": 1
},
{
" Company": "BioWare",
"Average Rating": 8.6,
"Number of Games Developed": 6,
"Number of Games Published": 0,
"Year Founded": 1995,
"company_id": 2
}
]
## Single Company [/companies/{id}]
### Get A Specific Company [GET]
+ Parameters
+ id (required, int) ... ID of the game
+ Response 200 (application/json)
[
{
"avg_rating": 8.6,
"company_id": 2,
"games_to_url": [
{
"name": "Baldur's Gate",
"url": "/games/5"
},
{
"name": "Baldur's Gate II: Shadows Of Amn",
"url": "/games/6"
},
{
"name": "Jade Empire: Special Edition",
"url": "/games/10"
},
{
"name": "Mass Effect",
"url": "/games/73"
},
{
"name": "Mass Effect 2",
"url": "/games/74"
},
{
"name": "Mass Effect 3",
"url": "/games/75"
}
],
"image_url": "https://res.cloudinary.com/igdb/image/upload/t_thumb/kxhml6iozkzgm2ewt0lo.png",
"name": "BioWare",
"num_developed": 6,
"num_published": 0,
"year": 1995
}
]
## All years [/years]
### Get Game statistics From all years [GET]
+ Response 200 (application/json)
[
{
" Year": 1955,
"Average Rating": null,
"Most popular genre": null,
"Number of Companies Founded": 1,
"Number of Games": 0
},
{
" Year": 1979,
"Average Rating": null,
"Most popular genre": null,
"Number of Companies Founded": 2,
"Number of Games": 0
},
{
" Year": 1980,
"Average Rating": null,
"Most popular genre": null,
"Number of Companies Founded": 1,
"Number of Games": 0
},
{
" Year": 1982,
"Average Rating": null,
"Most popular genre": null,
"Number of Companies Founded": 4,
"Number of Games": 0
},
{
" Year": 1983,
"Average Rating": null,
"Most popular genre": null,
"Number of Companies Founded": 2,
"Number of Games": 0
},
{
" Year": 1984,
"Average Rating": null,
"Most popular genre": null,
"Number of Companies Founded": 1,
"Number of Games": 0
}
]
## Specified year [/years/{year}]
### Get Game statistics From A Specific Time Period [GET]
+ Parameters
+ year (required, int) ... Year to get
+ Response 200 (application/json)
[
{
"avg_rating": 8.96,
"companies_to_url": [
{
"name": "Looking Glass Studios",
"url": "/companies/3"
},
{
"name": "Eidos Interactive",
"url": "/companies/4"
}
],
"games_to_url": [
{
"name": "The Secret of Monkey Island",
"url": "/games/60"
}
],
"most_popular_genre": "Adventure",
"num_games": 1,
"year_id": 1990
}
]