simple-justwatch-python-api icon indicating copy to clipboard operation
simple-justwatch-python-api copied to clipboard

providers

Open 3052 opened this issue 2 years ago • 5 comments

is it possible to list providers home page and justwatch page?

3052 avatar Mar 25 '24 02:03 3052

I'm not sure how to do this though GraphQL unfortunately. Providers on the main page doesn't seem to be accessed through GraphQL, browser doesn't seem to be making any GraphQL requests which might contain that information.

If you know how to access that data in the graph let me know.

Electronic-Mango avatar Apr 08 '24 21:04 Electronic-Mango

I use the old REST API for this: "https://apis.justwatch.com/content/providers/locale/xx_" + country (country being the ISO 3166-1 alpha-2 code in uppercase).

lesderid avatar Apr 17 '24 00:04 lesderid

that does not provide either data point. it doesnt provide the JustWatch page or the providers home page:

{
    "id": 8,
    "technical_name": "netflix",
    "short_name": "nfx",
    "clear_name": "Netflix",
    "display_priority": 0,
    "priority": 0,
    "monetization_types": [
      "flatrate"
    ],
    "icon_url": "/icon/207360008/{profile}",
    "icon_blur_hash": "KVBJXFjt1^jto1a|A;a|,Z",
    "slug": "netflix",
    "data": {
      "deeplink_data": [],
      "packages": {
        "android_tv": "enabled",
        "fire_tv": "enabled",
        "tvos": "enabled",
        "tizenos": "enabled",
        "webos": "enabled",
        "xbox": "enabled"
      },
      "has_titles": null,
      "has_sport": null
    },
    "addon_packages": null,
    "parent_packages": null
  }

https://apis.justwatch.com/content/providers/locale/en_US

3052 avatar Apr 17 '24 00:04 3052

that does not provide either data point. it doesnt provide the JustWatch page or the providers home page:

It does provide the former: use slug: "https://www.justwatch.com/" + country + "/provider/" + slug.

lesderid avatar Apr 17 '24 00:04 lesderid

OK, but one is pointless without the other. the whole point is I want to connect the two data points.

3052 avatar Apr 17 '24 00:04 3052