Skip to content

Commit af68003

Browse files
Regenerate the client library according to the new specs
1 parent 71783d0 commit af68003

39 files changed

+558
-104
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Streaming Availability API
77

8-
Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 59 countries!
8+
Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 60 countries!
99

1010
### API Key
1111

@@ -229,10 +229,10 @@ RapidAPI and start using the Streaming Availability API through RapidAPI right a
229229

230230
| Service Id | Service Name | Supported Countries |
231231
| ---------- | ------------ | ------------------- |
232-
| `netflix` | Netflix | 58 Countries |
232+
| `netflix` | Netflix | 59 Countries |
233233
| `prime` | Prime Video | 56 Countries |
234-
| `disney` | Disney+ | 36 Countries |
235-
| `hbo` | HBO Max | 24 Countries |
234+
| `disney` | Disney+ | 51 Countries |
235+
| `hbo` | Max | 24 Countries |
236236
| `hulu` | Hulu | United States |
237237
| `peacock` | Peacock | United States |
238238
| `paramount` | Paramount+ | 18 Countries |
@@ -249,6 +249,12 @@ RapidAPI and start using the Streaming Availability API through RapidAPI right a
249249
| `zee5` | Zee5 | 58 Countries |
250250
| `curiosity` | Curiosity Stream | 57 Countries |
251251
| `wow` | Wow | Germany |
252+
| `discovery` | Discovery+ | United States, Canada, Ireland, Italy, United Kingdom, Germany, Austria |
253+
| `sonyliv` | SonyLiv | India |
254+
| `itvx` | ITVX | United Kingdom |
255+
| `plutotv` | Pluto TV | 25 Countries |
256+
| `tubi` | Tubi | Australia, Canada, New Zealand, Ecuador, Mexico, Panama, United States |
257+
| `blutv` | BluTV | Turkey, Germany, Azerbaijan |
252258

253259

254260
## Countries Supported
@@ -308,6 +314,7 @@ RapidAPI and start using the Streaming Availability API through RapidAPI right a
308314
| `se` | Sweden |
309315
| `sg` | Singapore |
310316
| `si` | Slovenia |
317+
| `sk` | Slovakia |
311318
| `th` | Thailand |
312319
| `tr` | Turkey |
313320
| `ua` | Ukraine |

api/openapi.yaml

+91-25
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ openapi: 3.1.0
22
info:
33
description: "Streaming Availability API allows getting streaming availability information\
44
\ 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
67
title: Streaming Availability API
7-
version: 4.0.0
8+
version: 4.1.0
89
servers:
910
- description: Official API Server
1011
url: https://streaming-availability.p.rapidapi.com
@@ -192,6 +193,39 @@ paths:
192193
summary: Search Shows by title
193194
tags:
194195
- 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
195229
/changes:
196230
get:
197231
description: |
@@ -200,6 +234,9 @@ paths:
200234
Changes listed per page is 25.
201235
202236
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.
203240
externalDocs:
204241
description: Official Documentation
205242
url: https://docs.movieofthenight.com/resource/shows#search-shows-by-title
@@ -226,6 +263,26 @@ paths:
226263
- changes
227264
components:
228265
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
229286
catalogsParam:
230287
description: |
231288
A comma separated list of up to 32 catalogs to search in.
@@ -325,7 +382,7 @@ components:
325382
value: action
326383
Romantic Comedy:
327384
description: Romantic Comedy
328-
value: "romantic,comedy"
385+
value: "romance,comedy"
329386
War Drama:
330387
description: War Drama
331388
value: "war,drama"
@@ -707,11 +764,6 @@ components:
707764
When passing a TMDB Id,
708765
it should be in the format of movie/<numerical_id> for movies and tv/<numerical_id> for series.
709766
(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).
715767
examples:
716768
Titanic (IMDb):
717769
description: IMDb ID of the movie Titanic.
@@ -1025,6 +1077,29 @@ components:
10251077
$ref: '#/components/schemas/show'
10261078
type: array
10271079
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.
10281103
changesResponse:
10291104
content:
10301105
application/json:
@@ -1068,7 +1143,6 @@ components:
10681143
description: Response to a change set query.
10691144
schemas:
10701145
addon:
1071-
additionalProperties: false
10721146
description: Details of an addon.
10731147
properties:
10741148
id:
@@ -1093,7 +1167,6 @@ components:
10931167
- themeColorCode
10941168
title: addon
10951169
streamingOptionTypes:
1096-
additionalProperties: false
10971170
description: Availability of the streaming option types in the service.
10981171
properties:
10991172
addon:
@@ -1119,7 +1192,6 @@ components:
11191192
- subscription
11201193
title: streamingOptionTypes
11211194
serviceImageSet:
1122-
additionalProperties: false
11231195
description: Image set of a service or an addon.
11241196
properties:
11251197
lightThemeImage:
@@ -1137,7 +1209,6 @@ components:
11371209
- whiteImage
11381210
title: serviceImageSet
11391211
serviceInfo:
1140-
additionalProperties: false
11411212
description: Details of the streaming service localized according to the parent
11421213
country.
11431214
properties:
@@ -1165,8 +1236,7 @@ components:
11651236
service:
11661237
allOf:
11671238
- $ref: '#/components/schemas/serviceInfo'
1168-
- additionalProperties: false
1169-
properties:
1239+
- properties:
11701240
streamingOptionTypes:
11711241
$ref: '#/components/schemas/streamingOptionTypes'
11721242
addons:
@@ -1187,7 +1257,6 @@ components:
11871257
$ref: '#/components/schemas/streamingOption'
11881258
description: Map of the streaming options by the country code.
11891259
country:
1190-
additionalProperties: false
11911260
description: |
11921261
Countries are the primary way to get the supported streaming services and addons
11931262
(such as list of available Apple TV and Prime Video channels) in a region.
@@ -1216,7 +1285,6 @@ components:
12161285
- services
12171286
title: country
12181287
show:
1219-
additionalProperties: false
12201288
description: |
12211289
A show object represents a movie or a series. Type of the show is determined by the showType property,
12221290
which is either movie or series. Based on this type, some properties are omitted,
@@ -1258,7 +1326,7 @@ components:
12581326
description: "[IMDb](https://www.imdb.com/) id of the show."
12591327
type: string
12601328
tmdbId:
1261-
description: "[TMDD](https://www.themoviedb.org/) id of the show."
1329+
description: "[TMDB](https://www.themoviedb.org/) id of the show."
12621330
type: string
12631331
title:
12641332
description: Title of the show.
@@ -1312,6 +1380,9 @@ components:
13121380
description: Number of episodes that are either aired or announced for a
13131381
series.
13141382
type: integer
1383+
runtime:
1384+
description: Runtime of the movie in minutes.
1385+
type: integer
13151386
imageSet:
13161387
$ref: '#/components/schemas/showImageSet'
13171388
streamingOptions:
@@ -1341,7 +1412,6 @@ components:
13411412
- tmdbId
13421413
title: show
13431414
showImageSet:
1344-
additionalProperties: false
13451415
description: Image set of a show.
13461416
properties:
13471417
verticalPoster:
@@ -1357,7 +1427,6 @@ components:
13571427
- verticalPoster
13581428
title: showImageSet
13591429
horizontalImage:
1360-
additionalProperties: false
13611430
description: Horizontal image of a show.
13621431
properties:
13631432
w360:
@@ -1383,7 +1452,6 @@ components:
13831452
- w720
13841453
title: horizontalImage
13851454
verticalImage:
1386-
additionalProperties: false
13871455
description: Horizontal image of a show.
13881456
properties:
13891457
w240:
@@ -1450,6 +1518,9 @@ components:
14501518
title:
14511519
description: Title of the episode.
14521520
type: string
1521+
overview:
1522+
description: A brief overview of the plot of the episode.
1523+
type: string
14531524
airYear:
14541525
description: The year that the episode aired.
14551526
type: integer
@@ -1481,7 +1552,6 @@ components:
14811552
rent: Available for rental.
14821553
addon: Available via an addon.
14831554
streamingOption:
1484-
additionalProperties: false
14851555
description: A streaming option.
14861556
properties:
14871557
service:
@@ -1550,7 +1620,6 @@ components:
15501620
- type
15511621
title: streamingOption
15521622
price:
1553-
additionalProperties: false
15541623
description: |
15551624
Price of the renting or buying the item.
15561625
@@ -1767,15 +1836,13 @@ components:
17671836
expiring: Expiring from the catalog soon.
17681837
upcoming: Will be added to the catalog soon.
17691838
error:
1770-
additionalProperties: false
17711839
properties:
17721840
message:
17731841
type: string
17741842
required:
17751843
- message
17761844
title: error
17771845
searchResult:
1778-
additionalProperties: false
17791846
properties:
17801847
shows:
17811848
description: Array of shows.
@@ -1792,7 +1859,6 @@ components:
17921859
- hasMore
17931860
- shows
17941861
changesResult:
1795-
additionalProperties: false
17961862
properties:
17971863
changes:
17981864
description: Array of the changes.

api_changes.go

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_countries.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_genres.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)