Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to update wtw package for graphql queries #989

Open
dills122 opened this issue Dec 16, 2023 · 1 comment
Open

Need to update wtw package for graphql queries #989

dills122 opened this issue Dec 16, 2023 · 1 comment

Comments

@dills122
Copy link
Owner

URL: https://apis.justwatch.com/graphql

Person Search

Request

{
    "operationName": "GetContentHeaderPerson",
    "variables": {
        "nodeId": "tp6747",
        "language": "en",
        "country": "US"
    },
    "query": "query GetContentHeaderPerson($nodeId: ID!, $country: Country!, $language: Language!) {\n  node(id: $nodeId) {\n    ... on Person {\n      ...ContentHeaderPerson\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ContentHeaderPerson on Person {\n  id\n  content(country: $country, language: $language) {\n    fullName\n    shortDescription\n    dateOfBirth\n    __typename\n  }\n  __typename\n}\n"
}

Response

{
    "data": {
        "node": {
            "id": "tp6747",
            "content": {
                "fullName": "Nicolas Cage",
                "shortDescription": "....",
                "dateOfBirth": "1964-01-07",
                "__typename": "PersonContent"
            },
            "__typename": "Person"
        }
    }
}
@dills122
Copy link
Owner Author

Findings:

GetSearchTitles is a paginated list of all the available titles for the Person/Actor/Actress
nodeId from the previous search is used to gather the offer data using the GetTitleOffers call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant