Change the endpoint URL. It is and you are referring another URL.

Thanks :) regards

On Tue, Jun 23, 2020, 4:14 AM Larry D'Agostino <> wrote:
I'm looking into the Wikiloop Battlefield data and trying to query the data via the API using revision id.

My attempts appear to return with "badrevids".

Am i using the API incorrectly?

Here is my sample python code...

import requests

S = requests.Session()

URL = ""

    "action": "query",
    "prop": "revisions",
    "revids": 961090023,
    "rvprop": "ids|timestamp|user|comment|content",
    "rvslots": "main",
    "formatversion": "2",
    "format": "json"

R = S.get(url=URL, params=PARAMS)
DATA = R.json()

PAGES = DATA["query"]

for page in PAGES:
Mediawiki-api mailing list