pappes / MyMovieSearch

test android app using flutter
GNU General Public License v3.0
1 stars 0 forks source link

reinstate imdb keyword pagination #88

Open pappes opened 2 months ago

pappes commented 2 months ago

more keywords search is available using imdb sha: f3e9d880ef5404e832446904abc3c455b762cf23c66089c3747ae96dfb3c0065 on endpoint https://caching.graphql.imdb.com/?operationName=AdvancedTitleSearch

requires 3 parameters: "operationName", "variables" and "extensions"

operationName is "AdvancedTitleSearch"

extensions is URLencoded: {"persistedQuery":{"sha256Hash":"f3e9d880ef5404e832446904abc3c455b762cf23c66089c3747ae96dfb3c0065","version":1}}

variables is URLencoded: {"after":"eyJlc1Rva2VuIjpbIjE1ODUiLCIxNTg1IiwidHQ3NTY5NTc2Il0sImZpbHRlciI6IntcImNvbnN0cmFpbnRzXCI6e1wia2V5d29yZENvbnN0cmFpbnRcIjp7XCJhbGxLZXl3b3Jkc1wiOltcInNleFwiXSxcImV4Y2x1ZGVLZXl3b3Jkc1wiOltdfX0sXCJzb3J0XCI6e1wic29ydEJ5XCI6XCJQT1BVTEFSSVRZXCIsXCJzb3J0T3JkZXJcIjpcIkFTQ1wifSxcInJlc3VsdEluZGV4XCI6NDl9In0=","first":50,"keywordConstraint":{"allKeywords":["sex"],"excludeKeywords":[]},"locale":"en-GB","sortBy":"POPULARITY","sortOrder":"ASC"}

after is base64 encoded: {"esToken":["1585","1585","tt7569576"],"filter":"{\"constraints\":{\"keywordConstraint\":{\"allKeywords\":[\"sex\"],\"excludeKeywords\":[]}},\"sort\":{\"sortBy\":\"POPULARITY\",\"sortOrder\":\"ASC\"},\"resultIndex\":4}"}

pappes commented 2 months ago

sample URL https://caching.graphql.imdb.com/?operationName=AdvancedTitleSearch&variables=%7B%22after%22%3A%22eyJlc1Rva2VuIjpbIjE1ODUiLCIxNTg1IiwidHQ3NTY5NTc2Il0sImZpbHRlciI6IntcImNvbnN0cmFpbnRzXCI6e1wia2V5d29yZENvbnN0cmFpbnRcIjp7XCJhbGxLZXl3b3Jkc1wiOltcInNleFwiXSxcImV4Y2x1ZGVLZXl3b3Jkc1wiOltdfX0sXCJzb3J0XCI6e1wic29ydEJ5XCI6XCJQT1BVTEFSSVRZXCIsXCJzb3J0T3JkZXJcIjpcIkFTQ1wifSxcInJlc3VsdEluZGV4XCI6NDl9In0%3D%22%2C%22first%22%3A50%2C%22keywordConstraint%22%3A%7B%22allKeywords%22%3A%5B%22sex%22%5D%2C%22excludeKeywords%22%3A%5B%5D%7D%2C%22locale%22%3A%22en-GB%22%2C%22sortBy%22%3A%22POPULARITY%22%2C%22sortOrder%22%3A%22ASC%22%7D&extensions=%7B%22persistedQuery%22%3A%7B%22sha256Hash%22%3A%22f3e9d880ef5404e832446904abc3c455b762cf23c66089c3747ae96dfb3c0065%22%2C%22version%22%3A1%7D%7D