# Issue with fetch on Wikipedia problem

**URL:** <https://forum.freecodecamp.org/t/issue-with-fetch-on-wikipedia-problem/164849>\
**Category:** General\
**Created:** [December 21, 2017, 9:36pm UTC](https://forum.freecodecamp.org/t/issue-with-fetch-on-wikipedia-problem/164849 "2017-12-21T21:36:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arssonist](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arssonist/32/73145_2.png) [@arssonist](https://forum.freecodecamp.org/u/arssonist)\
**Post date:** [December 21, 2017, 9:36pm UTC](https://forum.freecodecamp.org/t/issue-with-fetch-on-wikipedia-problem/164849/1 "2017-12-21T21:36:08Z")

</div>

On the wikipedia problem I’ve hit a snag, Using fetch, the response I’m given I cannot use. At least I don’t know how.  
This is only to show my issue, hence all the loops.I only did these loops to see if they allowed me something I could not get by clicking in the console.

```auto
const endpoint = 'https://en.wikipedia.org/w/api.php?action=query&format=json&origin=*&titles=Albert%20Einstein'
fetch(endpoint)
    .then(blob => blob.json())
    .then((data) => {
    for(var i in data){
     //returns batch complete ,
      //& query
      for(var j in data.query){ 
         //returns pages
        for(var k in data.query.pages){
        //returns the string 736
        }
      }
  }
  })

```

I cannot go any further than this 736. Along with the gibberish above when I open the object all I see are the object methods. How do I dig into the return data? Where the heck is it?  
What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 11:25am UTC](https://forum.freecodecamp.org/t/issue-with-fetch-on-wikipedia-problem/164849/2 "2021-01-16T11:25:55Z")

</div>

Closed on January 16, 2021, 11:25am UTC


