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
0
votes
3 answers

get wikipedia linked links

So, I am building an application, where I am displaying information in the database about subjects, and in the database, there is a link on wikipedia to the subject. Now, we want to build multi-lingual interface to the app (to add French). and we…
Ghassan Karwchan
  • 3,355
  • 7
  • 37
  • 65
0
votes
1 answer

How to get information in info box of Wikipedia articles using Wikipedia api?

I'm trying to get lead actor's name from movie's Wikipedia article. I tried different values for prop, prop=info seems most relevant. But this doesn't contain the information in info box of Wikipedia…
Chakradar Raju
  • 2,691
  • 2
  • 26
  • 42
0
votes
1 answer

how can i decode unicode string in python?

Wikipedia API encodes string into unicode format "Golden Globe Award for Best Motion Picture \u2013 Drama" how can i convert it back to "Golden Globe Award for Best Motion Picture – Drama"
Chakradar Raju
  • 2,691
  • 2
  • 26
  • 42
0
votes
1 answer

expand templates and wikitext to html in wikipedia (Replicating wikipedia)

Hi I have some custom wikitext(which also includes templates) and need to convert to html. The main issue is I can have any wikipedia template and most parsers dont do template expansion or need the templates to be downloaded before hand. Another…
Arun
  • 645
  • 7
  • 16
0
votes
1 answer

wikipedia template data api

I want to download the template source used in a wikipedia page (basically for generating the display text of a key). SO i am basically want this info http://en.wikipedia.org/w/index.php?title=Template:Infobox%20cricketer&action=edit for…
Arun
  • 645
  • 7
  • 16
0
votes
1 answer

Wikipedia API returns no links for specific articles

I have a query that gets all the links in a Wikipedia article. The problem is that for some pages, it returns no link. This Wikipedia article has many links on it. However, my…
Daron V
  • 197
  • 2
  • 8
0
votes
1 answer

Wikipedia API: check if template is protected

When you get the list of templates that are associated with a specific page (ie. http://en.wikipedia.org/w/api.php?action=query&prop=templates&format=json&tllimit=10&pageids=199445), you notice that a lot of them are not visible in the Wikpedia page…
Chux18
  • 61
  • 1
  • 1
  • 5
0
votes
1 answer

Wikipedia Lucene search possible with REST-API?

I get about 1-25 search words and would like to search in a private wiki if a article exists (in article text search) where all the words or at least many words are occuring. (or instead of and Operator). Right now i'm…
velop
  • 3,102
  • 1
  • 27
  • 30
0
votes
1 answer

How to retrieve list of Wikipedia pages that link to given page using WebAPI?

I am trying to retrieve list of pages which link to given Wikipedia page. Can anyone suggest how to do this?
DDC
  • 834
  • 2
  • 9
  • 27
0
votes
1 answer

Is there an API that retrieves a list of items for a given category?

I figure since Google Sets used to exist and somewhat still does, there must exist some API (google or otherwise) where I could send a category as a GET request and retrieve a JSON listing of items in that category. For example: In: 'sports' Out:…
Logan
  • 165
  • 1
  • 7
0
votes
1 answer

Get Italian names from Wikipedia Api

We are trying to fetch italian data from wikipedia's api. We have multiple names and need to get the first 10 results. e.g. we want to collect the data from the "Persone" section of this result: http://it.wikipedia.org/wiki/Francesco_(nome) Right…
Francesco Frapporti
  • 5,195
  • 4
  • 32
  • 39
0
votes
1 answer

PHP script with Wikipedia API is suddenly slow, what could be wrong?

I run a php script that uses the wikipedia api to locate wikipedia pages about certain movies, based on a long list with titles and year of release. This takes 1-2 seconds per query on average, and I do about 5 queries per minute. This has been…
0
votes
1 answer

Query Wikipedia Software Infobox to Retrieve Current Version?

I would like to create a script to give me the current version of each software in a list of software. Wikipedia seems to do a good job of maintaining this information, and so I am trying to figure out how to query their API. For instance, it seems…
MattUebel
  • 2,737
  • 4
  • 21
  • 22
0
votes
1 answer

How to get all historical events on Wikipedia?

I would like to get all the articles of historical events on Wikipedia? What is the best way to go about this? Wiki API? Database dumps? I've checked out the DBPedia and it seems to be quite limited so far (still impressive though).
user1530580
  • 189
  • 3
  • 15
0
votes
1 answer

How to download all person pages from wikipedia?

Is it possible to download all Wikipedia pages of one category (for example, http://en.wikipedia.org/wiki/Category:Births_by_year) and all it's subcategories? The problem is that specific page are not tagged with topmost category and per page trace…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385