You can get a hint of what is wrong if you do console.log(blob) before the call to blob.json(). blob is actually a Response. Its member ok is false, meaning the request failed, and its type is "opaque", which, according to MDN, means that âyou used âno-corsâ for a cross-origin requestâ and the body is null. This is where your problem lies. You canât get JSON data through an opaque response. An opaque response gives you very little data. See https://stackoverflow.com/questions/39109789/what-limitations-apply-to-opaque-responses for more info.
Wikipedia wonât let you access its API with a normal JSON query. You have to use either CORS or JSONP. I havenât used fetch before so I canât really advise how to do it. I know you can access Wikipedia with $.ajax() with datatype: 'jsonp' if that helps.