Questions tagged [wikipedia-api]

Related to the use of the MediaWiki API on Wikipedia. Consider also the tags [wikipedia] if your question isn't about the API or [mediawiki-api] if your question isn't about Wikipedia.

Documentation for the API is available at mediawiki.org; a summary of all available parameters and short help is available by accessing the API endpoint on the wiki.

In addition, there is a REST API that allows fetching commonly used data in a simple format. A list of all endpoints can be found in the REST API Documentation.

Please make sure to read the etiquette for best practices for using the API and general usage guidelines.

1085 questions
-1
votes
1 answer

how to write query in sparql to extract this specific data from dbpedia? Is it feasible or not, if yes what should be query?

This is a link I would like to query it I want to extract list of the cloud providers and then through each cloud provider I extract their abstraction, their company link and their name, in case of they have product name I want that too.for example…
pm1359
  • 622
  • 1
  • 10
  • 31
-1
votes
1 answer

Error accessing array properties json

I am trying to access various properties from Wikipedia's Infobox through using the API. I am using the following script for a search term Google for example and would like to return the industry however am getting the messages Undefined property...…
Oroku
  • 443
  • 1
  • 3
  • 15
-1
votes
1 answer

How can i implement offline Wikipedia in android?

I want to make offline Wikipedia android application. For that i searched the Google for database samples but till now i didn't find any database.Is there any SQLite database related to android Wikipedia . The problem here is how can i download…
Nava2011
  • 195
  • 1
  • 15
-1
votes
1 answer

Getting info box information from wikipedia

I found in stackoverflow an answer that retrieves the infobox from wikipedia given a url. var url="http://en.wikipedia.org/w/api.php?action=parse&format=json&page=" + interests[index].name + "&redirects&prop=text&callback=?"; var html =…
João
  • 331
  • 1
  • 3
  • 17
-1
votes
2 answers

How to get japanese wiki link from my english wiki link?

Task: We have wikipedia English page and need to retrieve the same page address in Japanese. suggested to parse http://en.wikipedia.org/wiki/Mini 4wd?action=raw results (there are other languages links in the bottom), but this way is too…
suresh
  • 180
  • 11
-1
votes
1 answer

Getting wikipedia content page passing its title in Android

I'm developing an Android app that might use Wikipedia API to retrieve the content of a given page (from its title). I searched a lot in the web but I don't find useful information about the implementation. I read the MediaWiki documentation and I…
user3319400
  • 823
  • 2
  • 7
  • 10
-1
votes
1 answer

is there a way to return links with titles by wikipedia API?

i used http://en.wikipedia.org/w/api.phpformat=json&action=query&list=search|allpages&srsearch=wikipedia the json result is { "query-continue":{ "allpages":{ "apcontinue":"!!Fuck_you!!" }, "search":{ …
user2810081
  • 589
  • 1
  • 8
  • 27
-1
votes
1 answer

How to get text only from Wikimedia API? And how to edit CSS?

First. How can i edit with CSS this render? http://en.wikipedia.org/w/index.php?title=Albert_Einstein&action=render Second I have e link…
Fishman
  • 23
  • 4
-1
votes
2 answers

make HTML tags inside json response work

I am retrieving some data from Wikipedia using Wikipedia API as JSON. I am getting html tags along with the data as response. When displaying on browser the html tags are displayed as plain text not as the regular output(I hope I am clear with this…
MdN
  • 89
  • 1
  • 10
-1
votes
1 answer

How to download data from wikipedia in qt program?

I am writing Qt program in which I can give key word of query and program first generate wikipedia link matching the query and then store data from generated link page into file. Below is link where I can get my query matching link QString…
Vijay13
  • 525
  • 2
  • 8
  • 18
-1
votes
1 answer

Filter Wikipedia API link output to current content

I want to develop some kind of knowledge tree for some Wikipedia articles, so I am using the Wiki API to get JSON encoded data with…
RandomGuy42
  • 301
  • 4
  • 14
-1
votes
1 answer

Textbox Search & Return

I am trying to script a simple text box, So when a query is entered into it, It searches Wikipedia for that query and returns the result back to my website. The part I am having some problems with is the Wikipedia API. I have tried using it and…
James
  • 61
  • 1
  • 7
-2
votes
1 answer

How to build a graph using the wikipedia API?

I would like to create a graph of the whole Java ecosystem. I would like to start from the Java Wikipedia article and, from there, follow every connection that deals with the Java programming language, its frameworks, spin-offs, etc.
Draconar
  • 1,147
  • 1
  • 17
  • 36
-2
votes
1 answer

Download entire history of a Wikipedia page in HTML Format

I want to download the entire revision history of a single article on Wikipedia in HTML format, thanks to this question question, I am getting the entire history of a Wikipedia page in a JSON format but I want to get as a HTML format with images and…
-2
votes
1 answer

Wikipedia API doesn't find a specific page (URL with apostrophe)

I'm trying to retrieve pageviews info on a page which is not retrieved, while other pages are. I get the error: File "", line 1 article =='L'amica_geniale_ (serie_di_romanzi )' ^ SyntaxError: invalid syntax But there…