How I make http request to Wikipedia api for get wiki content pages with fetch and async, & await?
what have you tried so far?
Hii can you explain me this?
const url = "https://en.wikipedia.org/w/api.php?" +
new URLSearchParams({
origin: "*",
action: "parse",
page: 'Solar System',
format: "json",
});
it’s building a string, which is the url used by the API call I imagine
I am not familiar with that API, but sometimes after there is a fetch or a request that uses that url for sure