## How to authenticate to Wikimedia Commons Query Service using OAuth in Python?

This page says it's possible to authenticate against the query service using OAuth, but has anyone managed to do so programmatically from Python? If anyone has any working code, in any language, I would appreciate whatever you can share. I've asked the full question including my not-working Python code on StackOverflow: https://stackoverflow.com/questions/65303450/how-to-authenticate-to-wikimedia-commons-query-service-using-oauth-in-python --FrankieRayRobertson (talk) 13:38, 21 December 2020 (UTC)

  @Multichill: do you have example code for this / are you using WCQS with python? --Zache (talk) 06:55, 4 January 2021 (UTC)
    @Zache: no, would have to look into this. Should be part of Pywikibot if someone figures it out. Did you already file a task in phabricator to add support for https://wcqs-beta.wmflabs.org/ ? Multichill (talk) 18:31, 13 February 2021 (UTC)

## HTTP 500, server down?

For me `https://wcqs-beta.wmflabs.org/` throws a 500 Internal Server Error:

    Problem accessing /oauth/check_login. Reason:
    Request failed.

Is this known? Any information when the query service might be back? Thanks in advance for any information or linking to relevant other places! --Marsupium (talk) 00:30, 28 December 2021 (UTC)

  @Marsupium: issue was reported in T297454--Shisma (talk) 11:48, 31 December 2021 (UTC)
  Tracked in Phabricator
  Task T297454
    Thanks for the link! --Marsupium (talk) 12:19, 31 December 2021 (UTC)