You should always feel comfortable massaging data into whichever form makes it easier for you to work with. In this case, however, you can just get the data in the form you want by some deciphering Wikimedia’s arcane API. Here’s a link to the settings I use, which gets me an object much like what you’re making
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Wikipedia Viewer - multiple ways to display results | 5 | 826 | June 1, 2021 | |
|
Pushing object into object array - wikipedia viewer SOLVED
|
8 | 1659 | January 17, 2021 | |
|
Convert JavaScript array of arrays into object key value pairs
|
9 | 3001 | January 16, 2021 | |
|
Wikipedia api help
|
4 | 1718 | January 16, 2021 | |
| Extract data from an array using map() | 5 | 1800 | February 2, 2021 |