there are a couple issues, but let me try and give you some pointers:
You get your data back in the variable data ,yet you are attempting to do your operations on a variable called json which of course correctly errors out as undefined
The forEach method is for arrays, however you are getting your data back as an object, it seems that you have correctly identified the object that you want to extract your information from (data.query.pages), you need to go through each property in this object and extract the information you need, search for the method/s that will enable you to do this, shout out if you can’t find them
correct , which goes back to my second point above, which is that the method forEach is for arrays, you need to find a method that parses through objects
I’ve fixed some things. Now it doesn’t seem to be able to read the property of ‘title’ of undefined. Why does this happen? Keys is an array and the path i’ve put in the one the console says…