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

API Json error 403 #23

Open
Alkapims opened this issue Jan 15, 2023 · 8 comments
Open

API Json error 403 #23

Alkapims opened this issue Jan 15, 2023 · 8 comments

Comments

@Alkapims
Copy link

Hello!
L'api retourne un 403 ces derniers jours :(
Changement du partner ou de l'algo ? Des idées de votre côté ?
Merci!

@giks
Copy link

giks commented Jan 15, 2023

problème aussi de mon coté....

@SebWibo
Copy link

SebWibo commented Jan 15, 2023

idem également, en forçant un peu (plusieurs requêtes), j'arrive à avoir un 200 avec les résultats sur search, get et review ... mais c'est très aléatoire ... mais dès lors que j'ai mon résultat et que je change de query, j'ai re un 403 qui fini un 200 après plusieurs requêtes ...

@Vinzz
Copy link

Vinzz commented Jan 20, 2023

idem chez moi, pas encore eu le temps de chercher

@Heshyo
Copy link

Heshyo commented Jan 21, 2023

Pour info, etn406/api-allocine-helper#40 (comment) . J'imagine que les 2 sont liés.

@Heshyo
Copy link

Heshyo commented Jan 22, 2023

Voici une requête POST qui fonctionne, mais j'imagine que la partie authentification n'est pas fixe. De plus l'ID du film utilisé dans la requête n'est pas directement celui visible (le interalId):

POST /v1/mobile/ HTTP/1.1
Host: graph.allocine.fr
ac-auth-token: ekCdTjOmhbU:APA91bFzKdcg9DeDs6-bj7ZLMz8hnhTUIKKMHwAAdeKLQlgESaB16j9Jxjw2MOAQ-uyszThFWoAq3dhcQi1pSjdGQ2TJX0xmFd5xmkfX-wJJsPz2GIHyqKjFTkfnFn7ZB-ozeGkwbUNg
accept-encoding: gzip
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1NzE4NDM5NTcsInVzZXJuYW1lIjoiYW5vbnltb3VzIiwiYXBwbGljYXRpb25fbmFtZSI6Im1vYmlsZSIsInV1aWQiOiJmMDg3YTZiZi05YTdlLTQ3YTUtYjc5YS0zMDNiNWEwOWZkOWYiLCJzY29wZSI6bnVsbCwiZXhwIjoxNjg2NzAwNzk5fQ.oRS_jzmvfFAQ47wH0pU3eKKnlCy93FhblrBXxPZx2iwUUINibd70MBkI8C8wmZ-AeRhVCR8kavW8dLIqs5rUfA6piFwdYpt0lsAhTR417ABOxVrZ8dv0FX3qg1JLIzan-kSN4TwUZ3yeTjls0PB3OtSBKzoywGvFAu2jMYG1IZyBjxnkfi1nf1qGXbYsBfEaSjrj-LDV6Jjq_MPyMVvngNYKWzFNyzVAKIpAZ-UzzAQujAKwNQcg2j3Y3wfImydZEOW_wqkOKCyDOw9sWCWE2D-SObbFOSrjqKBywI-Q9GlfsUz-rW7ptea_HzLnjZ9mymXc6yq7KMzbgG4W9CZd8-qvHejCXVN9oM2RJ7Xrq5tDD345NoZ5plfCmhwSYA0DSZLw21n3SL3xl78fMITNQqpjlUWRPV8YqZA1o-UNgwMpOWIoojLWx-XBX33znnWlwSa174peZ1k60BQ3ZdCt9A7kyOukzvjNn3IOIVVgS04bBxl4holc5lzcEZSgjoP6dDIEJKib1v_AAxA34alVqWngeDYhd0wAO-crYW1HEd8ogtCoBjugwSy7526qrh68mSJxY66nr4Cle21z1wLC5lOsex0FbuwvOeFba0ycaI8NJPTUriOdvtHAjhDRSem4HjypGvKs5AzlZ3LAJACCHICNwo3NzYjcxfT4Wo1ur-M
connection: Keep-Alive
content-type: application/json; charset=utf-8
host: graph.allocine.fr
user-agent: androidapp/0.0.1
Content-Length: 3037

{
  "query": "query MovieQuery($id: String, $longSynopsis: Boolean, $country: CountryCode, $isLogged: Boolean!) { movie(id: $id) { __typename ...MovieFragment } } fragment MovieFragment on Movie { __typename id internalId title originalTitle genres type poster { __typename id internalId url } synopsis(long: $longSynopsis) mainRelease { __typename type } userAffinity @include(if: $isLogged) { __typename reason affinityScore } releaseFlags { __typename ...ReleaseUpcomingFragment } flags { __typename hasShowtime isPlayingNow hasOnlineProduct hasPhysicalProduct hasPreview isClub300Approved } cast(first: 5) { __typename edges { __typename node { __typename role actor { __typename id internalId firstName lastName } voiceActor { __typename id internalId firstName lastName } originalVoiceActor { __typename id internalId firstName lastName } } } } stats { __typename wantToSeeCount userRating { __typename score(base: 5) } pressReview { __typename score(base: 5) } } credits(department: DIRECTION, first: 5) { __typename edges { __typename node { __typename person { __typename id firstName lastName } position { __typename name } } } } editorialReviews { __typename rating } countries { __typename id name localizedName } movieOperation: operation { __typename target { __typename main { __typename code } data } } videos(order: [LATEST], type: [TRAILER, TEASER]) { __typename id title dailymotion duration files { __typename url quality } snapshot { __typename path url } relatedEntities { __typename ... on Movie { id title } ... on Series { id title } ... on Season { id } } } releases(type: [RELEASED], country: $country) { __typename releaseDate { __typename date precision } } svodReleases:releases(type: [SVOD_RELEASE], country: $country) { __typename releaseDate { __typename date precision } } dvdReleases: releases(type: [DVD_RELEASE], country: $country) { __typename releaseDate { __typename date } } VODProducts: relatedProducts(type: [VOD, TVOD, VODEST], first: 1) { __typename edges { __typename node { __typename id } } } DVDProducts: relatedProducts(type: [DVD, BLU_RAY], first: 1) { __typename edges { __typename node { __typename id } } } languages runtime theatersCount(country: [$country]) relatedTags { __typename internalId name } data { __typename productionYear } } fragment ReleaseUpcomingFragment on ReleaseFlags { __typename product { __typename provider { __typename svod { __typename internalId name } replay { __typename internalId name } } } release { __typename provider { __typename svod { __typename internalId name } extra { __typename svod_originals { __typename internalId name } svod_exclusive { __typename internalId name } } replay { __typename internalId name } } } upcoming { __typename provider { __typename svod { __typename internalId name } extra { __typename svod_originals { __typename internalId name } svod_exclusive { __typename internalId name } } } } }",
  "variables": {
    "id": "TW92aWU6Mjc1Njc1",
    "longSynopsis": true,
    "country": "FRANCE",
    "isLogged": false
  }
}

Ce qui renvoie

{
    "data": {
        "movie": {
            "__typename": "Movie",
            "id": "TW92aWU6Mjc1Njc1",
            "internalId": 275675,
            "title": "Babylon",
            "originalTitle": "Babylon",
            "genres": ["DRAMA", "HISTORICAL"],
            "type": "FEATURE_FILM",
            "poster": {
                "__typename": "InternalImage",
                "id": "SW1hZ2U6MjE5NjY3MzQ=",
                "internalId": 21966734,
                "url": "https:\/\/fr.web.img6.acsta.net\/pictures\/22\/12\/02\/16\/03\/2536613.jpg"
            },
            "synopsis": "Los Angeles des ann\u00e9es 1920. R\u00e9cit d\u2019une ambition d\u00e9mesur\u00e9e et d\u2019exc\u00e8s les plus fous, BABYLON retrace l\u2019ascension et la chute de diff\u00e9rents personnages lors de la cr\u00e9ation d\u2019Hollywood, une \u00e8re de d\u00e9cadence et de d\u00e9pravation sans limites.",
            "mainRelease": {
                "__typename": "MainReleaseInfo",
                "type": "NOW_PLAYING"
            },
            "releaseFlags": {
                "__typename": "ReleaseFlags",
                "product": {
                    "__typename": "ReleaseProductFlags",
                    "provider": {
                        "__typename": "ReleaseProvidersFlags",
                        "svod": null,
                        "replay": null
                    }
                },
                "release": {
                    "__typename": "ReleaseBaseFlags",
                    "provider": {
                        "__typename": "ReleaseProvidersFlags",
                        "svod": null,
                        "extra": null,
                        "replay": null
                    }
                },
                "upcoming": {
                    "__typename": "ReleaseBaseFlags",
                    "provider": {
                        "__typename": "ReleaseProvidersFlags",
                        "svod": null,
                        "extra": null
                    }
                }
            },
            "flags": {
                "__typename": "MovieFlags",
                "hasShowtime": true,
                "isPlayingNow": true,
                "hasOnlineProduct": false,
                "hasPhysicalProduct": false,
                "hasPreview": false,
                "isClub300Approved": false
            },
            "cast": {
                "__typename": "castMemberConnection",
                "edges": [{
                    "__typename": "castMemberEdge",
                    "node": {
                        "__typename": "CastMember",
                        "role": "Jack Conrad",
                        "actor": {
                            "__typename": "Person",
                            "id": "UGVyc29uOjEyMzAy",
                            "internalId": 12302,
                            "firstName": "Brad",
                            "lastName": "Pitt"
                        },
                        "voiceActor": null,
                        "originalVoiceActor": null
                    }
                }, {
                    "__typename": "castMemberEdge",
                    "node": {
                        "__typename": "CastMember",
                        "role": "Nellie LaRoy",
                        "actor": {
                            "__typename": "Person",
                            "id": "UGVyc29uOjQwMzU3Mw==",
                            "internalId": 403573,
                            "firstName": "Margot",
                            "lastName": "Robbie"
                        },
                        "voiceActor": null,
                        "originalVoiceActor": null
                    }
                }, {
                    "__typename": "castMemberEdge",
                    "node": {
                        "__typename": "CastMember",
                        "role": "Manny Torres",
                        "actor": {
                            "__typename": "Person",
                            "id": "UGVyc29uOjc0Mjg5Ng==",
                            "internalId": 742896,
                            "firstName": "Diego",
                            "lastName": "Calva"
                        },
                        "voiceActor": null,
                        "originalVoiceActor": null
                    }
                }, {
                    "__typename": "castMemberEdge",
                    "node": {
                        "__typename": "CastMember",
                        "role": "Elinor St. John",
                        "actor": {
                            "__typename": "Person",
                            "id": "UGVyc29uOjI5Njk2",
                            "internalId": 29696,
                            "firstName": "Jean",
                            "lastName": "Smart"
                        },
                        "voiceActor": null,
                        "originalVoiceActor": null
                    }
                }, {
                    "__typename": "castMemberEdge",
                    "node": {
                        "__typename": "CastMember",
                        "role": "Sidney Palmer",
                        "actor": {
                            "__typename": "Person",
                            "id": "UGVyc29uOjczMjk5Mw==",
                            "internalId": 732993,
                            "firstName": "Jovan",
                            "lastName": "Adepo"
                        },
                        "voiceActor": null,
                        "originalVoiceActor": null
                    }
                }]
            },
            "stats": {
                "__typename": "MovieStats",
                "wantToSeeCount": 4313,
                "userRating": {
                    "__typename": "UserRatingsStats",
                    "score": 4.28
                },
                "pressReview": {
                    "__typename": "PressReviewsStats",
                    "score": 3.98
                }
            },
            "credits": {
                "__typename": "creditsConnection",
                "edges": [{
                    "__typename": "creditsEdge",
                    "node": {
                        "__typename": "CreditsMember",
                        "person": {
                            "__typename": "Person",
                            "id": "UGVyc29uOjQxOTYwNw==",
                            "firstName": "Damien",
                            "lastName": "Chazelle"
                        },
                        "position": {
                            "__typename": "Position",
                            "name": "DIRECTOR"
                        }
                    }
                }]
            },
            "editorialReviews": [],
            "countries": [{
                "__typename": "Country",
                "id": 5002,
                "name": "USA",
                "localizedName": "U.S.A."
            }],
            "movieOperation": {
                "__typename": "SpecialOperation",
                "target": null
            },
            "videos": [{
                "__typename": "Video",
                "id": "VmlkZW86YnJhbmQudmlkZW9fbGVnYWN5LkFDLjE5NTk4OTcz",
                "title": "Babylon Bande-annonce VO",
                "dailymotion": ["x8fw4it"],
                "duration": "00:02:24",
                "files": [{
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598973_hd_013.mp4",
                    "quality": "HIGH"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598973_l_013.mp4",
                    "quality": "LOW"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598973_m_013.mp4",
                    "quality": "MEDIUM"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598973_sd_013.mp4",
                    "quality": "STANDARD"
                }],
                "snapshot": {
                    "__typename": "InternalImage",
                    "path": "\/videothumbnails\/22\/11\/28\/15\/10\/3395473.jpg",
                    "url": "https:\/\/fr.web.img4.acsta.net\/videothumbnails\/22\/11\/28\/15\/10\/3395473.jpg"
                },
                "relatedEntities": [{
                    "__typename": "Movie",
                    "id": "TW92aWU6Mjc1Njc1",
                    "title": "Babylon"
                }]
            }, {
                "__typename": "Video",
                "id": "VmlkZW86YnJhbmQudmlkZW9fbGVnYWN5LkFDLjE5NTk4OTc0",
                "title": "Babylon Bande-annonce VF",
                "dailymotion": ["x8fw4ir"],
                "duration": "00:02:25",
                "files": [{
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598974_hd_013.mp4",
                    "quality": "HIGH"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598974_l_013.mp4",
                    "quality": "LOW"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598974_m_013.mp4",
                    "quality": "MEDIUM"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/11\/28\/15\/19598974_sd_013.mp4",
                    "quality": "STANDARD"
                }],
                "snapshot": {
                    "__typename": "InternalImage",
                    "path": "\/videothumbnails\/22\/11\/28\/15\/10\/3528074.jpg",
                    "url": "https:\/\/fr.web.img5.acsta.net\/videothumbnails\/22\/11\/28\/15\/10\/3528074.jpg"
                },
                "relatedEntities": [{
                    "__typename": "Movie",
                    "id": "TW92aWU6Mjc1Njc1",
                    "title": "Babylon"
                }]
            }, {
                "__typename": "Video",
                "id": "VmlkZW86YnJhbmQudmlkZW9fbGVnYWN5LkFDLjE5NTk4MDc3",
                "title": "Babylon Bande-annonce (2) VF",
                "dailymotion": ["x8dnoz7"],
                "duration": "00:02:19",
                "files": [{
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598077_hd_013.mp4",
                    "quality": "HIGH"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598077_l_013.mp4",
                    "quality": "LOW"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598077_m_013.mp4",
                    "quality": "MEDIUM"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598077_sd_013.mp4",
                    "quality": "STANDARD"
                }],
                "snapshot": {
                    "__typename": "InternalImage",
                    "path": "\/videothumbnails\/22\/09\/13\/15\/12\/0100223.jpg",
                    "url": "https:\/\/fr.web.img5.acsta.net\/videothumbnails\/22\/09\/13\/15\/12\/0100223.jpg"
                },
                "relatedEntities": [{
                    "__typename": "Movie",
                    "id": "TW92aWU6Mjc1Njc1",
                    "title": "Babylon"
                }]
            }, {
                "__typename": "Video",
                "id": "VmlkZW86YnJhbmQudmlkZW9fbGVnYWN5LkFDLjE5NTk4MDc2",
                "title": "Babylon Bande-annonce (2) VO",
                "dailymotion": ["x8dnovr"],
                "duration": "00:02:19",
                "files": [{
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598076_hd_013.mp4",
                    "quality": "HIGH"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598076_l_013.mp4",
                    "quality": "LOW"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598076_m_013.mp4",
                    "quality": "MEDIUM"
                }, {
                    "__typename": "VideoFile",
                    "url": "https:\/\/fr.vid.web.acsta.net\/nmedia\/33\/22\/09\/13\/15\/19598076_sd_013.mp4",
                    "quality": "STANDARD"
                }],
                "snapshot": {
                    "__typename": "InternalImage",
                    "path": "\/videothumbnails\/22\/09\/13\/15\/10\/2158273.jpg",
                    "url": "https:\/\/fr.web.img5.acsta.net\/videothumbnails\/22\/09\/13\/15\/10\/2158273.jpg"
                },
                "relatedEntities": [{
                    "__typename": "Movie",
                    "id": "TW92aWU6Mjc1Njc1",
                    "title": "Babylon"
                }]
            }],
            "releases": [{
                "__typename": "MovieRelease",
                "releaseDate": {
                    "__typename": "PartialDate",
                    "date": "2023-01-18",
                    "precision": "day"
                }
            }],
            "svodReleases": [],
            "dvdReleases": [],
            "VODProducts": {
                "__typename": "productsConnection",
                "edges": []
            },
            "DVDProducts": {
                "__typename": "productsConnection",
                "edges": []
            },
            "languages": ["ENGLISH"],
            "runtime": "PT3H9M0S",
            "theatersCount": 935,
            "relatedTags": [{
                "__typename": "Tag",
                "internalId": 257,
                "name": "Hollywood"
            }, {
                "__typename": "Tag",
                "internalId": 1458,
                "name": "Cin\u00e9ma \/ Univers du cin\u00e9ma \/ Film dans le film"
            }, {
                "__typename": "Tag",
                "internalId": 1149,
                "name": "Ambiance 20\u0027s - ann\u00e9es 20"
            }, {
                "__typename": "Tag",
                "internalId": 732,
                "name": "Acteur \/ Actrice"
            }, {
                "__typename": "Tag",
                "internalId": 5184,
                "name": "Los Angeles"
            }, {
                "__typename": "Tag",
                "internalId": 5291,
                "name": "Etats-Unis"
            }, {
                "__typename": "Tag",
                "internalId": 810,
                "name": "Orgie"
            }, {
                "__typename": "Tag",
                "internalId": 1701,
                "name": "Alcool \/ Vin \/ Bi\u00e8re"
            }, {
                "__typename": "Tag",
                "internalId": 1759,
                "name": "F\u00eate \/ R\u00e9ception"
            }, {
                "__typename": "Tag",
                "internalId": 2143,
                "name": "Vestiaires et coulisses"
            }, {
                "__typename": "Tag",
                "internalId": 1633,
                "name": "Tabac \/ Cigare \/ Cigarette \/ Pipe"
            }, {
                "__typename": "Tag",
                "internalId": 1961,
                "name": "Sexe - sexualit\u00e9"
            }, {
                "__typename": "Tag",
                "internalId": 1044,
                "name": "Show-Business"
            }],
            "data": {
                "__typename": "MovieData",
                "productionYear": 2022
            }
        }
    }
}

@Shunny75
Copy link

Shunny75 commented Jan 23, 2023

Idem, la clé partenaire ou la clé secrète a dû changer.

@JerryDiemsee
Copy link

Hello !
Quelqu'un a des news là-dessus (ou au moins une piste) ?
J'avoue que je sèche complètement sur la façon de réussir à retrouver un clé privée, vu que par définition, elle est faite pour ne pas être devinée comme ça.

@Did77
Copy link

Did77 commented Feb 9, 2023

Hello,
La même chose de mon coté
Des pistes ?

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

8 participants