Questions tagged [wikidata-api]

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

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.

Please be sure to read the Etiquette page for best practices and general usage guidelines of using the API.

165 questions
0
votes
0 answers

Save Wikipedia image as an ImageIcon

I'm coding a Java program that provides the user with some info on a given element. For example, the user chooses "Hydrogen," and the program gives some info about Hydrogen. I'd like to take the "thumbnail" image from the Wikipedia article…
0
votes
1 answer

Get title changes from Wikipedia revision

Gathering data from Wikipedia in many cases needs valid title. This title can be changed in history, and all tools that depend on title fail to give data for changed title. Is there a credible programmatic way to find title change in page revisions?
vedar
  • 483
  • 8
  • 15
0
votes
1 answer

Accessing Wiki Data that's similar to the actual wiki page

wikidata url: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q254138&format=json&props=claims The part I'm currently looking at is genre, which is P136. This only contains one genre in it, and that ID links to "heavy metal music"…
rebnat
  • 121
  • 9
0
votes
2 answers

How to get list of USA states from Wikidata by API?

I tried to find the states of USA with Wikidata API but there is no results. For example: http://wdq.wmflabs.org/api?q=claim[150:30] P150 - contains administrative territorial entity Q30 - United States of America What am I doing wrong?
Enstl
  • 15
  • 3
0
votes
1 answer

How to get Wikipedia Article length through API?

If I have article URL, how can I get the article metadata? specially length, category and son on? I'm developing Java application.
fattah.safa
  • 926
  • 2
  • 14
  • 36
0
votes
2 answers

get a wikidata resource in different language

I want to get for a given wikidata resource its corresponding resource in other language, for example for http://wikidata.dbpedia.org/page/Q178794 resource , i want to get ar ساعة يد az Qol saatıbg Ръчен часовникbn হাতঘড়ি ca Rellotge de…
Nad
  • 35
  • 2
  • 10
0
votes
1 answer

How to get latest version of certain software using Wikidata?

I use following command to get (latest) version of certain software from Wikidata from the command line using jq as JSON parser. curl -sL "http://www.wikidata.org/w/api.php?action=wbgetentities&ids=$QID&languages=en&format=json" | jq…
smihael
  • 863
  • 13
  • 29
0
votes
1 answer

How to get WikiQuote Source by Wikidata API?

Which claims represent the quotes on Wikiquote? For example, for the Knowledge page. And the corresponding WikiData JSON:…
Brandon Bradley
  • 3,160
  • 4
  • 22
  • 39
0
votes
1 answer

incremental updates documentation is not clear enough

I have a database where I need keep up with changes on Wikidata changes, and while I was looking for ways to do it, I found these three: RSS API Call Socket.IO I would like to know if there are other ways and which one is the best or recommended…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
0
votes
2 answers

How can I query Wikidata API to get details of all the Korean films?

If possible, i want to return the results in Json or XML format. Is there any ways to do so? Earlier I did it using freebase.com but it is now deprecated. Please help.
0
votes
1 answer

Why does this Wikidata query return no results?

Shouldn't this Wikidata query return something? https://www.wikidata.org/w/api.php?action=query&titles=Kevin_Bacon What am I missing?
fandang
  • 605
  • 1
  • 6
  • 14
0
votes
0 answers

Unable to parse Wikidata URL

I'm trying to analyze data from the Wikidata API, but I keep getting timed out when running the var_dump function. Please see my code below:

Search

Search:
Oroku
  • 443
  • 1
  • 3
  • 15
-1
votes
2 answers

How use wikidata api to access to the statements

I'm trying to get information from Wikidata. For example, to access to "cobalt-70" I use the API. API_ENDPOINT = "https://www.wikidata.org/w/api.php" query = "cobalt-70" params = { 'action': 'wbsearchentities', 'format': 'json', …
-1
votes
1 answer

How extract human name information from wikidata API?

i have a problem understanding how wikidata.org is working ! even the documentation is not clear as facebook API , well my target is to downliad ALL available human names (full name , first name (in all languages )) + human language + Gender +…
user1402259
  • 11
  • 1
  • 6
-2
votes
1 answer

How to get place information using Google Knowledge Graph using Latitude and Longitude ?

I want business description using google API or wikidata API. As shown in above image I want to access description (which is highlighted in red circle.) and store it into application database. What I tried till now, I used google place API to get…
1 2 3
10
11