I'm looking for a way to get info from wikipedia based on the page title.
example: If i have a page called "Britney Spears" i want to be able to get a simple bio extracted from wikipedia onto the page. "age" "height" that sort of stuff.
From Wikidata API, you could access the data from Britney Spears entity using the
Then, to access data as age or height, you will need to understand a bit of how properties and claims work in Wikidata: height will be P2048, age will need to be calculated from date of birth P569, etc.
If you happen to work in JS, you can use
wikidata-sdk to parse those claims data to something simpler to work with
For bios, you can also use the Wikipedia Open Search API, which is more simple than Wikidata :
(you could also ask "format=json" instead of xml, but the output will be strangely formated and difficult to parse)
With a software like Open Refine, you could automate the search for a column of page names, like this :
Once the xml extracted, you can parse the descriptions from it with this GREL formula :