@@ -2,9 +2,10 @@ openapi: 3.1.0
2
2
info :
3
3
description : " Streaming Availability API allows getting streaming availability information\
4
4
\ of movies and series; and querying the list of available shows on streaming\
5
- \ services such as Netflix, Disney+, Apple TV, Max and Hulu across 59 countries!"
5
+ \ services such as Netflix, Disney+, Apple TV, Max and Hulu across 60 countries!"
6
+ termsOfService : https://github.com/movieofthenight/streaming-availability-api/blob/main/TERMS.md
6
7
title : Streaming Availability API
7
- version : 4.0 .0
8
+ version : 4.1 .0
8
9
servers :
9
10
- description : Official API Server
10
11
url : https://streaming-availability.p.rapidapi.com
@@ -192,6 +193,39 @@ paths:
192
193
summary : Search Shows by title
193
194
tags :
194
195
- shows
196
+ /shows/top :
197
+ get :
198
+ description : |
199
+ Get the official top shows in a service.
200
+ Top shows are determined by the streaming service itself.
201
+
202
+ Supported streaming services are:
203
+ - Netflix: netflix
204
+ - Amazon Prime Video: prime
205
+ - Apple TV: apple
206
+ - Max: hbo
207
+
208
+ For unsupported services, this endpoint will return an empty list.
209
+
210
+ Series granularity is always show for this endpoint,
211
+ meaning that the output will not include season and episode info.
212
+ externalDocs :
213
+ description : Official Documentation
214
+ url : https://docs.movieofthenight.com/resource/shows#get-top-shows
215
+ operationId : getTopShows
216
+ parameters :
217
+ - $ref : ' #/components/parameters/countryParam'
218
+ - $ref : ' #/components/parameters/serviceParam'
219
+ - $ref : ' #/components/parameters/outputLanguageParam'
220
+ - $ref : ' #/components/parameters/showTypeParam'
221
+ responses :
222
+ " 200 " :
223
+ $ref : ' #/components/responses/topShowsResponse'
224
+ default :
225
+ $ref : ' #/components/responses/errorResponse'
226
+ summary : Get Top Shows
227
+ tags :
228
+ - shows
195
229
/changes :
196
230
get :
197
231
description : |
@@ -200,6 +234,9 @@ paths:
200
234
Changes listed per page is 25.
201
235
202
236
Changes are listed under changes field, and shows affected by these changes are listed under shows field.
237
+
238
+ Note that upcoming changes are only supported for Apple TV, Disney+, Max, Netflix and Prime Video.
239
+ For other services, upcoming changes will return an empty list.
203
240
externalDocs :
204
241
description : Official Documentation
205
242
url : https://docs.movieofthenight.com/resource/shows#search-shows-by-title
@@ -226,6 +263,26 @@ paths:
226
263
- changes
227
264
components :
228
265
parameters :
266
+ serviceParam :
267
+ description : |
268
+ Id of the target service.
269
+ examples :
270
+ Netflix :
271
+ description : Netflix
272
+ value : netflix
273
+ Amazon Prime Video :
274
+ description : Amazon Prime Video
275
+ value : prime
276
+ Apple TV :
277
+ description : Apple TV
278
+ value : apple
279
+ explode : true
280
+ in : query
281
+ name : service
282
+ required : true
283
+ schema :
284
+ type : string
285
+ style : form
229
286
catalogsParam :
230
287
description : |
231
288
A comma separated list of up to 32 catalogs to search in.
@@ -325,7 +382,7 @@ components:
325
382
value : action
326
383
Romantic Comedy :
327
384
description : Romantic Comedy
328
- value : " romantic ,comedy"
385
+ value : " romance ,comedy"
329
386
War Drama :
330
387
description : War Drama
331
388
value : " war,drama"
@@ -707,11 +764,6 @@ components:
707
764
When passing a TMDB Id,
708
765
it should be in the format of movie/<numerical_id> for movies and tv/<numerical_id> for series.
709
766
(e.g. tv/1396 for Breaking Bad and movie/597 for Titanic)
710
-
711
- If you are handcrafting the URL, make sure to encode the id parameter.
712
- (e.g. final path should look like /shows/movie%2F597 for Titanic with TMDb id).
713
- Here, %2F is the encoded version of /.
714
- To read more about URL encoding, you can check [this link](https://en.wikipedia.org/wiki/Percent-encoding).
715
767
examples :
716
768
Titanic (IMDb) :
717
769
description : IMDb ID of the movie Titanic.
@@ -1025,6 +1077,29 @@ components:
1025
1077
$ref : ' #/components/schemas/show'
1026
1078
type : array
1027
1079
description : Response to a search by title query.
1080
+ topShowsResponse :
1081
+ content :
1082
+ application/json :
1083
+ examples :
1084
+ Top Series on Netflix US :
1085
+ externalValue : https://www.movieofthenight.com/v4/examples/shows/netflix/top/series
1086
+ summary : Top Series on Netflix US
1087
+ x-parameters :
1088
+ country : us
1089
+ service : netflix
1090
+ show_type : series
1091
+ Top Shows on Apple TV+ UK :
1092
+ externalValue : https://www.movieofthenight.com/v4/examples/shows/apple/top
1093
+ summary : Top Shows on Apple TV+ UK
1094
+ x-parameters :
1095
+ country : gb
1096
+ service : apple
1097
+ schema :
1098
+ description : Array of the top shows.
1099
+ items :
1100
+ $ref : ' #/components/schemas/show'
1101
+ type : array
1102
+ description : Response to a top shows query.
1028
1103
changesResponse :
1029
1104
content :
1030
1105
application/json :
@@ -1068,7 +1143,6 @@ components:
1068
1143
description : Response to a change set query.
1069
1144
schemas :
1070
1145
addon :
1071
- additionalProperties : false
1072
1146
description : Details of an addon.
1073
1147
properties :
1074
1148
id :
@@ -1093,7 +1167,6 @@ components:
1093
1167
- themeColorCode
1094
1168
title : addon
1095
1169
streamingOptionTypes :
1096
- additionalProperties : false
1097
1170
description : Availability of the streaming option types in the service.
1098
1171
properties :
1099
1172
addon :
@@ -1119,7 +1192,6 @@ components:
1119
1192
- subscription
1120
1193
title : streamingOptionTypes
1121
1194
serviceImageSet :
1122
- additionalProperties : false
1123
1195
description : Image set of a service or an addon.
1124
1196
properties :
1125
1197
lightThemeImage :
@@ -1137,7 +1209,6 @@ components:
1137
1209
- whiteImage
1138
1210
title : serviceImageSet
1139
1211
serviceInfo :
1140
- additionalProperties : false
1141
1212
description : Details of the streaming service localized according to the parent
1142
1213
country.
1143
1214
properties :
@@ -1165,8 +1236,7 @@ components:
1165
1236
service :
1166
1237
allOf :
1167
1238
- $ref : ' #/components/schemas/serviceInfo'
1168
- - additionalProperties : false
1169
- properties :
1239
+ - properties :
1170
1240
streamingOptionTypes :
1171
1241
$ref : ' #/components/schemas/streamingOptionTypes'
1172
1242
addons :
@@ -1187,7 +1257,6 @@ components:
1187
1257
$ref : ' #/components/schemas/streamingOption'
1188
1258
description : Map of the streaming options by the country code.
1189
1259
country :
1190
- additionalProperties : false
1191
1260
description : |
1192
1261
Countries are the primary way to get the supported streaming services and addons
1193
1262
(such as list of available Apple TV and Prime Video channels) in a region.
@@ -1216,7 +1285,6 @@ components:
1216
1285
- services
1217
1286
title : country
1218
1287
show :
1219
- additionalProperties : false
1220
1288
description : |
1221
1289
A show object represents a movie or a series. Type of the show is determined by the showType property,
1222
1290
which is either movie or series. Based on this type, some properties are omitted,
@@ -1258,7 +1326,7 @@ components:
1258
1326
description : " [IMDb](https://www.imdb.com/) id of the show."
1259
1327
type : string
1260
1328
tmdbId :
1261
- description : " [TMDD ](https://www.themoviedb.org/) id of the show."
1329
+ description : " [TMDB ](https://www.themoviedb.org/) id of the show."
1262
1330
type : string
1263
1331
title :
1264
1332
description : Title of the show.
@@ -1312,6 +1380,9 @@ components:
1312
1380
description : Number of episodes that are either aired or announced for a
1313
1381
series.
1314
1382
type : integer
1383
+ runtime :
1384
+ description : Runtime of the movie in minutes.
1385
+ type : integer
1315
1386
imageSet :
1316
1387
$ref : ' #/components/schemas/showImageSet'
1317
1388
streamingOptions :
@@ -1341,7 +1412,6 @@ components:
1341
1412
- tmdbId
1342
1413
title : show
1343
1414
showImageSet :
1344
- additionalProperties : false
1345
1415
description : Image set of a show.
1346
1416
properties :
1347
1417
verticalPoster :
@@ -1357,7 +1427,6 @@ components:
1357
1427
- verticalPoster
1358
1428
title : showImageSet
1359
1429
horizontalImage :
1360
- additionalProperties : false
1361
1430
description : Horizontal image of a show.
1362
1431
properties :
1363
1432
w360 :
@@ -1383,7 +1452,6 @@ components:
1383
1452
- w720
1384
1453
title : horizontalImage
1385
1454
verticalImage :
1386
- additionalProperties : false
1387
1455
description : Horizontal image of a show.
1388
1456
properties :
1389
1457
w240 :
@@ -1450,6 +1518,9 @@ components:
1450
1518
title :
1451
1519
description : Title of the episode.
1452
1520
type : string
1521
+ overview :
1522
+ description : A brief overview of the plot of the episode.
1523
+ type : string
1453
1524
airYear :
1454
1525
description : The year that the episode aired.
1455
1526
type : integer
@@ -1481,7 +1552,6 @@ components:
1481
1552
rent : Available for rental.
1482
1553
addon : Available via an addon.
1483
1554
streamingOption :
1484
- additionalProperties : false
1485
1555
description : A streaming option.
1486
1556
properties :
1487
1557
service :
@@ -1550,7 +1620,6 @@ components:
1550
1620
- type
1551
1621
title : streamingOption
1552
1622
price :
1553
- additionalProperties : false
1554
1623
description : |
1555
1624
Price of the renting or buying the item.
1556
1625
@@ -1767,15 +1836,13 @@ components:
1767
1836
expiring : Expiring from the catalog soon.
1768
1837
upcoming : Will be added to the catalog soon.
1769
1838
error :
1770
- additionalProperties : false
1771
1839
properties :
1772
1840
message :
1773
1841
type : string
1774
1842
required :
1775
1843
- message
1776
1844
title : error
1777
1845
searchResult :
1778
- additionalProperties : false
1779
1846
properties :
1780
1847
shows :
1781
1848
description : Array of shows.
@@ -1792,7 +1859,6 @@ components:
1792
1859
- hasMore
1793
1860
- shows
1794
1861
changesResult :
1795
- additionalProperties : false
1796
1862
properties :
1797
1863
changes :
1798
1864
description : Array of the changes.
0 commit comments