Having problems with Wikipedia API

Having problems with Wikipedia API
0

#1

I am currently doing the Wikipedia Viewer coding challenge. I decided to use fetchAPI for this challenge.After hours of research i found a URL where i could send request and get search results but the data that i received doesnot seem to be in JSON format despite of me requesting the data in json format.
The URL is = > “https://en.wikipedia.org/w/api.php?action=opensearch&search=hello&format=json&origin=*&callback=?"
And i got the following data that doesnot parse to JSON
/**/([“hello”,[“Hello”,“Hello, Dolly! (musical)”,“Hello Kitty”,“Hello (Adele song)”,“Hello Venus”,“Helloween”,“Hello, Goodbye”,“Hello Counselor”,“Hello! Project”,“Hello Kitty Online”],[“Hello is a salutation or greeting in the English language. It is first attested in writing from 1826.”,“Hello, Dolly! is a 1964 musical with lyrics and music by Jerry Herman and a book by Michael Stewart, based on Thornton Wilder’s 1938 farce The Merchant of Yonkers, which Wilder revised and retitled The Matchmaker in 1955. The musical follows the story of Dolly Levi (a strong-willed matchmaker), as she travels to Yonkers, New York, to find a match for the miserly “well-known unmarried half-a-millionaire” Horace Vandergelder.”,“Hello Kitty (Japanese: \u30cf\u30ed\u30fc\u30fb\u30ad\u30c6\u30a3, Hepburn: Har\u014d Kiti) (full name: Kitty White (\u30ad\u30c6\u30a3\u30fb\u30db\u30ef\u30a4\u30c8, Kiti Howaito)) is a fictional character produced by the Japanese company Sanrio, created by Yuko Shimizu and currently designed by Yuko Yamaguchi.”,”“Hello” is a song by English singer Adele, released on 23 October 2015 by XL Recordings as the lead single from her third studio album, 25 (2015).",“Hello Venus (Hangul: \ud5ec\ub85c\ube44\ub108\uc2a4; often stylized as HELLOVENUS) is a South Korean girl group formed by Tricell Media, a joint venture between Pledis Entertainment and Fantagio, in 2012. The group originally consisted of six members: Alice, Nara, Lime, Yooara, Yoonjo, and Yooyoung.”,“Helloween is a German power metal band founded in 1984 in Hamburg, Northern Germany by members of bands Iron Fist and Gentry.”,"“Hello, Goodbye” is a song by the English rock band the Beatles, written by Paul McCartney and credited to Lennon\u2013McCartney.",“Hello Counselor (Hangul: \uc548\ub155\ud558\uc138\uc694; RR: Annyeonghaseyo; lit. Hello) is a South Korean reality show that debuted in November 2010. It is hosted by Shin Dong-yup, Lee Young-ja, and Cultwo (Jung Chan-woo, Kim Tae-gyun).”,“Hello! Project (\u30cf\u30ed\u30fc!\u30d7\u30ed\u30b8\u30a7\u30af\u30c8, Har\u014d! Purojekuto) is a Japanese idol project, the umbrella name for a collective of female singers who are under contract with the Up-Front Group and whose recordings are produced by Tsunku.”,“Hello Kitty Online (HKO) is a free-to-play massively multiplayer online role playing game developed by Sanrio Digital and Typhoon Games.”],[“https://en.wikipedia.org/wiki/Hello","https://en.wikipedia.org/wiki/Hello,Dolly!(musical)”,“https://en.wikipedia.org/wiki/Hello_Kitty",“https://en.wikipedia.org/wiki/Hello_(Adele_song)”,“https://en.wikipedia.org/wiki/Hello_Venus”,“https://en.wikipedia.org/wiki/Helloween”,“https://en.wikipedia.org/wiki/Hello,_Goodbye”,“https://en.wikipedia.org/wiki/Hello_Counselor”,“https://en.wikipedia.org/wiki/Hello!_Project”,"https://en.wikipedia.org/wiki/Hello_Kitty_Online”]])


#2

Remove the callback https://en.wikipedia.org/w/api.php?action=opensearch&search=hello&format=json&origin=*