Wiki api help needed

Hello i am confused , i am not able to use the wikipedia api…my console is not showing me data.following is my code please help.

i think that after changing my api link the problem is occourring in the search term, my data item written in the input feild is not going in the variable search term i provided.

    var searchTerm=$("#searchTerm").val();
    var url=""+searchTerm+"&format=json&callback=?";
      success: function(data){
      error: function(errorMessage){

My api method request url is different

var url = "" + input + "&callback=?"

Hey @Akshay55,
I would suggest consulting Wikipedia’s API documentation, since I do not think that is the correct URL to make calls.

1 Like

thank you very much for your replies…i appreciate the help… my code still not worked after using @tj9027 api call…:smiley: Thank you.

oh it worked now thank you everyone :smiley:

@Akshay55 would you include the link to your code? Im trying to understand how you got your solution, I am encoutering the same problem.

Here you go…:grinning:

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.