simple-justwatch-python-api 0.7__tar.gz → 0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. simple-justwatch-python-api-0.8/PKG-INFO +731 -0
  2. simple-justwatch-python-api-0.8/README.md +709 -0
  3. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/setup.py +1 -1
  4. simple-justwatch-python-api-0.8/simple_justwatch_python_api.egg-info/PKG-INFO +731 -0
  5. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/simple_justwatch_python_api.egg-info/SOURCES.txt +1 -0
  6. simple-justwatch-python-api-0.8/src/simplejustwatchapi/main.py +631 -0
  7. simple-justwatch-python-api-0.7/PKG-INFO +0 -100
  8. simple-justwatch-python-api-0.7/README.md +0 -78
  9. simple-justwatch-python-api-0.7/simple_justwatch_python_api.egg-info/PKG-INFO +0 -100
  10. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/LICENSE +0 -0
  11. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/pyproject.toml +0 -0
  12. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/setup.cfg +0 -0
  13. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/simple_justwatch_python_api.egg-info/dependency_links.txt +0 -0
  14. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/simple_justwatch_python_api.egg-info/requires.txt +0 -0
  15. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/simple_justwatch_python_api.egg-info/top_level.txt +0 -0
  16. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/src/simplejustwatchapi/__init__.py +0 -0
  17. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/src/simplejustwatchapi/justwatch.py +0 -0
  18. {simple-justwatch-python-api-0.7 → simple-justwatch-python-api-0.8}/src/simplejustwatchapi/query.py +0 -0
@@ -0,0 +1,731 @@
1
+ Metadata-Version: 2.1
2
+ Name: simple-justwatch-python-api
3
+ Version: 0.8
4
+ Summary: A simple JustWatch Python API
5
+ Home-page: https://github.com/Electronic-Mango/simple-justwatch-python-api
6
+ Download-URL: https://github.com/Electronic-Mango/simple-justwatch-python-api/releases/
7
+ Author: Electronic Mango
8
+ Author-email: 78230210+Electronic-Mango@users.noreply.github.com
9
+ License: GPLv3
10
+ Project-URL: Documentation, https://electronic-mango.github.io/simple-justwatch-python-api
11
+ Project-URL: Source, https://github.com/Electronic-Mango/simple-justwatch-python-api
12
+ Keywords: justwatch,api,graphql
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Topic :: Software Development :: Build Tools
16
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: httpx
22
+
23
+ # Simple JustWatch Python API
24
+
25
+ [![CodeQL](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/codeql-analysis.yml)
26
+ [![Black](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/black.yml/badge.svg)](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/black.yml)
27
+ [![Flake8](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/flake8.yml/badge.svg)](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/flake8.yml)
28
+ [![isort](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/isort.yml/badge.svg)](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/isort.yml)
29
+ [![Pytest](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/pytest.yml/badge.svg)](https://github.com/Electronic-Mango/simple-justwatch-python-api/actions/workflows/pytest.yml)
30
+ [![Coverage Status](https://coveralls.io/repos/github/Electronic-Mango/simple-justwatch-python-api/badge.svg?branch=main)](https://coveralls.io/github/Electronic-Mango/simple-justwatch-python-api?branch=main)
31
+ [![PyPI - Version](https://img.shields.io/pypi/v/simple-justwatch-python-api)](https://pypi.org/project/simple-justwatch-python-api/)
32
+
33
+ A simple unofficial JustWatch Python API which uses [`GraphQL`](https://graphql.org/) to access JustWatch data, built with [`httpx`](https://www.python-httpx.org/) and `Python3.11`.
34
+
35
+
36
+
37
+ ## Installation
38
+
39
+ Project is available in [PyPi](https://pypi.org/project/simple-justwatch-python-api/):
40
+ ```bash
41
+ pip install simple-justwatch-python-api
42
+ ```
43
+
44
+
45
+
46
+ ## Usage
47
+
48
+ Currently, there's only one function available - search JustWatch:
49
+ ```python
50
+ from simplejustwatchapi.justwatch import search
51
+
52
+ results = search("title", "US", "en", 5, True)
53
+ ```
54
+
55
+ Only the first argument is required, it specifies a title to search.
56
+
57
+ Other arguments in order are:
58
+ 1. `str` country code to search for offers, have to be a 2-letter code, e.g. `US`, `GB`, `FR`, etc.
59
+ It should be uppercase, however lowercase codes are automatically converted to uppercase. By default `US` is used.
60
+ 2. `str` language code, usually 2-letter lowercase code, e.g. `en`, `fr`, etc. By default `en` is used.
61
+ 3. `int` how many results should be returned. Actual response can contain fewer entries if fewer are found.
62
+ By default `4` is used.
63
+ 4. `bool` specify if only best offers should be returned (`True`) or all offers (`False`).
64
+ By default `True` is used.
65
+
66
+ Returned value is a list of `MediaEntry` objects:
67
+ ```python
68
+ class MediaEntry(NamedTuple):
69
+ entry_id: str
70
+ object_id: int
71
+ object_type: str
72
+ title: str
73
+ url: str
74
+ release_year: int
75
+ release_date: str
76
+ genres: list[str]
77
+ imdb_id: str | None
78
+ poster: str
79
+ backdrops: list[str]
80
+ offers: list[Offer]
81
+
82
+ class Offer(NamedTuple):
83
+ monetization_type: str
84
+ presentation_type: str
85
+ url: str
86
+ price_string: str | None
87
+ price_value: float | None
88
+ price_currency: str
89
+ name: str
90
+ technical_name: str
91
+ icon: str
92
+ ```
93
+
94
+ Example response:
95
+ ```python
96
+ [
97
+ MediaEntry(
98
+ entry_id="tm10",
99
+ object_id=10,
100
+ object_type="MOVIE",
101
+ title="The Matrix",
102
+ url="https://justwatch.com/us/movie/the-matrix",
103
+ release_year=1999,
104
+ release_date="1999-03-30",
105
+ genres=["scf", "act"],
106
+ imdb_id="tt0133093",
107
+ poster="https://images.justwatch.com/poster/140351543/s718/the-matrix.jpg",
108
+ backdrops=[
109
+ "https://images.justwatch.com/backdrop/104412692/s1920/the-matrix.jpg",
110
+ "https://images.justwatch.com/backdrop/104412689/s1920/the-matrix.jpg",
111
+ "https://images.justwatch.com/backdrop/240047406/s1920/the-matrix.jpg",
112
+ "https://images.justwatch.com/backdrop/8668185/s1920/the-matrix.jpg",
113
+ "https://images.justwatch.com/backdrop/104412688/s1920/the-matrix.jpg",
114
+ ],
115
+ offers=[
116
+ Offer(
117
+ monetization_type="FLATRATE",
118
+ presentation_type="HD",
119
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.ed68472f-1421-417d-800b-0cfdb21db71c",
120
+ price_string=None,
121
+ price_value=None,
122
+ price_currency="USD",
123
+ name="Max Amazon Channel",
124
+ technical_name="amazonhbomax",
125
+ icon="https://images.justwatch.com/icon/305591736/s100/amazonhbomax.{format}",
126
+ ),
127
+ Offer(
128
+ monetization_type="FLATRATE",
129
+ presentation_type="_4K",
130
+ url="https://play.max.com/movie/012cacbd-5893-4379-b7a6-d3737c61d4b5",
131
+ price_string=None,
132
+ price_value=None,
133
+ price_currency="USD",
134
+ name="Max",
135
+ technical_name="max",
136
+ icon="https://images.justwatch.com/icon/305458112/s100/max.{format}",
137
+ ),
138
+ Offer(
139
+ monetization_type="FLATRATE",
140
+ presentation_type="HD",
141
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.f11ec7df-084f-497d-8fc6-2492fad59ec7",
142
+ price_string=None,
143
+ price_value=None,
144
+ price_currency="USD",
145
+ name="AMC+ Amazon Channel",
146
+ technical_name="amazonamcplus",
147
+ icon="https://images.justwatch.com/icon/241732522/s100/amazonamcplus.{format}",
148
+ ),
149
+ Offer(
150
+ monetization_type="FLATRATE",
151
+ presentation_type="HD",
152
+ url="https://therokuchannel.roku.com/details/e981c230598059f2bf41f94156700488/the-matrix?source=bing",
153
+ price_string=None,
154
+ price_value=None,
155
+ price_currency="USD",
156
+ name="AMC+ Roku Premium Channel",
157
+ technical_name="rokuchannelamcplus",
158
+ icon="https://images.justwatch.com/icon/252888472/s100/rokuchannelamcplus.{format}",
159
+ ),
160
+ Offer(
161
+ monetization_type="RENT",
162
+ presentation_type="_4K",
163
+ url="https://tv.apple.com/us/movie/the-matrix/umc.cmc.af8k9kcq9r1s1qmmdxpq4itn?playableId=tvs.sbd.9001%3A271469518",
164
+ price_string="$3.99",
165
+ price_value=3.99,
166
+ price_currency="USD",
167
+ name="Apple TV",
168
+ technical_name="itunes",
169
+ icon="https://images.justwatch.com/icon/190848813/s100/itunes.{format}",
170
+ ),
171
+ Offer(
172
+ monetization_type="RENT",
173
+ presentation_type="_4K",
174
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.ed68472f-1421-417d-800b-0cfdb21db71c",
175
+ price_string="$3.99",
176
+ price_value=3.99,
177
+ price_currency="USD",
178
+ name="Amazon Video",
179
+ technical_name="amazon",
180
+ icon="https://images.justwatch.com/icon/430993/s100/amazon.{format}",
181
+ ),
182
+ Offer(
183
+ monetization_type="RENT",
184
+ presentation_type="_4K",
185
+ url="https://play.google.com/store/movies/details/The_Matrix?gl=US&hl=en&id=ilPevtGe57s.P",
186
+ price_string="$3.99",
187
+ price_value=3.99,
188
+ price_currency="USD",
189
+ name="Google Play Movies",
190
+ technical_name="play",
191
+ icon="https://images.justwatch.com/icon/169478387/s100/play.{format}",
192
+ ),
193
+ Offer(
194
+ monetization_type="RENT",
195
+ presentation_type="_4K",
196
+ url="https://www.youtube.com/results?search_query=The+Matrix%2Bmovie",
197
+ price_string="$3.99",
198
+ price_value=3.99,
199
+ price_currency="USD",
200
+ name="YouTube",
201
+ technical_name="youtube",
202
+ icon="https://images.justwatch.com/icon/59562423/s100/youtube.{format}",
203
+ ),
204
+ Offer(
205
+ monetization_type="RENT",
206
+ presentation_type="_4K",
207
+ url="https://www.vudu.com/content/movies/details/The-Matrix/9254",
208
+ price_string="$3.99",
209
+ price_value=3.99,
210
+ price_currency="USD",
211
+ name="Vudu",
212
+ technical_name="vudu",
213
+ icon="https://images.justwatch.com/icon/249324969/s100/vudu.{format}",
214
+ ),
215
+ Offer(
216
+ monetization_type="RENT",
217
+ presentation_type="_4K",
218
+ url="https://www.microsoft.com/en-us/p/the-matrix/8d6kgwzl5r09",
219
+ price_string="$3.99",
220
+ price_value=3.99,
221
+ price_currency="USD",
222
+ name="Microsoft Store",
223
+ technical_name="microsoft",
224
+ icon="https://images.justwatch.com/icon/820542/s100/microsoft.{format}",
225
+ ),
226
+ Offer(
227
+ monetization_type="RENT",
228
+ presentation_type="_4K",
229
+ url="https://www.directv.com/movies/The-Matrix-ZUF5bGQvemdYeVJ2L3lpNERBQ205QT09",
230
+ price_string="$3.99",
231
+ price_value=3.99,
232
+ price_currency="USD",
233
+ name="DIRECTV",
234
+ technical_name="directv",
235
+ icon="https://images.justwatch.com/icon/158260222/s100/directv.{format}",
236
+ ),
237
+ Offer(
238
+ monetization_type="RENT",
239
+ presentation_type="HD",
240
+ url="https://ondemand.spectrum.net/movies/22804/the-matrix/",
241
+ price_string="$3.99",
242
+ price_value=3.99,
243
+ price_currency="USD",
244
+ name="Spectrum On Demand",
245
+ technical_name="spectrumondemand",
246
+ icon="https://images.justwatch.com/icon/305635208/s100/spectrumondemand.{format}",
247
+ ),
248
+ Offer(
249
+ monetization_type="BUY",
250
+ presentation_type="HD",
251
+ url="http://www.amctheatres.com/movies/the-matrix-4111",
252
+ price_string="$14.99",
253
+ price_value=14.99,
254
+ price_currency="USD",
255
+ name="AMC on Demand",
256
+ technical_name="amctheatresondemand",
257
+ icon="https://images.justwatch.com/icon/166008757/s100/amctheatresondemand.{format}",
258
+ ),
259
+ ],
260
+ ),
261
+ MediaEntry(
262
+ entry_id="tm827124",
263
+ object_id=827124,
264
+ object_type="MOVIE",
265
+ title="The Matrix Resurrections",
266
+ url="https://justwatch.com/us/movie/the-matrix-resurrections",
267
+ release_year=2021,
268
+ release_date="2021-12-16",
269
+ genres=["act", "scf"],
270
+ imdb_id="tt10838180",
271
+ poster="https://images.justwatch.com/poster/257943908/s718/the-matrix-resurrections.jpg",
272
+ backdrops=[
273
+ "https://images.justwatch.com/backdrop/245633536/s1920/the-matrix-resurrections.jpg",
274
+ "https://images.justwatch.com/backdrop/257943910/s1920/the-matrix-resurrections.jpg",
275
+ "https://images.justwatch.com/backdrop/257943914/s1920/the-matrix-resurrections.jpg",
276
+ "https://images.justwatch.com/backdrop/256148705/s1920/the-matrix-resurrections.jpg",
277
+ "https://images.justwatch.com/backdrop/257380502/s1920/the-matrix-resurrections.jpg",
278
+ ],
279
+ offers=[
280
+ Offer(
281
+ monetization_type="FLATRATE",
282
+ presentation_type="HD",
283
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.bd6bd6ed-93ce-41f7-a06d-3a1277b94fcb",
284
+ price_string=None,
285
+ price_value=None,
286
+ price_currency="USD",
287
+ name="Max Amazon Channel",
288
+ technical_name="amazonhbomax",
289
+ icon="https://images.justwatch.com/icon/305591736/s100/amazonhbomax.{format}",
290
+ ),
291
+ Offer(
292
+ monetization_type="FLATRATE",
293
+ presentation_type="_4K",
294
+ url="https://play.max.com/movie/a553a6c7-66a0-42fc-8f6a-a47f926fe435",
295
+ price_string=None,
296
+ price_value=None,
297
+ price_currency="USD",
298
+ name="Max",
299
+ technical_name="max",
300
+ icon="https://images.justwatch.com/icon/305458112/s100/max.{format}",
301
+ ),
302
+ Offer(
303
+ monetization_type="RENT",
304
+ presentation_type="_4K",
305
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.bd6bd6ed-93ce-41f7-a06d-3a1277b94fcb",
306
+ price_string="$3.79",
307
+ price_value=3.79,
308
+ price_currency="USD",
309
+ name="Amazon Video",
310
+ technical_name="amazon",
311
+ icon="https://images.justwatch.com/icon/430993/s100/amazon.{format}",
312
+ ),
313
+ Offer(
314
+ monetization_type="RENT",
315
+ presentation_type="_4K",
316
+ url="https://tv.apple.com/us/movie/the-matrix-resurrections/umc.cmc.1xfut1sq2hvb9faupyabxog7q?playableId=tvs.sbd.9001%3A1595166379",
317
+ price_string="$3.99",
318
+ price_value=3.99,
319
+ price_currency="USD",
320
+ name="Apple TV",
321
+ technical_name="itunes",
322
+ icon="https://images.justwatch.com/icon/190848813/s100/itunes.{format}",
323
+ ),
324
+ Offer(
325
+ monetization_type="RENT",
326
+ presentation_type="_4K",
327
+ url="https://play.google.com/store/movies/details/The_Matrix_Resurrections?gl=US&hl=en&id=aoFm38NvOCY.P",
328
+ price_string="$3.99",
329
+ price_value=3.99,
330
+ price_currency="USD",
331
+ name="Google Play Movies",
332
+ technical_name="play",
333
+ icon="https://images.justwatch.com/icon/169478387/s100/play.{format}",
334
+ ),
335
+ Offer(
336
+ monetization_type="RENT",
337
+ presentation_type="_4K",
338
+ url="https://www.youtube.com/results?search_query=The+Matrix+Resurrections%2Bmovie",
339
+ price_string="$3.99",
340
+ price_value=3.99,
341
+ price_currency="USD",
342
+ name="YouTube",
343
+ technical_name="youtube",
344
+ icon="https://images.justwatch.com/icon/59562423/s100/youtube.{format}",
345
+ ),
346
+ Offer(
347
+ monetization_type="RENT",
348
+ presentation_type="_4K",
349
+ url="https://www.vudu.com/content/movies/details/The-Matrix-Resurrections/1907631",
350
+ price_string="$3.99",
351
+ price_value=3.99,
352
+ price_currency="USD",
353
+ name="Vudu",
354
+ technical_name="vudu",
355
+ icon="https://images.justwatch.com/icon/249324969/s100/vudu.{format}",
356
+ ),
357
+ Offer(
358
+ monetization_type="RENT",
359
+ presentation_type="_4K",
360
+ url="https://www.microsoft.com/en-us/p/the-matrix-resurrections/8d6kgwxn5rlr",
361
+ price_string="$3.99",
362
+ price_value=3.99,
363
+ price_currency="USD",
364
+ name="Microsoft Store",
365
+ technical_name="microsoft",
366
+ icon="https://images.justwatch.com/icon/820542/s100/microsoft.{format}",
367
+ ),
368
+ Offer(
369
+ monetization_type="RENT",
370
+ presentation_type="_4K",
371
+ url="https://www.directv.com/movies/The-Matrix-Resurrections-VDhidUx4QXRCTGw5M2wzditEMVM4QT09",
372
+ price_string="$3.99",
373
+ price_value=3.99,
374
+ price_currency="USD",
375
+ name="DIRECTV",
376
+ technical_name="directv",
377
+ icon="https://images.justwatch.com/icon/158260222/s100/directv.{format}",
378
+ ),
379
+ Offer(
380
+ monetization_type="RENT",
381
+ presentation_type="HD",
382
+ url="https://ondemand.spectrum.net/movies/18062455/the-matrix-resurrections/",
383
+ price_string="$3.99",
384
+ price_value=3.99,
385
+ price_currency="USD",
386
+ name="Spectrum On Demand",
387
+ technical_name="spectrumondemand",
388
+ icon="https://images.justwatch.com/icon/305635208/s100/spectrumondemand.{format}",
389
+ ),
390
+ Offer(
391
+ monetization_type="BUY",
392
+ presentation_type="HD",
393
+ url="http://www.amctheatres.com/movies/the-matrix-resurrections-62603",
394
+ price_string="$14.99",
395
+ price_value=14.99,
396
+ price_currency="USD",
397
+ name="AMC on Demand",
398
+ technical_name="amctheatresondemand",
399
+ icon="https://images.justwatch.com/icon/166008757/s100/amctheatresondemand.{format}",
400
+ ),
401
+ ],
402
+ ),
403
+ MediaEntry(
404
+ entry_id="tm11",
405
+ object_id=11,
406
+ object_type="MOVIE",
407
+ title="The Matrix Reloaded",
408
+ url="https://justwatch.com/us/movie/the-matrix-2-reloaded",
409
+ release_year=2003,
410
+ release_date="2003-05-15",
411
+ genres=["trl", "scf", "act"],
412
+ imdb_id="tt0234215",
413
+ poster="https://images.justwatch.com/poster/251725999/s718/the-matrix-2-reloaded.jpg",
414
+ backdrops=[
415
+ "https://images.justwatch.com/backdrop/8721510/s1920/the-matrix-2-reloaded.jpg",
416
+ "https://images.justwatch.com/backdrop/300681582/s1920/the-matrix-2-reloaded.jpg",
417
+ "https://images.justwatch.com/backdrop/186039261/s1920/the-matrix-2-reloaded.jpg",
418
+ "https://images.justwatch.com/backdrop/8721517/s1920/the-matrix-2-reloaded.jpg",
419
+ "https://images.justwatch.com/backdrop/8721516/s1920/the-matrix-2-reloaded.jpg",
420
+ ],
421
+ offers=[
422
+ Offer(
423
+ monetization_type="FLATRATE",
424
+ presentation_type="HD",
425
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.c19d194f-3fed-4960-ad7b-727e72672f33",
426
+ price_string=None,
427
+ price_value=None,
428
+ price_currency="USD",
429
+ name="Max Amazon Channel",
430
+ technical_name="amazonhbomax",
431
+ icon="https://images.justwatch.com/icon/305591736/s100/amazonhbomax.{format}",
432
+ ),
433
+ Offer(
434
+ monetization_type="FLATRATE",
435
+ presentation_type="_4K",
436
+ url="https://play.max.com/movie/15f1f852-5a97-4e78-b509-e045dbc1ba37",
437
+ price_string=None,
438
+ price_value=None,
439
+ price_currency="USD",
440
+ name="Max",
441
+ technical_name="max",
442
+ icon="https://images.justwatch.com/icon/305458112/s100/max.{format}",
443
+ ),
444
+ Offer(
445
+ monetization_type="FLATRATE",
446
+ presentation_type="HD",
447
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.98abdb4d-6a62-48e1-b04e-28e76d519311",
448
+ price_string=None,
449
+ price_value=None,
450
+ price_currency="USD",
451
+ name="AMC+ Amazon Channel",
452
+ technical_name="amazonamcplus",
453
+ icon="https://images.justwatch.com/icon/241732522/s100/amazonamcplus.{format}",
454
+ ),
455
+ Offer(
456
+ monetization_type="FLATRATE",
457
+ presentation_type="HD",
458
+ url="https://therokuchannel.roku.com/details/9e0cb3c5c86051e18be046a12b5b19b8/the-matrix-reloaded?source=bing",
459
+ price_string=None,
460
+ price_value=None,
461
+ price_currency="USD",
462
+ name="AMC+ Roku Premium Channel",
463
+ technical_name="rokuchannelamcplus",
464
+ icon="https://images.justwatch.com/icon/252888472/s100/rokuchannelamcplus.{format}",
465
+ ),
466
+ Offer(
467
+ monetization_type="RENT",
468
+ presentation_type="_4K",
469
+ url="https://tv.apple.com/us/movie/the-matrix-reloaded/umc.cmc.5b3qv27alugfj95rrag186slh?playableId=tvs.sbd.9001%3A283218560",
470
+ price_string="$3.99",
471
+ price_value=3.99,
472
+ price_currency="USD",
473
+ name="Apple TV",
474
+ technical_name="itunes",
475
+ icon="https://images.justwatch.com/icon/190848813/s100/itunes.{format}",
476
+ ),
477
+ Offer(
478
+ monetization_type="RENT",
479
+ presentation_type="_4K",
480
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.c19d194f-3fed-4960-ad7b-727e72672f33",
481
+ price_string="$3.99",
482
+ price_value=3.99,
483
+ price_currency="USD",
484
+ name="Amazon Video",
485
+ technical_name="amazon",
486
+ icon="https://images.justwatch.com/icon/430993/s100/amazon.{format}",
487
+ ),
488
+ Offer(
489
+ monetization_type="RENT",
490
+ presentation_type="_4K",
491
+ url="https://play.google.com/store/movies/details/The_Matrix_Reloaded?gl=US&hl=en&id=uRVdSV8nBzw.P",
492
+ price_string="$3.99",
493
+ price_value=3.99,
494
+ price_currency="USD",
495
+ name="Google Play Movies",
496
+ technical_name="play",
497
+ icon="https://images.justwatch.com/icon/169478387/s100/play.{format}",
498
+ ),
499
+ Offer(
500
+ monetization_type="RENT",
501
+ presentation_type="_4K",
502
+ url="https://www.youtube.com/results?search_query=The+Matrix+Reloaded%2Bmovie",
503
+ price_string="$3.99",
504
+ price_value=3.99,
505
+ price_currency="USD",
506
+ name="YouTube",
507
+ technical_name="youtube",
508
+ icon="https://images.justwatch.com/icon/59562423/s100/youtube.{format}",
509
+ ),
510
+ Offer(
511
+ monetization_type="RENT",
512
+ presentation_type="_4K",
513
+ url="https://www.vudu.com/content/movies/details/The-Matrix-Reloaded/10678",
514
+ price_string="$3.99",
515
+ price_value=3.99,
516
+ price_currency="USD",
517
+ name="Vudu",
518
+ technical_name="vudu",
519
+ icon="https://images.justwatch.com/icon/249324969/s100/vudu.{format}",
520
+ ),
521
+ Offer(
522
+ monetization_type="RENT",
523
+ presentation_type="_4K",
524
+ url="https://www.microsoft.com/en-us/p/the-matrix-reloaded/8d6kgwzl5hmr",
525
+ price_string="$3.99",
526
+ price_value=3.99,
527
+ price_currency="USD",
528
+ name="Microsoft Store",
529
+ technical_name="microsoft",
530
+ icon="https://images.justwatch.com/icon/820542/s100/microsoft.{format}",
531
+ ),
532
+ Offer(
533
+ monetization_type="RENT",
534
+ presentation_type="_4K",
535
+ url="https://www.directv.com/movies/The-Matrix-Reloaded-NXJOdzBaRTBoSFF0dWc5UU5Ramg5Zz09",
536
+ price_string="$3.99",
537
+ price_value=3.99,
538
+ price_currency="USD",
539
+ name="DIRECTV",
540
+ technical_name="directv",
541
+ icon="https://images.justwatch.com/icon/158260222/s100/directv.{format}",
542
+ ),
543
+ Offer(
544
+ monetization_type="RENT",
545
+ presentation_type="HD",
546
+ url="https://ondemand.spectrum.net/movies/31912/the-matrix-reloaded/",
547
+ price_string="$3.99",
548
+ price_value=3.99,
549
+ price_currency="USD",
550
+ name="Spectrum On Demand",
551
+ technical_name="spectrumondemand",
552
+ icon="https://images.justwatch.com/icon/305635208/s100/spectrumondemand.{format}",
553
+ ),
554
+ Offer(
555
+ monetization_type="BUY",
556
+ presentation_type="HD",
557
+ url="http://www.amctheatres.com/movies/the-matrix-reloaded-5505",
558
+ price_string="$4.99",
559
+ price_value=4.99,
560
+ price_currency="USD",
561
+ name="AMC on Demand",
562
+ technical_name="amctheatresondemand",
563
+ icon="https://images.justwatch.com/icon/166008757/s100/amctheatresondemand.{format}",
564
+ ),
565
+ ],
566
+ ),
567
+ MediaEntry(
568
+ entry_id="tm12",
569
+ object_id=12,
570
+ object_type="MOVIE",
571
+ title="The Matrix Revolutions",
572
+ url="https://justwatch.com/us/movie/the-matrix-revolutions",
573
+ release_year=2003,
574
+ release_date="2003-11-05",
575
+ genres=["trl", "scf", "act"],
576
+ imdb_id="tt0242653",
577
+ poster="https://images.justwatch.com/poster/179166803/s718/the-matrix-revolutions.jpg",
578
+ backdrops=[
579
+ "https://images.justwatch.com/backdrop/8721981/s1920/the-matrix-revolutions.jpg",
580
+ "https://images.justwatch.com/backdrop/8721983/s1920/the-matrix-revolutions.jpg",
581
+ "https://images.justwatch.com/backdrop/203549468/s1920/the-matrix-revolutions.jpg",
582
+ "https://images.justwatch.com/backdrop/8721987/s1920/the-matrix-revolutions.jpg",
583
+ "https://images.justwatch.com/backdrop/205405481/s1920/the-matrix-revolutions.jpg",
584
+ ],
585
+ offers=[
586
+ Offer(
587
+ monetization_type="FLATRATE",
588
+ presentation_type="HD",
589
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.e390b59a-d138-45f8-9305-8806a4bcb984",
590
+ price_string=None,
591
+ price_value=None,
592
+ price_currency="USD",
593
+ name="Max Amazon Channel",
594
+ technical_name="amazonhbomax",
595
+ icon="https://images.justwatch.com/icon/305591736/s100/amazonhbomax.{format}",
596
+ ),
597
+ Offer(
598
+ monetization_type="FLATRATE",
599
+ presentation_type="_4K",
600
+ url="https://play.max.com/movie/7f34ec0d-34d9-42bb-96ac-251a42009f2d",
601
+ price_string=None,
602
+ price_value=None,
603
+ price_currency="USD",
604
+ name="Max",
605
+ technical_name="max",
606
+ icon="https://images.justwatch.com/icon/305458112/s100/max.{format}",
607
+ ),
608
+ Offer(
609
+ monetization_type="FLATRATE",
610
+ presentation_type="HD",
611
+ url="https://therokuchannel.roku.com/details/c9f116b03d8f5cea976aefb5490a4aec/the-matrix-revolutions?source=bing",
612
+ price_string=None,
613
+ price_value=None,
614
+ price_currency="USD",
615
+ name="AMC+ Roku Premium Channel",
616
+ technical_name="rokuchannelamcplus",
617
+ icon="https://images.justwatch.com/icon/252888472/s100/rokuchannelamcplus.{format}",
618
+ ),
619
+ Offer(
620
+ monetization_type="RENT",
621
+ presentation_type="_4K",
622
+ url="https://tv.apple.com/us/movie/the-matrix-revolutions/umc.cmc.52it1gdofstjm0glh3upzjjz5?playableId=tvs.sbd.9001%3A271469065",
623
+ price_string="$3.99",
624
+ price_value=3.99,
625
+ price_currency="USD",
626
+ name="Apple TV",
627
+ technical_name="itunes",
628
+ icon="https://images.justwatch.com/icon/190848813/s100/itunes.{format}",
629
+ ),
630
+ Offer(
631
+ monetization_type="RENT",
632
+ presentation_type="_4K",
633
+ url="https://watch.amazon.com/detail?gti=amzn1.dv.gti.e390b59a-d138-45f8-9305-8806a4bcb984",
634
+ price_string="$3.99",
635
+ price_value=3.99,
636
+ price_currency="USD",
637
+ name="Amazon Video",
638
+ technical_name="amazon",
639
+ icon="https://images.justwatch.com/icon/430993/s100/amazon.{format}",
640
+ ),
641
+ Offer(
642
+ monetization_type="RENT",
643
+ presentation_type="_4K",
644
+ url="https://play.google.com/store/movies/details/The_Matrix_Revolutions?gl=us&hl=en&id=7AnXDfqMMHc.P",
645
+ price_string="$3.99",
646
+ price_value=3.99,
647
+ price_currency="USD",
648
+ name="Google Play Movies",
649
+ technical_name="play",
650
+ icon="https://images.justwatch.com/icon/169478387/s100/play.{format}",
651
+ ),
652
+ Offer(
653
+ monetization_type="RENT",
654
+ presentation_type="_4K",
655
+ url="https://www.youtube.com/results?search_query=The+Matrix+Revolutions%2Bmovie",
656
+ price_string="$3.99",
657
+ price_value=3.99,
658
+ price_currency="USD",
659
+ name="YouTube",
660
+ technical_name="youtube",
661
+ icon="https://images.justwatch.com/icon/59562423/s100/youtube.{format}",
662
+ ),
663
+ Offer(
664
+ monetization_type="RENT",
665
+ presentation_type="_4K",
666
+ url="https://www.vudu.com/content/movies/details/The-Matrix-Revolutions/9986",
667
+ price_string="$3.99",
668
+ price_value=3.99,
669
+ price_currency="USD",
670
+ name="Vudu",
671
+ technical_name="vudu",
672
+ icon="https://images.justwatch.com/icon/249324969/s100/vudu.{format}",
673
+ ),
674
+ Offer(
675
+ monetization_type="RENT",
676
+ presentation_type="_4K",
677
+ url="https://www.microsoft.com/en-us/p/the-matrix-revolutions/8d6kgwzl6568",
678
+ price_string="$3.99",
679
+ price_value=3.99,
680
+ price_currency="USD",
681
+ name="Microsoft Store",
682
+ technical_name="microsoft",
683
+ icon="https://images.justwatch.com/icon/820542/s100/microsoft.{format}",
684
+ ),
685
+ Offer(
686
+ monetization_type="RENT",
687
+ presentation_type="_4K",
688
+ url="https://www.directv.com/movies/The-Matrix-Revolutions-R2ZTV0Z1dndSeU95SkdQODAwVWF4UT09",
689
+ price_string="$3.99",
690
+ price_value=3.99,
691
+ price_currency="USD",
692
+ name="DIRECTV",
693
+ technical_name="directv",
694
+ icon="https://images.justwatch.com/icon/158260222/s100/directv.{format}",
695
+ ),
696
+ Offer(
697
+ monetization_type="RENT",
698
+ presentation_type="HD",
699
+ url="https://ondemand.spectrum.net/movies/33157/the-matrix-revolutions/",
700
+ price_string="$3.99",
701
+ price_value=3.99,
702
+ price_currency="USD",
703
+ name="Spectrum On Demand",
704
+ technical_name="spectrumondemand",
705
+ icon="https://images.justwatch.com/icon/305635208/s100/spectrumondemand.{format}",
706
+ ),
707
+ Offer(
708
+ monetization_type="BUY",
709
+ presentation_type="HD",
710
+ url="http://www.amctheatres.com/movies/the-matrix-revolutions-5509",
711
+ price_string="$14.99",
712
+ price_value=14.99,
713
+ price_currency="USD",
714
+ name="AMC on Demand",
715
+ technical_name="amctheatresondemand",
716
+ icon="https://images.justwatch.com/icon/166008757/s100/amctheatresondemand.{format}",
717
+ ),
718
+ ],
719
+ ),
720
+ ]
721
+ ```
722
+ You can replace `.{format}` in icon URLs with whatever format you want - `.jpg`, `.png`, `.ico`, most of them should work.
723
+ The same applies to poster and backdrop URLs - you can replace `.jpg` extension with `.png`, etc.
724
+
725
+
726
+
727
+ ## Disclaimer
728
+
729
+ This API is in no way affiliated, associated, authorized, endorsed by, or in any way officially connected with JustWatch.
730
+ This is an independent and unofficial project.
731
+ Use at your own risk.